Closed shivanraptor closed 3 weeks ago
The problem can be narrowed down to:
from transformers import trainer_seq2seq
which will lead to the same error.
This issue is resolved by downgrading transformers
to 4.28.1 and tokenizers
to 0.13.3 on Python 3.10
However, in Python 3.12, the import error does not exist with the same versions listed in the first thread.
I tried to execute
finetune/generation/run_gen.py
, even without parameters, it shows aRuntimeError
:Here is the output:
It seems that it is a version problem.
Key versions: