Please check that this issue hasn't been reported before.
[X] I searched previous Bug Reports didn't find any similar reports.
Expected Behavior
I expect deepspeed zero3 and 8-bit LoRA to be compatible and runs without error
Current behaviour
When loading model with deepspeed zero3 and 8-bit LoRA enabled, I ran into the error RuntimeError: Only Tensors of floating point and complex dtype can require gradients :
However, if you use zero3 in tandem with 4-bit qLoRA, or just do full fine-tuning with zero3 enabled, it works fine.
Steps to reproduce
Set up LoRA
enable deepspeed zero3
RuntimeError: Only Tensors of floating point and complex dtype can require gradients
(Putting on a tinfoil hat) I think it's a bug within axolotl code base as opposed to some deeper issue with deepspeed zero3, seeing as it works with qlora.
Which Operating Systems are you using?
[X] Linux
[ ] macOS
[ ] Windows
Python Version
3.11.10
axolotl branch-commit
main
Acknowledgements
[X] My issue title is concise, descriptive, and in title casing.
[X] I have searched the existing issues to make sure this bug has not been reported yet.
[X] I am using the latest version of axolotl.
[X] I have provided enough information for the maintainers to reproduce and diagnose the issue.
Please check that this issue hasn't been reported before.
Expected Behavior
I expect deepspeed zero3 and 8-bit LoRA to be compatible and runs without error
Current behaviour
When loading model with deepspeed zero3 and 8-bit LoRA enabled, I ran into the error
RuntimeError: Only Tensors of floating point and complex dtype can require gradients
:However, if you use zero3 in tandem with 4-bit qLoRA, or just do full fine-tuning with zero3 enabled, it works fine.
Steps to reproduce
RuntimeError: Only Tensors of floating point and complex dtype can require gradients
Config yaml
Possible solution
(Putting on a tinfoil hat) I think it's a bug within axolotl code base as opposed to some deeper issue with deepspeed zero3, seeing as it works with qlora.
Which Operating Systems are you using?
Python Version
3.11.10
axolotl branch-commit
main
Acknowledgements