bug(sampling): top_k_arr/min_p_arr are validated against input rows but indexed by output row, reading out of bounds when indices is longer than probs
Summary top k sampling from probs and min p sampling from probs validate their per-request parameter tensor against the input batch but index it by the output row. When indices is longer than probs.size(0) , every output row at or past probs.size(0) reads past the end of the…
Demand: 0 reactions, 3 comments · Maintainer engagement: 2028 PRs merged in the project in 30 days; filed by a maintainer · Feasibility: labelled as a starter issue · Freshness: updated 36 days ago