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

ImportError: cannot import name 'LRScheduler' from 'torch.optim.lr_scheduler' #56

Open
Dtdavidgit opened this issue Oct 8, 2024 · 1 comment

Comments

@Dtdavidgit
Copy link

Hi dear authors,

I tried to use the training script and tutorials you provided here Link to train the model using other datasets.

However, after I sucessfully install the packages using pip install "git+https://github.com/reginabarzilaygroup/Sybil.git"
But when I tried to enter python train.py It mentioned ImportError: cannot import name 'LRScheduler' from 'torch.optim.lr_scheduler'

Screenshot 2024-10-08 at 4 43 53 PM

I've been finding solutions online, and it seems it'a about the versions of torch and transformers cause the issue. However I tried many different version of transformers, but the issue still exits, could you please help me to solve this?

Thank you so much!

@pgmikhael
Copy link
Collaborator

Hi,

This was the list of package versions used at the time of training.

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

2 participants