"...git@developer.sourcefind.cn:2222/OpenDAS/vllm_cscc.git" did not exist on "661a34fd4fdd700a29b2db758e23e4e243e7ff18"
Unverified Commit 82079729 authored by aws-patlange's avatar aws-patlange Committed by GitHub
Browse files

[Bugfix] Fix assertion in NeuronExecutor (#5841)

parent c2a8ac75
......@@ -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.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment