Skip to content

Commit

Permalink
update torch dep in framework and run-benches
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
  • Loading branch information
fabianlim committed May 17, 2024
1 parent 0aa4437 commit 108a639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/framework/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers=[
"Programming Language :: Python :: 3.11",
]
dependencies = [
"torch<2.3",
"torch>2.2,<2.3",
"transformers<4.40",
"peft",
"accelerate"
Expand Down
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ allowlist_externals = bash
[testenv:run-benches]
description = run benchmarks
skip_install = true
deps = packaging # this is required for flash-attn dep as fms_hf_tuning did not specify
deps =
packaging # this is required for flash-attn dep as fms_hf_tuning did not specify
-e {toxinidir}/plugins/framework # install the framework here as the flash attention deps requires torch
setenv =
FHT_BRANCH = {env:FHT_BRANCH:main}
DRY_RUN = {env:DRY_RUN:false}
Expand All @@ -35,9 +37,6 @@ commands =
# 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
Expand Down

0 comments on commit 108a639

Please sign in to comment.