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

'AcceleratedScheduler' object has no attribute 'get_lr_scheduler_state' #293

Open
1 of 2 tasks
marghovo opened this issue Mar 5, 2025 · 2 comments
Open
1 of 2 tasks

Comments

@marghovo
Copy link

marghovo commented Mar 5, 2025

System Info / 系統信息

Hi,

With the recent commit, I am getting ERROR - An error occurred during training: 'AcceleratedScheduler' object has no attribute 'get_lr_scheduler_state' - finetrainers/utils/state_checkpoint.py", line 65, when running examples/training/sft/ltx_video/crush_smol_lora/train.sh. It seems no AcceleratedScheduler is available in finetrainers at all. Any idea how to resolve the issue?

Thanks.

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

Run examples/training/sft/ltx_video/crush_smol_lora/train.sh.

Expected behavior / 期待表现

The training should start successfully.

@a-r-r-o-w
Copy link
Owner

a-r-r-o-w commented Mar 5, 2025

Are you launching training with torchrun or accelerate?

accelerate support is a bit unstable right now so would recommend torchrun. It will be made uniform before next release

@marghovo
Copy link
Author

marghovo commented Mar 5, 2025

I am using accelerate. I will try with torchrun in that case. Thanks.

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