fix: call _ensure_stacked in warmup test
This commit is contained in:
@@ -83,6 +83,7 @@ def warmup_compute_gs(runner, hidden_states, topk_weights, topk_ids):
|
||||
top_k = topk_ids.shape[1]
|
||||
|
||||
# Build slot mapping (same as runner.run())
|
||||
runner._ensure_stacked()
|
||||
flat_ids = topk_ids.reshape(-1)
|
||||
num_slots = num_tokens * top_k
|
||||
token_indices = runner._token_indices[:num_slots]
|
||||
|
||||
Reference in New Issue
Block a user