[Bugfix] Fix OpenVINOExecutor abstractmethod error (#6296)

Signed-off-by: sangjune.park <sangjune.park@navercorp.com>
This commit is contained in:
sangjune.park 2024-07-11 02:03:32 +09:00 committed by GitHub
parent b422d4961a
commit 44cc76610d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,6 +90,22 @@ class OpenVINOExecutor(ExecutorBase):
def list_loras(self) -> Set[int]:
return self.driver_worker.list_loras()
def add_prompt_adapter(self, prompt_adapter_request) -> bool:
raise NotImplementedError(
"Soft prompt is currently not supported by the OPENVINO backend.")
def remove_prompt_adapter(self, prompt_adapter_id: int) -> bool:
raise NotImplementedError(
"Soft prompt is currently not supported by the OPENVINO backend.")
def pin_prompt_adapter(self, prompt_adapter_id: int) -> bool:
raise NotImplementedError(
"Soft prompt is currently not supported by the OPENVINO backend.")
def list_prompt_adapters(self) -> Set[int]:
raise NotImplementedError(
"Soft prompt is currently not supported by the OPENVINO backend.")
def check_health(self) -> None:
# OpenVINOExecutor will always be healthy as long as
# it's running.