[PP] Pass DSA topk through PP warmup proxy buffers (#28785)

This commit is contained in:
Mohammad Miadh Angkad
2026-06-21 23:55:39 +08:00
committed by GitHub
parent 7942d546d1
commit 643ee748c6
3 changed files with 21 additions and 0 deletions
@@ -190,6 +190,11 @@ class EagerRunner(BaseRunner):
pp_proxy_tensors["residual"] = torch.zeros(
(rows, hidden_size), dtype=mr.dtype, device=mr.device
)
pp_proxy_topk_size = mr.get_pp_proxy_topk_size()
if pp_proxy_topk_size is not None:
pp_proxy_tensors["topk_indices"] = torch.zeros(
(rows, pp_proxy_topk_size), dtype=torch.int32, device=mr.device
)
adapter = SimpleNamespace(
input_ids=_slot("input_ids"),