Skip to content

Commit

Permalink
Update BERT yamls for compatibility with main branch (#427)
Browse files Browse the repository at this point in the history
* typo

* update bf16 --> amp_bf16 in bert yamls

* update mcloud yamls to run on mosaicml/examples main branch with correct file structure

* updated git repo branch in 40gb yaml
  • Loading branch information
jacobfulano authored Aug 3, 2023
1 parent d86f1ba commit a18e2c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions examples/benchmarks/bert/yamls/main/mcloud_run_a100_40gb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ compute:
integrations:
- integration_type: git_repo
git_repo: mosaicml/examples
git_branch: v0.0.4 # use your branch
git_branch: main # use your branch
# git_commit: # OR use your commit hash
pip_install: -e .[bert]
ssh_clone: false # Should be true if using a private repo
Expand All @@ -31,8 +31,9 @@ integrations:
# For real training runs, follow the instructions in `examples/bert/README.md`
# to convert and host the full 'train' dataset.
command: |
cd examples/examples/bert
python ../common/convert_dataset.py --dataset c4 --data_subset en --out_root ./my-copy-c4 --splits train_small val
cd examples/examples/benchmarks/bert
pip install -r requirements.txt
python src/convert_dataset.py --dataset c4 --data_subset en --out_root ./my-copy-c4 --splits train_small val
composer main.py /mnt/config/parameters.yaml \
train_loader.dataset.split=train_small
Expand Down Expand Up @@ -117,7 +118,7 @@ parameters:
seed: 17
device_eval_batch_size: 128
device_train_microbatch_size: 128
precision: bf16
precision: amp_bf16 # update for Composer release/v0.12.1

# Logging
progress_bar: false
Expand Down
9 changes: 5 additions & 4 deletions examples/benchmarks/bert/yamls/main/mcloud_run_a100_80gb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ compute:
integrations:
- integration_type: git_repo
git_repo: mosaicml/examples
git_branch: v0.0.4 # use your branch
git_branch: main # use your branch
# git_commit: # OR use your commit hash
pip_install: -e .[bert]
ssh_clone: false # Should be true if using a private repo
Expand All @@ -32,8 +32,9 @@ integrations:
# For real training runs, follow the instructions in `examples/bert/README.md`
# to convert and host the full 'train' dataset.
command: |
cd examples/examples/bert
python ../common/convert_dataset.py --dataset c4 --data_subset en --out_root ./my-copy-c4 --splits train_small val
cd examples/examples/benchmarks/bert
pip install -r requirements.txt
python src/convert_dataset.py --dataset c4 --data_subset en --out_root ./my-copy-c4 --splits train_small val
composer main.py /mnt/config/parameters.yaml \
train_loader.dataset.split=train_small
Expand Down Expand Up @@ -117,7 +118,7 @@ parameters:
seed: 17
device_eval_batch_size: 512
device_train_microbatch_size: 512
precision: bf16
precision: amp_bf16 # update for Composer release/v0.12.1

# Logging
progress_bar: false
Expand Down

0 comments on commit a18e2c0

Please sign in to comment.