Got ValueError when output_hidden_states=True
with eval_accumulation_steps
#11055
Closed
2 of 4 tasks
Environment info
transformers
version: 4.4.2Who can help
@sgugger @LysandreJik
Information
Model I am using (Bert, XLNet ...):
The problem arises when using:
The tasks I am working on is:
To reproduce
Hello
I'm trying to using fine-tuning code with my own model, and I got
ValueError
like below when evaluate witheval_accumulation_steps
inTraningArguments
andoutput_hidden_states=True
in model config.If I do
output_hidden_states=False
(as I know, it is default), the error disappears.I don't need
output_hidden_states
but, I report this because I think it should be work, even whenoutput_hidden_states=True
.I share my colab with bug report with official example of transformers glue example.
Thanks in advance!
Expected behavior
The text was updated successfully, but these errors were encountered: