mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-24 10:41:07 +00:00
change to 4
This commit is contained in:
parent
9f31a261d9
commit
fc5299c694
@ -15,7 +15,7 @@ set_n_least_used_CUDA_VISIBLE_DEVICES() {
|
|||||||
echo "CUDA_VISIBLE_DEVICES=$CUDA_VISIBLE_DEVICES"
|
echo "CUDA_VISIBLE_DEVICES=$CUDA_VISIBLE_DEVICES"
|
||||||
}
|
}
|
||||||
|
|
||||||
set_n_least_used_CUDA_VISIBLE_DEVICES 2
|
set_n_least_used_CUDA_VISIBLE_DEVICES 4
|
||||||
|
|
||||||
set -xu
|
set -xu
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ for lora_rank in ${LORA_RANK[@]}; do
|
|||||||
for split in $(seq -f "%05g" 0 0); do
|
for split in $(seq -f "%05g" 0 0); do
|
||||||
dataset+=("$TEMP_DIR/rlhf_data/tokenized_${model}_sft/arrow/part-$split")
|
dataset+=("$TEMP_DIR/rlhf_data/tokenized_${model}_sft/arrow/part-$split")
|
||||||
done
|
done
|
||||||
colossalai run --nproc_per_node 2 --master_port 31332 $EXAMPLES_DIR/training_scripts/train_sft.py \
|
colossalai run --nproc_per_node 4 --master_port 31332 $EXAMPLES_DIR/training_scripts/train_sft.py \
|
||||||
--pretrain $pretrain \
|
--pretrain $pretrain \
|
||||||
--tokenizer_dir $tokenizer_dir \
|
--tokenizer_dir $tokenizer_dir \
|
||||||
--dataset ${dataset[@]} \
|
--dataset ${dataset[@]} \
|
||||||
|
Loading…
Reference in New Issue
Block a user