[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:
co-authored by
Bhushan Asati
Megha Agarwal
parent
ef5f7cd119
commit
84e5f3edac
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user