ykzhang721 commited on
Commit
bcef0ef
·
verified ·
1 Parent(s): c4b413a

Upload fsdp5_car.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. fsdp5_car.sh +31 -0
fsdp5_car.sh ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ torchrun --nnodes 1 --nproc_per_node 1 --master_port 29500 train5_car.py \
2
+ --batch-size 2 \
3
+ --model_path "/AIRvePFS/ai4science/users/ai4science/users/zyk/seminat_backup/model/OLMo-2-0425-1B" \
4
+ --decoder_layers 1 \
5
+ --encoder_layers 1 \
6
+ --position_embedding_type "absolute" \
7
+ --base "pretrained" \
8
+ --length_loss_type "ce" \
9
+ --alpha 0.4 \
10
+ --save_path "ckp/sft-v6-1e4-1sample-test-0818-car" \
11
+ --save_name "sft-v6-1e4-1sample-test-0818-car" \
12
+ --data_type SemiNATForMultiRoundMaskInputStream \
13
+ --project_name "SemiNAT-Debug" \
14
+ --run_name "olmo2-1b-sft-v6-1sample-0818-car" \
15
+ --epochs 1000 \
16
+ --chunk_size_limit 5 \
17
+ --save_steps 300 \
18
+ --lr 5e-4 \
19
+ --weight_decay 0.1 \
20
+ --eps 1e-8 \
21
+ --dtype bf16 \
22
+ --betas 0.9 0.95 \
23
+ --warmup_ratio 0.1 \
24
+ --data_path "/AIRvePFS/ai4science/users/ai4science/users/zyk/seminat/data/olmo2_base_prob_multi_0719_86w_1sample.jsonl" \
25
+ --max_length 2048 \
26
+ --data_processess_num 0 \
27
+ --attn_implementation "flash_attention_2" \
28
+ --use_wandb \
29
+ # --resume_path "/AIRvePFS/ai4science/users/ai4science/users/zyk/seminat/ckp/sft-v5-1e4-1sample-test-0803/sft-v5-1e4-1sample-test-0803-steps_900.pt" \
30
+ # --mlp \
31
+ # --ptm_model_path "/AIRvePFS/ai4science/users/ai4science/users/zyk/seminat/0725_120k.pt" \