improve fine-tune performance
This commit is contained in:
parent
e3e075e432
commit
0da92ec7bf
@ -50,8 +50,9 @@ echo "loading $loadModel"
|
||||
modelInfo=$(python3 ./finetune/get_layer_and_embd.py $loadModel 5.2)
|
||||
echo $modelInfo
|
||||
if [[ $modelInfo =~ "--n_layer" ]]; then
|
||||
sudo rm -rf /root/.cache/torch_extensions
|
||||
python3 ./finetune/lora/$modelInfo $@ --proj_dir lora-models --data_type binidx --lora \
|
||||
--lora_parts=att,ffn,time,ln --strategy deepspeed_stage_2 --accelerator gpu
|
||||
--lora_parts=att,ffn,time,ln --strategy deepspeed_stage_2 --accelerator gpu --ds_bucket_mb 2
|
||||
else
|
||||
echo "modelInfo is invalid"
|
||||
exit 1
|
||||
|
@ -1,3 +1,3 @@
|
||||
torch==1.13.1
|
||||
torch==2.1.2
|
||||
pytorch_lightning==1.9.5
|
||||
deepspeed==0.11.2
|
||||
deepspeed==0.12.6
|
||||
|
Loading…
Reference in New Issue
Block a user