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

Error when using load_in_8bit with deepspeed #16

Open
maharjanjenish opened this issue Dec 31, 2023 · 0 comments
Open

Error when using load_in_8bit with deepspeed #16

maharjanjenish opened this issue Dec 31, 2023 · 0 comments

Comments

@maharjanjenish
Copy link

maharjanjenish commented Dec 31, 2023

I am trying to fine tune a Yi 34B model. I am able to fine tune it with load_in_4bit set to True. When I try to use load_in_8bit instead, I get the following error:

RuntimeError: expected mat1 and mat2 to have the same dtype, but got: c10::Half != signed char

Here's my config:

--deepspeed_stage 2 \
--use_gradient_checkpointing True  \
--model_name_or_path ../Yi-34B \
--use_flash_attention_2 False \
--load_in_8bit True \
--apply_lora True  \
--lora_rank 128  \
--lora_alpha 256  \
--lora_dropout 0.05  \
--raw_lora_target_modules "all"  \
--fuse_after_training True  \
--save_steps 100  \
--logging_steps 1  \
--per_device_train_batch_size 2  \
--gradient_accumulation_steps 2  \
--max_length 4096  \
--deepspeed_stage "stage_2"  \
--single_gpu False  \
--push_to_hub False  \
--report_to_wandb False```
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

1 participant