mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-09 10:09:15 +08:00
[Bugfix][Neuron] Fix soft prompt method error in NeuronExecutor (#6313)
This commit is contained in:
parent
ae151d73be
commit
997df46a32
@ -70,6 +70,22 @@ class NeuronExecutor(ExecutorBase):
|
|||||||
def list_loras(self) -> Set[int]:
|
def list_loras(self) -> Set[int]:
|
||||||
return self.driver_worker.list_loras()
|
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 Neuron backend.")
|
||||||
|
|
||||||
|
def remove_prompt_adapter(self, prompt_adapter_id: int) -> bool:
|
||||||
|
raise NotImplementedError(
|
||||||
|
"Soft prompt is currently not supported by the Neuron backend.")
|
||||||
|
|
||||||
|
def pin_prompt_adapter(self, prompt_adapter_id: int) -> bool:
|
||||||
|
raise NotImplementedError(
|
||||||
|
"Soft prompt is currently not supported by the Neuron backend.")
|
||||||
|
|
||||||
|
def list_prompt_adapters(self) -> Set[int]:
|
||||||
|
raise NotImplementedError(
|
||||||
|
"Soft prompt is currently not supported by the Neuron backend.")
|
||||||
|
|
||||||
def check_health(self) -> None:
|
def check_health(self) -> None:
|
||||||
# NeuronExecutor will always be healthy as long as
|
# NeuronExecutor will always be healthy as long as
|
||||||
# it's running.
|
# it's running.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user