ai-forever / ru-gpts

Russian GPT3 models.
Apache License 2.0
2.08k stars 444 forks source link

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

Closed delaryc closed 3 years ago

delaryc commented 3 years ago

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

nicoth-in commented 3 years ago

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)

https://github.com/huggingface/transformers/issues/9060#issuecomment-791673571 https://github.com/huggingface/transformers/pull/8979

nicoth-in commented 3 years ago

Readme/examples update suggestion #54

king-menin commented 3 years ago

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

nicoth-in commented 3 years ago

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.