llama : ragged ubatches for GDN hybrid models (RFC)
A ubatch of a recurrent or hybrid model needs the same token count for every seq. Add ragged ubatches, where each seq has its own count, so that a mixed batch runs as one ubatch.
- llama_batch_allocr::split_ragged() and llama_ubatch::seq_tokens
- ggml_gated_delta_net_ragged(): per-seq token range and keep/commit (CPU, CUDA)
- ggml_flash_attn_ext_rows_ragged(): length aware kv_rows (CPU, CUDA)
- conv state and conv output of the GDN layers for ragged ubatches
- the other backends reject the two op variants
Opt-in with LLAMA_RAGGED=1, needs a unified KV cache, qwen35 / qwen35moe only.