[Bugfix][MRV2] Match fast-prefill padding to active LoRA batches (#56456)

Signed-off-by: waizuichougou <2082431897@qq.com>
Signed-off-by: waizuichougou <105572299+waizuichougou@users.noreply.github.com>
This commit is contained in:
waizuichougou
2026-09-18 22:13:23 +00:00
committed by GitHub
parent 1dc2d854c1
commit a1bf8ac12d
4 changed files with 69 additions and 3 deletions
+2 -1
View File
@@ -95,6 +95,7 @@ class FastPrefillHelper:
cu_num_logits_np: np.ndarray,
has_prefill: bool,
batch_desc: "BatchExecutionDescriptor",
num_active_loras: int = 0,
) -> FastPrefillBatchMetadata | None:
if (
not has_prefill
@@ -116,7 +117,7 @@ class FastPrefillHelper:
num_reqs=num_reqs,
num_tokens=num_logits,
uniform_token_count=None,
num_active_loras=0,
num_active_loras=num_active_loras,
)
num_logits_padded = min(desc.num_tokens, self.max_num_tokens)
return FastPrefillBatchMetadata(