Skip to content

Commit

Permalink
fixes to installation of aadp
Browse files Browse the repository at this point in the history
Signed-off-by: 1000850000 user <[email protected]>
  • Loading branch information
achew010 committed Sep 4, 2024
1 parent 4831b35 commit afa1390
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
3 changes: 3 additions & 0 deletions plugins/framework/src/fms_acceleration/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def install_plugin(
assert len(pkg_name) == 1, "Please specify exactly one plugin to install"
pkg_name = pkg_name[0]

# if toxinidir is specified in path, replace with cwd
pkg_name = pkg_name.format(toxinidir=os.getcwd())

# take the flags
args = [x for x in args if x.startswith("-")]

Expand Down
10 changes: 9 additions & 1 deletion scripts/benchmarks/scenarios-orca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ data_processing:
ASSISTANT:
{{ message['answer'] }}
{%- endfor %}
dataset_split: "train[:2000]"
dataset_split: "train[:8000]"
tokenize: false

# scenarios
Expand All @@ -49,6 +49,8 @@ scenarios:
packing: False
model_name_or_path:
- 'mistralai/Mistral-7B-v0.1'
# dataset_text_field: null
# response_template: null
dataset_text_field: 'output'
response_template: "\n\nASSISTANT:"

Expand All @@ -64,6 +66,8 @@ scenarios:
packing: False
model_name_or_path:
- 'mistralai/Mistral-7B-v0.1'
# dataset_text_field: null
# response_template: null
dataset_text_field: 'output'
response_template: "\n\nASSISTANT:"

Expand All @@ -87,6 +91,8 @@ scenarios:
packing: False
model_name_or_path:
- 'mistralai/Mistral-7B-v0.1'
# dataset_text_field: null
# response_template: null
dataset_text_field: 'output'
response_template: "\n\nASSISTANT:"

Expand All @@ -110,5 +116,7 @@ scenarios:
packing: False
model_name_or_path:
- 'TheBloke/Mistral-7B-v0.1-GPTQ'
# dataset_text_field: null
# response_template: null
dataset_text_field: 'output'
response_template: "\n\nASSISTANT:"
11 changes: 10 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ commands =
# NOTE: when there are more plugins install here
python -m fms_acceleration.cli install -e {toxinidir}/plugins/accelerated-peft
python -m fms_acceleration.cli install -e {toxinidir}/plugins/fused-ops-and-kernels
python -m fms_acceleration.cli install -e {toxinidir}/plugins/attention_and_distributed_packing
python -m fms_acceleration.cli install -e {toxinidir}/plugins/attention-and-distributed-packing

# run the benchmark script
bash scripts/run_benchmarks.sh {posargs:"1 2" "4 8" benchmark_outputs}
Expand All @@ -54,3 +54,12 @@ deps =
commands =
black scripts
isort scripts

[testenv:devt]
description = devt
deps =
packaging # this is required for flash-attn dep as fms_hf_tuning did not specify
torch==2.4.0
skip_install = true
commands =
pip install -r {toxinidir}/main_requirements.txt

0 comments on commit afa1390

Please sign in to comment.