Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summarization failed when using t5 #78

Open
Amayama opened this issue Jun 20, 2022 · 1 comment
Open

Summarization failed when using t5 #78

Amayama opened this issue Jun 20, 2022 · 1 comment

Comments

@Amayama
Copy link

Amayama commented Jun 20, 2022

Dear ohmeow, thanks for your convenient framework. It helps me a lot.
However, a problem occurs when I try to apply the t5-base model to summarization task using seq2seq settings in the training procedure of https://ohmeow.github.io/blurr/text-modeling-seq2seq-summarization.html. I changed the Tokenizer and config to
T5TokenizerFast | T5ForConditionalGeneration and the model was trained smoothly. However, when I tried to evaluate after first epoch, an exception occured as TypeError: Exception occured in ``Seq2SeqMetricsCallback`` when calling event ``after_batch``: forward() got an unexpected keyword argument 'prefix'. I wonder why this exception happened and still cannot find solution although I checked my code and core clearly. It would be a great pleasure if U could give me some helps.

@ohmeow
Copy link
Owner

ohmeow commented Jun 28, 2022

Could you put your code in a gist that I could look at?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants