Upload fsdp5_vanilla_speed.sh with huggingface_hub
Browse files- fsdp5_vanilla_speed.sh +29 -0
fsdp5_vanilla_speed.sh
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CUDA_VISIBLE_DEVICES=4,5,6,7 torchrun --nnodes 1 --nproc_per_node 4 --master_port 29502 train_vanilla_speed.py \
|
| 2 |
+
--batch-size 1 \
|
| 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 |
+
--mlp False \
|
| 7 |
+
--position_embedding_type "absolute" \
|
| 8 |
+
--base "pretrained" \
|
| 9 |
+
--save_path "ckp/sft-v5-1e4-1sample-resume" \
|
| 10 |
+
--save_name "sft-v5-1e4-1sample-resume" \
|
| 11 |
+
--data_type SemiNATForMultiRoundMaskInputStream \
|
| 12 |
+
--run_name "olmo2-1b-sft-v5-1sample" \
|
| 13 |
+
--epochs 1 \
|
| 14 |
+
--chunk_size_limit 5 \
|
| 15 |
+
--save_steps 10000 \
|
| 16 |
+
--lr 5e-4 \
|
| 17 |
+
--weight_decay 0.1 \
|
| 18 |
+
--eps 1e-8 \
|
| 19 |
+
--dtype bf16 \
|
| 20 |
+
--betas 0.9 0.95 \
|
| 21 |
+
--warmup_ratio 0.1 \
|
| 22 |
+
--data_path "/AIRvePFS/ai4science/users/ai4science/users/zyk/seminat/data/olmo2_base_prob_multi_0723_long_2w.jsonl" \
|
| 23 |
+
--max_length 8192 \
|
| 24 |
+
--data_processess_num 0 \
|
| 25 |
+
--attn_implementation "flash_attention_2" \
|
| 26 |
+
# --use_wandb \
|
| 27 |
+
# --ptm_model_path "/AIRvePFS/ai4science/users/ai4science/users/zyk/seminat/ckp/pretrain/model.pt" \
|
| 28 |
+
# --resume_path "/AIRvePFS/ai4science/users/ai4science/users/zyk/seminat/ckp/sft-v5-1e4-1sample-resume/sft-v5-1e4-1sample-resume-steps_300.pt" \
|
| 29 |
+
|