Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use latest optimum to not call deprecated shared_memory API #2569

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/post_training/pipelines/causal_language_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class CausalLMHF(PTQTestPipeline):

def prepare_model(self) -> None:
if self.backend in OV_BACKENDS + [BackendType.FP32]:
self.model_hf = OVModelForCausalLM.from_pretrained(self.model_id, export=True, compile=False)
self.model_hf = OVModelForCausalLM.from_pretrained(
self.model_id, export=True, compile=False, stateful=False
)
self.model = self.model_hf.model
ov.serialize(self.model, self.fp32_model_dir / "model_fp32.xml")

Expand Down
4 changes: 2 additions & 2 deletions tests/post_training/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ onnxruntime==1.14.1
pytest==8.0.2
pytest-cov
openvino-dev==2024.0.0
optimum[onnxruntime,openvino]==1.16.0
optimum-intel @ git+https://github.com/huggingface/optimum-intel@622f585962e5e0ff5f927fd1a96fbc02b60a2e65
optimum[onnxruntime,openvino]==1.17.1
optimum-intel==1.15.2
whowhatbench @ git+https://github.com/andreyanufr/who_what_benchmark@456d3584ce628f6c8605f37cd9a3ab2db1ebf933
soundfile==0.12.1
librosa==0.10.0
Expand Down
Loading