Skip to content

Commit

Permalink
set transformers version limit
Browse files Browse the repository at this point in the history
Signed-off-by: changwangss <[email protected]>
  • Loading branch information
changwangss committed Sep 5, 2024
1 parent 2683608 commit 1401c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion optimum/intel/neural_compressor/modeling_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def _from_pretrained(
**kwargs,
)

return model
return cls(model, config=config, model_save_dir=None, **kwargs).model

if use_auth_token is not None:
warnings.warn(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
QUALITY_REQUIRE = ["black~=23.1", "ruff==0.4.4"]

EXTRAS_REQUIRE = {
"neural-compressor": ["neural-compressor>3.0", "accelerate", "transformers<4.43"],
"neural-compressor": ["neural-compressor>3.0", "accelerate", "transformers<=4.43.2"],
"openvino": ["openvino>=2023.3", "nncf>=2.11.0", "openvino-tokenizers[transformers]"],
"nncf": ["nncf>=2.11.0"],
"ipex": ["intel-extension-for-pytorch", "transformers>=4.39,<4.45"],
Expand Down

0 comments on commit 1401c89

Please sign in to comment.