mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-23 10:30:03 +00:00
[example] add gpt2 HybridParallelPlugin example (#4653)
* add gpt2 HybridParallelPlugin example * update readme and testci * update test ci * fix test_ci bug * update requirements * add requirements * update requirements * add requirement * rename file
This commit is contained in:
5
examples/language/gpt/hybridparallelism/run.sh
Normal file
5
examples/language/gpt/hybridparallelism/run.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
# load via internet
|
||||
torchrun --standalone --nproc_per_node 4 --master_port 29800 finetune.py --target_f1 0.6 --plugin hybrid_parallel --model_type "gpt2"
|
||||
|
||||
# load from local
|
||||
# torchrun --standalone --nproc_per_node 4 --master_port 29800 finetune.py --target_f1 0.6 --plugin hybrid_parallel --model_type "gpt2" --pretrained_path "your/path/to/pretrained_model"
|
Reference in New Issue
Block a user