forked from foundation-model-stack/fms-acceleration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (37 loc) · 1.29 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[tox]
envlist = lint, gen-configs, run-benches
[testenv:gen-configs]
description = generate sample configurations for all plugins
deps =
ruamel.yaml>=0.18
skip_install = true
commands =
python scripts/generate_sample_configurations.py {posargs:sample-configurations}
# put this here first, consider moving it later
[testenv:run-benches]
description = run benchmarks
skip_install = true
commands =
# need a version of fms-hf-tuning that has integrated the framework
# NOTE: have to install this first coz havnt merged
# - this repo has a lot of pins, so we just install it first
pip install "fms-hf-tuning[flash-attn] @ git+https://github.com/fabianlim/fms-hf-tuning.git@acceleration-framework"
# some models need this for tokenizers
pip install protobuf
# install the framework
pip install -e {toxinidir}/plugins/framework
# install the plugins for test
# NOTE: when there are more plugins install here
python -m fms_acceleration.cli install -e {toxinidir}/plugins/accelerated-peft
# run the benchmark script
bash scripts/run_benchmarks.sh {posargs:"1 2" benchmark_outputs}
allowlist_externals = bash
[testenv:lint]
description = run linters
skip_install = true
deps =
black>=22.12
isort>=5.11
commands =
black scripts
isort scripts