mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-12-09 21:25:34 +00:00
[example] simplify the GPT2 huggingface example (#1826)
This commit is contained in:
@@ -1,7 +1 @@
|
||||
export DATA=/data/scratch/gpt_data/small-gpt-dataset.json
|
||||
|
||||
export NODE_RANK=${NODE_RANK:-0}
|
||||
export MASTER_ADDR=${MASTER_ADDR:-"127.0.0.1"}
|
||||
export MASTER_PORT=${MASTER_PORT:-"12345"}
|
||||
|
||||
env OMP_NUM_THREADS=16 torchrun --standalone --nproc_per_node=2 train_gpt.py --config=gpt2_configs/gpt2_zero3.py --from_torch 2>&1 | tee logs/log
|
||||
env OMP_NUM_THREADS=16 torchrun --standalone --nproc_per_node=2 train_gpt_demo.py 2>&1 | tee run.log
|
||||
|
||||
Reference in New Issue
Block a user