You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
When using transformers version 4.26.1 this import breaks from transformers.generation_logits_process import TopKLogitsWarper, TopPLogitsWarper, TemperatureLogitsWarper, LogitsProcessorList
I think it needs to be changed to from transformers.generation.logits_process import TopKLogitsWarper, TopPLogitsWarper, TemperatureLogitsWarper, LogitsProcessorList (dot instead of underscore after generation).
Either editing as above, or rolling back to transformers 4.24.0 resolves this import error.
(I have other errors that stop running the OPT inference example but likely unrelated.)
The text was updated successfully, but these errors were encountered:
skiingpacman
changed the title
Not compatible with the latest version of transformers?
Not compatible with the latest version of transformers? (4.26.1)
Feb 18, 2023
It could be a version compatibility issue. The problem was solved when I replaced source file from transformers import TopKLogitsWarper, TopPLogitsWarper, TemperatureLogitsWarper, LogitsProcessorList
It could be a version compatibility issue. The problem was solved when I replaced source file from transformers import TopKLogitsWarper, TopPLogitsWarper, TemperatureLogitsWarper, LogitsProcessorList
Hi @Yiran-Zhu Thank you very much for your contribution!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using transformers version 4.26.1 this import breaks
from transformers.generation_logits_process import TopKLogitsWarper, TopPLogitsWarper, TemperatureLogitsWarper, LogitsProcessorList
I think it needs to be changed to
from transformers.generation.logits_process import TopKLogitsWarper, TopPLogitsWarper, TemperatureLogitsWarper, LogitsProcessorList
(dot instead of underscore after generation).Either editing as above, or rolling back to transformers 4.24.0 resolves this import error.
(I have other errors that stop running the OPT inference example but likely unrelated.)
The text was updated successfully, but these errors were encountered: