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

LoRA + deepspeed zero3 finetuing using 8bit quantization of base weights results in increased loss #1451

Open
winglian opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working contributions-welcome We welcome contributions to fix this issue!

Comments

@winglian
Copy link

System Info

latest releases of transformers, bnb, peft, accelerate, python 2.5.1, deepspeed 0.16.1

Reproduction

see axolotl config here: https://wandb.ai/axolotl-ai/lora-3b-ds-zero3/runs/c4b1agng/files/tmp/axolotl_config_az8clerk.yml

Expected behavior

the loss value is off by an order of magnitude @ ~13, whereas zero2 and zero1 are correct. I also tried changing the llm_int8_threshold in the bnb config to 0.0 and 1.0. 0.0 results in 0.0 loss, and 1.0 results in the same original defect.

@matthewdouglas matthewdouglas added bug Something isn't working contributions-welcome We welcome contributions to fix this issue! labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working contributions-welcome We welcome contributions to fix this issue!
Projects
None yet
Development

No branches or pull requests

2 participants