mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-09 21:55:50 +08:00
[Bugfix] Fix assertion in NeuronExecutor (#5841)
This commit is contained in:
parent
c2a8ac75e0
commit
82079729cc
@ -48,9 +48,9 @@ class NeuronExecutor(ExecutorBase):
|
||||
def execute_model(
|
||||
self,
|
||||
execute_model_req: ExecuteModelRequest) -> List[SamplerOutput]:
|
||||
assert (execute_model_req.blocks_to_swap_in == {}
|
||||
and execute_model_req.blocks_to_swap_out == {}
|
||||
and execute_model_req.blocks_to_copy == {}), (
|
||||
assert (not execute_model_req.blocks_to_swap_in
|
||||
and not execute_model_req.blocks_to_swap_out
|
||||
and not execute_model_req.blocks_to_copy), (
|
||||
"Cache operations are not supported for Neuron backend.")
|
||||
assert execute_model_req.num_lookahead_slots == 0, (
|
||||
"lookahead not supported for Neuron backend.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user