-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathlaunch_train.sh
More file actions
executable file
·35 lines (28 loc) · 1.04 KB
/
launch_train.sh
File metadata and controls
executable file
·35 lines (28 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# ----------------------------
export CUDA_VISIBLE_DEVICES=0,1,2,3
export TOKENIZERS_PARALLELISM=false
export NCCL_P2P_DISABLE=1
export VLLM_WORKER_MULTIPROC_METHOD=spawn
export VLLM_USE_V1=0
NUM_PROCESSES=3
MAIN_PROCESS_PORT=20138
# ----------------------------
DATASET_CAT='Musical_Instruments'
DATASET_DIR='data/'$DATASET_CAT'_0_2022-10-2023-10'
accelerate launch --num_processes=$NUM_PROCESSES --config_file=accelerates/deepspeed_config.yaml \
--main_process_port=$MAIN_PROCESS_PORT train.py \
--model=gemma \
--dataset_dir=$DATASET_DIR \
--dataset_category=$DATASET_CAT \
--train_batch_size=4 \
--eval_batch_size=32 \
--max_new_tokens=640 \
--warmup_steps=32 \
--seed=42 \
--num_train_epochs=3 \
--run_name='run_name' \
--group_size=4 \
--trainer_relabel_topk=2 \
--gen_temperature=2.0 \
--gen_top_k=50