-
Notifications
You must be signed in to change notification settings - Fork 181
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
CPUoffloadOptimizer issues #1209
Comments
1 is a known issue. You can see my view here #959 (comment). I will look into In the meantime, For 2, it's an oversight from my part. We can simply add a requires grad check here. Will push a fix ao/torchao/prototype/low_bit_optim/cpu_offload.py Lines 68 to 77 in 2761917
|
Hi, is there any updates? Thanks! It would be great if it can be directly plugged into huggingface transformers, but now it has errors caused by scheduler issue above:
|
@fzyzcjy To unblock your case, you can try making
to IMO, since Python is duck-typing, PyTorch LR scheduler should not explicitly check for the optimizer class. |
Thank you! |
hi all, i was giving the CPUOffloadOptimizer a try and found two issues when using with QLoRA single device in torchtune:
cc: @gau-nernst
The text was updated successfully, but these errors were encountered: