pub fn block_major_position_ids(
grid_h: usize,
grid_w: usize,
merge: usize,
) -> Vec<(u32, u32)>Expand description
2026-09-25: Per-token (h_id, w_id) in block-major order: the outer loops walk
the merge × merge blocks in raster order, the inner loops the positions
inside a block. This is the order
vision_preprocess_glm::block_major_patch_index gives the pixel patches.