"sgl-kernel/vscode:/vscode.git/clone" did not exist on "1fea998a452ff8e0ea85539fbb082e2d538b244a"
finetune.sh 390 Bytes
Newer Older
Rayyyyy's avatar
Rayyyyy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
echo "Export params ..."

export HIP_VISIBLE_DEVICES=0,1,2,3 # 自行修改为训练的卡号和数量
export HSA_FORCE_FINE_GRAIN_PCIE=1
export USE_MIOPEN_BATCHNORM=1

echo "Training start ..."

python -m torch.distributed.launch --use_env --nproc_per_node=4 --master_port=4321 finetune.py \
    --data_path ./datasets/tmp.txt \
    --train_batch_size 32 \
    --num_epochs 10