mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-10 21:40:02 +00:00
[booster] update bert example, using booster api (#3885)
This commit is contained in:
9
examples/language/bert/benchmark.sh
Executable file
9
examples/language/bert/benchmark.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -xe
|
||||
|
||||
pip install -r requirements.txt
|
||||
|
||||
for plugin in "torch_ddp" "torch_ddp_fp16" "gemini" "low_level_zero"; do
|
||||
torchrun --standalone --nproc_per_node 2 benchmark.py --plugin $plugin --model_type "bert"
|
||||
torchrun --standalone --nproc_per_node 2 benchmark.py --plugin $plugin --model_type "albert"
|
||||
done
|
Reference in New Issue
Block a user