transformers
ba971ee5 - qwen4_exp: indexer position history in a static buffer for StaticCache (compiled decode)

Commit
1 day ago
qwen4_exp: indexer position history in a static buffer for StaticCache (compiled decode) With a StaticCache, the indexer position history grew by concatenation on the cache layer: its shape changed every step (a recompile per token) and, under CUDA graphs, the stored tensor was a graph output overwritten by the next replay. StaticIndexedLayer now writes positions in place into a [dims, batch, max_cache_len] buffer (static address) and returns the buffer followed by the current positions; DynamicIndexedLayer keeps concatenating. The model calls indexer_cache.update_indexer_positions(position_ids). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Committer
Parents
Loading