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

Please help me how to rectify this:MisconfigurationException: The provided lr scheduler StepLR doesn't follow PyTorch's LRScheduler API. You should override the LightningModule.lr_scheduler_step hook with your own logic if you are using a custom LR scheduler. #509

Closed
Harish11999 opened this issue Apr 6, 2023 · 4 comments

Comments

@Harish11999
Copy link

image

@AzulGarza
Copy link
Member

hey @Harish11999! Thanks for using neuralforecast. The problem is related to the latest version of torch (v2.0.0). You can solve the issue by installing the latest version of neuralforecast from the main branch. Here's the line:

pip install "git+https://github.com/nixtla/neuralforecast.git@main"

We are preparing an official release to pip soon. :)

@Harish11999
Copy link
Author

image

I'm getting error again. The models will run but while we use ".fit", there is an error. I tried installing pytorch 1.6.5 but it doesn't exist.

@kyr0
Copy link

kyr0 commented Apr 11, 2023

@Harish11999 You can pin to 1.3.0, then it will work in colab if you're not using the latest features added in 1.4.0+.

!pip install neuralforecast==1.3.0

@Harish11999
Copy link
Author

Thank you. Now its fine

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