You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preserve the target model's absolute prompt position when DFlash flushes only a long-prompt prefill suffix into the cross-attention ring. This keeps drafter RoPE and masks aligned after full prompt reprocessing while retaining the bounded cross window.
Bound SWA/hybrid prompt checkpoint memory by the prompt-cache RAM limit, prune checkpoints copied into prompt-cache entries, allow oversized cache entries to be fully evicted, and make explicit prompt clears release retained checkpoint buffers.
Add regression coverage for absolute prefill commits, checkpoint-budget pruning, prompt clear ownership, and the server flush contract. Update the v0.3.2 changelog with the Qwen long-prompt garbage-output fix and Gemma follow-up memory/crash fix.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
- Added experimental KVarN KV-cache compression as cache-type names: `--cache-type-k kvarn2|kvarn3|kvarn4` and `--cache-type-v kvarn2|kvarn3|kvarn4`. KVarN is kept to the target context, validates unsupported placements at runtime, uses non-unified CUDA streams, preserves stream-scoped backend state, and is wired for the current Qwen3.6 and Gemma4 paths.
9
9
- Hardened KVarN memory ownership and server rollback behavior. Full prompt-cache sequence clears are now allowed, arbitrary old suffix trims are rejected before mutation, composite memory preflights child removals before changing either side, and DFlash prompt-checkpoint reuse now skips or fully reprocesses prompts when the active memory cannot safely roll back.
10
10
- Fixed the Gemma4 and Qwen3.6 DFlash + KVarN crash class seen after prompt-cache reuse. The server no longer asks KVarN-backed target memory to delete compressed historical groups during checkpoint restore, so repeated chat requests fall back to safe prefill instead of aborting in `seq_rm`.
11
+
- Fixed long-prompt DFlash prefill after full prompt reprocessing. DFlash now keeps the drafter on the target model's absolute prompt timeline when flushing only the final cross-attention window, preventing invalid reduced-logit drafts and Qwen3.6 garbage output after long prompts.
12
+
- Bounded prompt checkpoint memory for SWA/hybrid prompt-cache paths. Active checkpoints are byte-budgeted, prompt-cache saves prune or skip over-limit checkpoint state, cache eviction may remove every oversized entry, and explicit slot clears now release retained checkpoint buffers. This fixes the Gemma4 DFlash follow-up crash/memory spike where multi-GiB checkpoint lists were copied into prompt cache.
11
13
- Reduced KVarN side effects outside KVarN runs. KVarN is disabled for draft and auxiliary contexts, iSWA now keeps the SWA side on the compact upstream cache instead of allocating a full-size KVarN SWA cache, and DFlash backup streams are gated by target architecture so Gemma recurrent paths do not allocate unused backup state.
12
14
- Simplified the public KVarN surface while it is still experimental. The extra tuning flags were removed; the only user-facing selection is the cache type itself. Internal defaults such as sink tokens and Sinkhorn iterations now come from the selected `kvarnN` type.
13
15
- Improved KVarN CUDA behavior and validation. Cross-stream state copies are explicitly ordered, CUDA materialization group counts are precomputed, `llama-bench` accepts KVarN cache-type names for benchmarking, and regression coverage now checks stream synchronization, sequence-removal capability, prompt-cache rollback safety, iSWA sizing policy, unsupported runtime policy, and argument parsing.
0 commit comments