Skip to content

Commit

Permalink
add timm extra dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jan 13, 2024
1 parent f74ca07 commit 0e56738
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_cpu_onnxruntime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install requirements
run: |
pip install --upgrade pip
pip install -e .[test,onnxruntime,diffusers]
pip install -e .[test,onnxruntime,diffusers,timm]
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_cpu_pytorch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install requirements
run: |
pip install --upgrade pip
pip install -e .[test,diffusers]
pip install -e .[test,diffusers,timm]
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_cuda_onnxruntime_inference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
--workdir /workspace/optimum-benchmark
--gpus '"device=0,1"'
opt-bench-cuda:11.8.0
-c "pip install -e .[test,onnxruntime-gpu,diffusers] && pytest -k 'cuda and onnxruntime and inference' -x"
-c "pip install -e .[test,onnxruntime-gpu] && pytest -k 'cuda and onnxruntime and inference' -x"
2 changes: 1 addition & 1 deletion .github/workflows/test_cuda_pytorch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
--gpus '"device=0,1"'
--entrypoint /bin/bash
opt-bench-cuda:${{ matrix.image.cuda_version }}
-c "pip install -e .[test,peft,diffusers,deepspeed] && pytest -k 'cuda and pytorch' -x"
-c "pip install -e .[test,peft,deepspeed] && pytest -k 'cuda and pytorch' -x"
2 changes: 1 addition & 1 deletion .github/workflows/test_rocm_pytorch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ jobs:
--device /dev/dri/renderD129
--entrypoint /bin/bash
opt-bench-rocm:${{ matrix.image.rocm_version }}
-c "pip install -e .[test,peft,diffusers,deepspeed] && pytest -k 'cuda and pytorch' -x"
-c "pip install -e .[test,peft,deepspeed] && pytest -k 'cuda and pytorch' -x"
2 changes: 1 addition & 1 deletion .github/workflows/test_tensorrt_onnxruntime_inference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
--gpus '"device=0,1"'
--entrypoint /bin/bash
opt-bench-tensorrt:22.12
-c "pip install -e .[test,onnxruntime-gpu,diffusers] && pytest -k 'tensorrt and onnxruntime and inference' -x"
-c "pip install -e .[test,onnxruntime-gpu] && pytest -k 'tensorrt and onnxruntime and inference' -x"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
# specific settings
"deepspeed": ["deepspeed"],
"diffusers": ["diffusers"],
"timm": ["timm"],
"peft": ["peft"],
}

Expand Down

0 comments on commit 0e56738

Please sign in to comment.