[Bugfix] Validate routed-expert prompt offsets before engine submission (#56844)

Signed-off-by: aoshen02 <aoshen@inferact.ai>
Co-authored-by: Bhushan Asati <bhushanasati25@gmail.com>
Co-authored-by: Megha Agarwal <19240983+meghaagr13@users.noreply.github.com>
This commit is contained in:
aoshen02
2026-09-15 09:17:41 +08:00
committed by GitHub
co-authored by Bhushan Asati Megha Agarwal
parent ef5f7cd119
commit 84e5f3edac
4 changed files with 83 additions and 10 deletions
+1 -1
View File
@@ -2101,7 +2101,7 @@ class Scheduler(SchedulerInterface):
prompt_start = (
request.sampling_params.routed_experts_prompt_start
)
assert prompt_start < request.num_prompt_tokens
assert prompt_start <= request.num_prompt_tokens
else:
prompt_start = 0
routed_experts = self.routed_experts_mgr.get(