-
Notifications
You must be signed in to change notification settings - Fork 116
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
Concurrency support using model clone #564
base: main
Are you sure you want to change the base?
Conversation
Multithreading tests
…ency_support_cloneall
This PR is a replacement for #519 |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
self.request = core.compile_model(self.model, self.device, self.ov_config) | ||
logger.info(f"Compiling the {self._model_name} to {self.device} with config {self.ov_config} ... ") | ||
self.compiled_model = core.compile_model(self.model, self.device, self.ov_config) | ||
self.request = self.compiled_model # Deprecated attribute, use compiled_model instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can there be a DeprecationWarning when people use self.request, so they know it's deprecated?
@@ -0,0 +1,2 @@ | |||
optimum-intel[openvino, nncf]"@git+https://github.com/huggingface/optimum-intel.git | |||
transformers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transformers |
transformers is a dependency of optimum-intel
return self | ||
|
||
def forward(self, *args, **kwargs): | ||
raise NotImplementedError | ||
|
||
def clone(self): | ||
self.compile() | ||
model_cloned = self.__class__(self.model, config=self.config, compile=False, dynamic_shapes=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why dynamic_shapes=False?
Support for execution with multi concurrency
Before submitting