Closed gzhihongwei closed 1 year ago
The transformers version listed in requirements.txt is a bit too old to load newer models from HuggingFace, which this PR fixes. From transformers>=4.25, transformer.generation_logits_process was moved to transformer.generation.logits_process.
transformers
requirements.txt
transformers>=4.25
transformer.generation_logits_process
transformer.generation.logits_process
Hi @gzhihongwei,
Thanks for spotting this! I'm merging it right away.
The
transformers
version listed inrequirements.txt
is a bit too old to load newer models from HuggingFace, which this PR fixes. Fromtransformers>=4.25
,transformer.generation_logits_process
was moved totransformer.generation.logits_process
.