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
I am trying to use transformer interpret for a work project. I am using a midi conda virtual environment. I get the following error (Full code below)
cannot import name 'GenerationMixin' from 'transformers.generation' (C:\some_path\AppData\Local\miniconda3\Lib\site-packages\transformers\generation_init_.py). Did you mean: 'GenerationMode'?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to use transformer interpret for a work project. I am using a midi conda virtual environment. I get the following error (Full code below)
cannot import name 'GenerationMixin' from 'transformers.generation' (C:\some_path\AppData\Local\miniconda3\Lib\site-packages\transformers\generation_init_.py). Did you mean: 'GenerationMode'?
Based on a similar forum for sentence transformers https://stackoverflow.com/questions/75427004/cannot-import-name-generationmixin-from-transformers-generation-while-runnin
First I tried installing
pip install torch torchvision torchaudio
then I tried
pip install -U transformers-interpret
Finally
I opened the file "C:\some_path\AppData\Local\miniconda3\Lib\site-packages\transformers_interpret_init_.py but wasn’t sure how to edit it.
I still get the same error
Beta Was this translation helpful? Give feedback.
All reactions