Skip to content

Commit

Permalink
pin responsibleai text and vision packages to 0.30.0 (#2387)
Browse files Browse the repository at this point in the history
* pin responsibleai text and vision packages to 0.30.0

Signed-off-by: Roman Lutz <[email protected]>

* add notebook-text pytorch restrictions similar to vision notebooks

Signed-off-by: Roman Lutz <[email protected]>

* add restrictions to ci e2e notebooks text vision

Signed-off-by: Roman Lutz <[email protected]>

* remove special case for non-macos by python versions for pytorch installation

Signed-off-by: Roman Lutz <[email protected]>

* add --no-cache-dir to solve hash issue with tensorflow

Signed-off-by: Roman Lutz <[email protected]>

* double e2e notebooks timeout

Signed-off-by: Roman Lutz <[email protected]>

* try setting pins like in the last successful run of notebook e2e text vision

Signed-off-by: Roman Lutz <[email protected]>

* remove double timeout

Signed-off-by: Roman Lutz <[email protected]>

* help dependency resolver by restricting mlflow version

Signed-off-by: Roman Lutz <[email protected]>

* special case for mlflow in py37

Signed-off-by: Roman Lutz <[email protected]>

* some more attempts at fixing the resolution issues

Signed-off-by: Roman Lutz <[email protected]>

* remove pins

Signed-off-by: Roman Lutz <[email protected]>

* add 20 minutes to the timeout since tests hit the timeout frequently

Signed-off-by: Roman Lutz <[email protected]>

* downgrade gevent to 22.10.2

Signed-off-by: Roman Lutz <[email protected]>

* adjust ci e2e notebooks text vision pytorch version

Signed-off-by: Roman Lutz <[email protected]>

* remove gevent downgrade

Signed-off-by: Roman Lutz <[email protected]>

---------

Signed-off-by: Roman Lutz <[email protected]>
  • Loading branch information
romanlutz authored Oct 16, 2023
1 parent 14a299e commit 13d7a0f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI-e2e-notebooks-text-vision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ jobs:
auto-update-conda: true
python-version: ${{ matrix.pythonVersion }}

- name: Install pytorch
- name: Install pytorch with python 3.7
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
- name: Setup tools
shell: bash -l {0}
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/CI-notebook-text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,22 @@ jobs:
run: yarn buildall

- if: ${{ matrix.operatingSystem != 'macos-latest' }}
name: Install pytorch on non-MacOS
name: Install pytorch on non-MacOS with python 3.7
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch captum cpuonly -c pytorch
conda install --yes --quiet "pytorch==1.13.1" "torchvision<0.15" captum cpuonly -c pytorch
- if: ${{ matrix.operatingSystem == 'macos-latest' }}
- 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 Anaconda packages on MacOS, which should not include cpuonly according to official docs
shell: bash -l {0}
run: |
conda install --yes --quiet pytorch 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 All @@ -77,7 +83,7 @@ jobs:
- name: Install text dependencies
shell: bash -l {0}
run: |
pip install -r requirements-dev.txt
pip install -r requirements-dev.txt --no-cache-dir
pip install .
working-directory: responsibleai_text

Expand Down
2 changes: 1 addition & 1 deletion responsibleai_text/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ scikit-learn>=0.22.1
scipy>=1.4.1
semver~=2.13.0
nlp-feature-extractors==0.1.0
responsibleai>=0.30.0
responsibleai==0.30.0
2 changes: 1 addition & 1 deletion responsibleai_vision/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Pillow<10.0.0; python_version<="3.7" # Pillow v10.0.0 is only available starting
scikit-learn>=0.22.1
scipy>=1.4.1
semver~=2.13.0
responsibleai>=0.30.0
responsibleai==0.30.0
torchmetrics
vision_explanation_methods
2 changes: 1 addition & 1 deletion scripts/e2e-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const fileNames = tabularFileNames
.concat(textFileNames);
const notebookHostReg = /^ResponsibleAI started at (http:\/\/localhost:\d+)$/m;
const serveHostReg = /Web Development Server is listening at\s+(.*)$/m;
const timeout = 3600;
const timeout = 4800;

/**
*
Expand Down

0 comments on commit 13d7a0f

Please sign in to comment.