Skip to content

Commit 6327a86

Browse files
authored
Transformers version (#8574)
Fixes #8341. ### Description This updates the version of Huggingface transformers to account for security alerts for old versions. ### 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: Eric Kerfoot <[email protected]>
1 parent 946cfdf commit 6327a86

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
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.36.0, <4.41.0; python_version <= '3.10'
24+
transformers>=4.53.0
2525
mlflow>=2.12.2
2626
clearml>=1.10.0rc0
2727
tensorboardX

monai/networks/nets/transchex.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ def __init__(
333333
"chunk_size_feed_forward": chunk_size_feed_forward,
334334
"is_decoder": is_decoder,
335335
"add_cross_attention": add_cross_attention,
336+
"_attn_implementation": "eager",
336337
}
337338
if not (0 <= drop_out <= 1):
338339
raise ValueError("dropout_rate should be between 0 and 1.")

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tifffile; platform_system == "Linux" or platform_system == "Darwin"
3535
pandas
3636
requests
3737
einops
38-
transformers>=4.36.0, <4.41.0; python_version <= '3.10'
38+
transformers>=4.53.0
3939
mlflow>=2.12.2
4040
clearml>=1.10.0rc0
4141
matplotlib>=3.6.3

0 commit comments

Comments
 (0)