Skip to content

Commit b036263

Browse files
committed
fix the benches
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
1 parent 5c3b4f2 commit b036263

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

plugins/accelerated-moe/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ Known Issues
1515
Currently databricks megablocks does not have a PyPi repository and does not have a proper release, so we have to install from the github repository as below. Please note that installing from github will require CUDA Toolkit to build.
1616

1717
```
18-
pip install git+https://github.com/databricks/megablocks.git@bce5d7b2aaf5038bc93b36f76c2baf51c2939bd2
18+
pip install -r requirements_mb.txt
1919
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip install git+https://github.com/databricks/megablocks.git@bce5d7b2aaf5038bc93b36f76c2baf51c2939bd2
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"gradient_accumulation_kwargs": {
3+
"sync_each_batch": true
4+
}
5+
}

scripts/benchmarks/scenarios.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,13 @@ scenarios:
9898
framework_config:
9999
- moe-megablocks
100100
arguments:
101-
learning_rate: 2e-4
102-
bf16: True
101+
learning_rate: 5e-5
103102
torch_dtype: bfloat16
103+
accelerator_config: scripts/benchmarks/accelerator-config.json
104+
gradient_accumulation_steps: 16
105+
logging_steps: 1
106+
packing: False
107+
adam_epsilon: 1e-8
108+
104109
model_name_or_path:
105110
- 'mistralai/Mixtral-8x7B-Instruct-v0.1'

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ commands =
3939
python -m fms_acceleration.cli install -e {toxinidir}/plugins/accelerated-peft
4040
python -m fms_acceleration.cli install -e {toxinidir}/plugins/fused-ops-and-kernels
4141
python -m fms_acceleration.cli install -e {toxinidir}/plugins/attention_and_distributed_packing
42+
python -m fms_acceleration.cli install -e {toxinidir}/plugins/accelerated-moe
43+
44+
# need to install some optional dependencies
45+
# - the megablocks dependency
46+
pip install -r {toxinidir}/plugins/accelerated-moe/requirements-mb.txt
4247

4348
# run the benchmark script
4449
bash scripts/run_benchmarks.sh {posargs:"1 2" benchmark_outputs}

0 commit comments

Comments
 (0)