Skip to content

Commit

Permalink
Setup: fix for direct dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe5 committed Oct 10, 2024
1 parent 92b6f99 commit 4617f7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def tests_brevitas_examples_llm(session, pytorch, jit_status):
install_pytorch(pytorch, session)
install_torchvision(pytorch, session) # Optimum seems to require torchvision
session.install('-e', '.[test, llm, export]')
session.install(
'optimum-amd[brevitas] @ git+https://github.com/huggingface/optimum-amd.git@main')
session.run('pytest', '-n', 'logical', '-k', 'llm', 'tests/brevitas_examples/test_llm.py')


Expand Down
2 changes: 1 addition & 1 deletion requirements/requirements-llm.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
optimum-amd[brevitas] @ git+https://github.com/huggingface/optimum-amd.git@main
# optimum-amd[brevitas] @ git+https://github.com/huggingface/optimum-amd.git@main
tqdm
transformers
8 changes: 4 additions & 4 deletions src/brevitas_examples/llm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## Requirements

- transformers (from source)
- transformers
- datasets
- torch_mlir (optional for torch-mlir based export)
- optimum (from source)
- optimum-amd (WIP, install brevitas-compatibility branch)
- accelerate (from source)
- optimum
- optimum-amd (install from main)
- accelerate

## Run

Expand Down

0 comments on commit 4617f7b

Please sign in to comment.