Skip to content

Commit

Permalink
Specify triton 2.0.0 requirement (#4008)
Browse files Browse the repository at this point in the history
* specify triton 2.0.0 requirement

* fix for setup-venv action

* fix for install error

* fix torch install error
  • Loading branch information
mrwyattii authored Jul 21, 2023
1 parent 0cc2d6f commit 8e80839
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nv-inference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Install deepspeed
run: |
pip install .[dev,1bit,autotuning,inf]
pip install .[dev,1bit,autotuning,inf,triton]
ds_report
- name: Python environment
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/nv-transformers-v100.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ jobs:
- name: Install pytorch
run: |
# use the same pytorch version as transformers CI
pip install -U --cache-dir $TORCH_CACHE torch torchvision torchaudio -f https://download.pytorch.org/whl/torch_stable.html
pip install -U --cache-dir $TORCH_CACHE torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116
python -c "import torch; print('torch:', torch.__version__, torch)"
python -c "import torch; print('CUDA available:', torch.cuda.is_available())"
- name: Install transformers
run: |
git clone https://github.com/huggingface/transformers
cd transformers
# if needed switch to the last known good SHA until transformers@master is fixed
# git checkout 1cc453d33
git rev-parse --short HEAD
pip install .
- name: Install deepspeed
run: |
pip install .[dev,autotuning]
Expand All @@ -43,12 +52,7 @@ jobs:
- name: HF transformers tests
run: |
unset TORCH_CUDA_ARCH_LIST # only jit compile for current arch
git clone https://github.com/huggingface/transformers
cd transformers
# if needed switch to the last known good SHA until transformers@master is fixed
#git checkout 6268694e2
git rev-parse --short HEAD
# scipy/sklearn required for tests, using the 'dev' extra forces torch re-install
pip install .[testing]
# find reqs used in ds integration tests
find examples/pytorch -regextype posix-egrep -regex '.*(language-modeling|question-answering|summarization|image-classification|text-classification|translation).*/requirements.txt' -exec grep -v 'torch' {} \; | xargs -I {} pip install --upgrade {}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/setup-venv/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ runs:
shell: bash
- id: create-venv
run: |
rm -rf ./unit-test-venv
python -m venv unit-test-venv
source ./unit-test-venv/bin/activate
python -m pip install --upgrade pip
Expand Down
1 change: 0 additions & 1 deletion requirements/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ sphinx-rtd-theme
tensorboard
torchvision
transformers
triton
wandb
1 change: 0 additions & 1 deletion requirements/requirements-inf.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ lm-eval==0.3.0
protobuf
transformers
transformers[sentencepiece]
triton
2 changes: 1 addition & 1 deletion requirements/requirements-triton.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
triton
triton>=2.0.0

0 comments on commit 8e80839

Please sign in to comment.