Daniel Hiltgen
4d22e65d49
mlx: sort long top-k rows in chunks ( #19392 )
...
MLX's argpartition sorts the whole row, and a row longer than one block
of the GPU sort takes a multi-pass merge sort. TopKIndices sorts each
2048-value chunk in a single block, then only the chunks' top k, and
returns the same indices in the same order.
The sampler's top_k and top_logprobs and the DFlash2 candidate selector
use it in place of a full-vocabulary argpartition.
2026-10-29 18:53:49 -07:00
..
2026-10-03 13:17:21 -07:00
2026-10-25 21:25:58 -07:00
2026-10-29 18:53:49 -07:00
2026-10-25 21:25:58 -07:00
2026-10-29 18:53:49 -07:00
2026-10-04 07:45:15 -07:00
2026-09-23 11:20:59 -07:00
2026-09-16 14:06:08 -07:00
2026-09-16 14:06:08 -07:00
2026-10-03 13:17:21 -07:00
2026-10-03 13:17:21 -07:00
2026-10-22 11:36:42 -07:00
2026-10-22 11:36:42 -07:00
2026-09-22 11:24:11 -07:00
2026-10-22 11:36:42 -07:00
2026-10-26 16:04:43 -07:00
2026-10-26 16:04:43 -07:00
2026-10-06 08:08:38 -07:00
2026-10-06 08:08:38 -07:00
2026-09-16 14:06:08 -07:00
2026-10-03 13:17:21 -07:00
2026-10-03 13:17:21 -07:00
2026-09-16 14:06:08 -07:00
2026-09-16 14:06:08 -07:00
2026-09-22 11:24:11 -07:00
2026-09-16 14:06:08 -07:00
2026-10-13 09:38:47 -07:00
2026-09-16 14:06:08 -07:00
2026-10-13 09:38:47 -07:00
2026-09-16 14:06:08 -07:00
2026-10-12 09:28:22 -07:00
2026-10-12 09:28:22 -07:00
2026-10-27 08:47:18 -07:00
2026-10-12 21:50:41 -07:00
2026-10-05 17:34:41 -07:00
2026-10-12 21:50:41 -07:00
2026-10-22 11:36:42 -07:00
2026-09-16 14:06:08 -07:00
2026-09-16 14:06:08 -07:00
2026-10-26 16:04:43 -07:00
2026-10-26 16:04:43 -07:00
2026-10-27 18:56:22 -07:00
2026-09-16 14:06:08 -07:00
2026-09-16 14:06:08 -07:00
2026-09-16 14:06:08 -07:00
2026-09-16 14:06:08 -07:00
2026-09-16 14:06:08 -07:00
2026-09-16 14:06:08 -07:00