Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…olbox into romanlutz/pin_text_vision
  • Loading branch information
romanlutz committed Oct 11, 2023
2 parents 2eee1bc + 14a299e commit 58e0630
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/CI-notebook-vision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: 16.x
strategy:
matrix:
operatingSystem: [ubuntu-latest, windows-latest]
operatingSystem: [ubuntu-latest]
pythonVersion: [3.7, 3.8, 3.9, "3.10"]

runs-on: ${{ matrix.operatingSystem }}
Expand Down Expand Up @@ -48,17 +48,29 @@ jobs:
- name: Build Typescript
run: yarn buildall

- if: ${{ matrix.operatingSystem != 'macos-latest' }}
- if: ${{ matrix.operatingSystem != 'macos-latest' && matrix.pythonVersion == '3.7' }}
name: Install pytorch on non-MacOS with python 3.7
shell: bash -l {0}
run: |
conda install --yes --quiet "pytorch==1.13.1" "torchvision<0.15" captum cpuonly -c pytorch
- if: ${{ matrix.operatingSystem == 'macos-latest' && matrix.pythonVersion == '3.7' }}
name: Install Anaconda packages on MacOS with python 3.7
shell: bash -l {0}
run: |
conda install --yes --quiet "pytorch==1.13.1" "torchvision<0.15" captum -c pytorch
- if: ${{ matrix.operatingSystem != 'macos-latest' && matrix.pythonVersion != '3.7' }}
name: Install pytorch on non-MacOS
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch torchvision captum cpuonly -c pytorch
conda install --yes --quiet "pytorch<2.1,>1.13.1" "torchvision<0.16" captum cpuonly -c pytorch
- if: ${{ matrix.operatingSystem == 'macos-latest' }}
- if: ${{ matrix.operatingSystem == 'macos-latest' && matrix.pythonVersion != '3.7' }}
name: Install Anaconda packages on MacOS, which should not include cpuonly according to official docs
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch torchvision captum -c pytorch
conda install --yes --quiet "pytorch<2.1,>1.13.1" "torchvision<0.16" captum -c pytorch
- name: Setup tools
shell: bash -l {0}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/CI-responsibleai-text-vision-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
name: Install pytorch on non-MacOS
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch torchvision captum cpuonly -c pytorch
conda install --yes --quiet pytorch==1.13.1 "torchvision<0.15" captum cpuonly -c pytorch
- if: ${{ matrix.operatingSystem == 'macos-latest' }}
name: Install Anaconda packages on MacOS, which should not include cpuonly according to official docs
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch torchvision captum -c pytorch
conda install --yes --quiet pytorch==1.13.1 "torchvision<0.15" captum -c pytorch
- name: Setup tools
shell: bash -l {0}
Expand Down

0 comments on commit 58e0630

Please sign in to comment.