Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не получается запустить скрипты на torch 1.8.0 #53

Closed
delaryc opened this issue Apr 21, 2021 · 4 comments
Closed

Comments

@delaryc
Copy link

delaryc commented Apr 21, 2021

Пытаюсь запустить скрипты но выходит ошибка ImportError: cannot import name 'SAVE_STATE_WARNING' from 'torch.optim.lr_scheduler' Погуглив, понял, что нужна версия torch 1.4.0 но ее уже нет, а на 1.8.0 такая ошибка, можете обновить скрипты до актуальных версий? Или как быть в такой ситуации?

@nicoth-in
Copy link

This issue is related to the Transformers library.
Use newer version, like 4.3.0
(In colab, replace to !pip3 install transformers==4.3.0)

huggingface/transformers#9060 (comment)
huggingface/transformers#8979

@nicoth-in
Copy link

Readme/examples update suggestion #54

@king-menin
Copy link
Collaborator

please use old version of transformers. For Now we don't adapt our models for newest version. we apologize for the inconvenience

@nicoth-in
Copy link

The problem is that the old transformers uses old pytorch, and old version of pytorch is no longer supported and not in PIP, so it is generaly breaks all the examples and adds trubleshooting steps for newcommers. Not sure how new versions will affect stability, but it at least worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants