Skip to content

Commit b16f54a

Browse files
authored
Pin transformer's version (#7782)
workaround for #7781 ### Description A few sentences describing the changes proposed in this pull request. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <[email protected]>
1 parent 25e78a2 commit b16f54a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: docs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ sphinxcontrib-serializinghtml
2121
sphinx-autodoc-typehints==1.11.1
2222
pandas
2323
einops
24-
transformers<4.22; python_version <= '3.10' # https://github.com/Project-MONAI/MONAI/issues/5157
24+
transformers>=4.36.0, <4.41.0; python_version <= '3.10'
2525
mlflow>=2.12.2
2626
clearml>=1.10.0rc0
2727
tensorboardX

Diff for: requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ tifffile; platform_system == "Linux" or platform_system == "Darwin"
3333
pandas
3434
requests
3535
einops
36-
transformers>=4.36.0
36+
transformers>=4.36.0, <4.41.0; python_version <= '3.10'
3737
mlflow>=2.12.2
3838
clearml>=1.10.0rc0
3939
matplotlib>=3.6.3

Diff for: setup.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ all =
6565
imagecodecs
6666
pandas
6767
einops
68-
transformers<4.22; python_version <= '3.10'
68+
transformers>=4.36.0, <4.41.0; python_version <= '3.10'
6969
mlflow>=2.12.2
7070
clearml>=1.10.0rc0
7171
matplotlib>=3.6.3
@@ -123,7 +123,7 @@ pandas =
123123
einops =
124124
einops
125125
transformers =
126-
transformers<4.22; python_version <= '3.10'
126+
transformers>=4.36.0, <4.41.0; python_version <= '3.10'
127127
mlflow =
128128
mlflow>=2.12.2
129129
matplotlib =

0 commit comments

Comments
 (0)