Skip to content

Commit

Permalink
update lora_target_modules in training scripts (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic789654 authored Jan 6, 2025
1 parent cd39d42 commit 13a867d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run_finetune_with_lora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Please run this script under ${project_id} in project directory of

# Parses arguments
model_name_or_path=gpt2
model_name_or_path=meta-llama/Llama-2-7b-hf
dataset_path=data/wikitext-2-raw-v1/test
# conversation_template=llama2
output_dir=output_models/finetune
Expand Down Expand Up @@ -59,6 +59,7 @@ deepspeed ${deepspeed_args} \
--per_device_train_batch_size 1 \
--use_lora 1 \
--lora_r 8 \
--lora_target_modules="embed_tokens,q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj,lm_head" \
--save_aggregated_lora 0\
--deepspeed configs/ds_config_zero2.json \
--fp16 \
Expand Down

0 comments on commit 13a867d

Please sign in to comment.