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

LR scheduler: Error: 'Sine' object has no attribute '_step_count' #1137

Open
Mr-Ye-Cao opened this issue Nov 10, 2024 · 5 comments
Open

LR scheduler: Error: 'Sine' object has no attribute '_step_count' #1137

Mr-Ye-Cao opened this issue Nov 10, 2024 · 5 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed regression This bug has regressed behaviour that previously worked.

Comments

@Mr-Ye-Cao
Copy link

Epoch 1/22, Steps: 0%| | 29/30000 [01:08<17:47:11, 2.14s/it, lr=0, step_loss=0.245]2024-11-10 19:28:47,024 [ERROR] Failed to get the last learning rate from the scheduler. Error: 'Sine' object has no attribute '_step_count'
Epoch 1/22, Steps: 0%| | 30/30000 [01:11<18:10:36, 2.18s/it, lr=0, step_loss=0.023]2024-11-10 19:28:49,022 [ERROR] Failed to get the last learning rate from the scheduler. Error: 'Sine' object has no attribute '_step_count'
Epoch 1/22, Steps: 0%| | 31/30000 [01:13<17:42:51, 2.13s/it, lr=0, step_loss=0.118]2024-11-10 19:28:51,085 [ERROR] Failed to get the last learning rate from the scheduler. Error: 'Sine' object has no attribute '_step_count'
Epoch 1/22, Steps: 0%| | 32/30000 [01:14<19:15:41, 2.31s/it, lr=0, step_loss=0.0314]^C

@bghira bghira added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers regression This bug has regressed behaviour that previously worked. labels Nov 11, 2024
@Mr-Ye-Cao
Copy link
Author

Mr-Ye-Cao commented Nov 11, 2024

@bghira hi! i love ur github. it's super good and very useful.
also i want to know if there's a branch i can use for now to avoid this issue ?
i want to fine tune SD3XL on Ada6000

@bghira
Copy link
Owner

bghira commented Nov 11, 2024

you can use a different LR scheduler, like 'constant'

@Mr-Ye-Cao
Copy link
Author

yeah, i tried that before. but all differnt LR scheduler would give same error:
Epoch 1/22, Steps: 0%| | 29/30000 [01:08<17:47:11, 2.14s/it, lr=0, step_loss=0.245]2024-11-10 19:28:47,024 [ERROR] Failed to get the last learning rate from the scheduler. Error: 'Sine' object has no attribute '_step_count'

specifically, i tried to set: "LR_SCHEDULER=constant" in config.env

@bghira
Copy link
Owner

bghira commented Nov 12, 2024

you should be using config.json

@Mr-Ye-Cao
Copy link
Author

thanks a lot! i tried config.json this time. the default (which i guess is polynomial) still same error happens. but constant works this time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed regression This bug has regressed behaviour that previously worked.
Projects
None yet
Development

No branches or pull requests

2 participants