Complete opt-in Qwen HiCache state transfer and backport QSA/restore fixes - #9
Merged
Merged
Conversation
fix(qwen): map minimal reasoning effort to low
Reuse the ordered Qwen parser for complete outputs whose tool or renewed-reasoning boundaries would otherwise collapse. Add focused regressions and refresh the cumulative source attestations on merged minimal-effort alias main.
fix(responses): preserve Qwen phase and item order
fix(qwen): enable Flash-Next multimodal processor paths
fix(runtime): surface invalid generated token failures
…-compat-20260914 docs: record cumulative compatibility image publication
ktsaou
marked this pull request as ready for review
September 14, 2026 20:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qwen HiCache previously restored KV/Mamba buffers without all PLE and compressed QSA state, so a reused prefix could differ from its original computation. This updates the isolated HiCache profile onto current
main, carries the missing target/draft state through RAM and files, and adds upstream QSA, router and restore-order corrections.The ordinary Dockerfile and default profiles remain unchanged. The opt-in build pins the cumulative parent and verifies the complete 4,393-file runtime inventory.
Changes:
Upstream backports/adaptations:
These changes were adapted to the pinned cumulative runtime. PRs #36743 and #39446 were open when imported; the included regression tests validate the applied changes locally. Patches 0020–0022 contain the Qwen companion-state work preserved from this draft.
Validation:
The tested TP2/MTP3 configuration retains scheduler overlap, target/draft graphs, 64 request slots, 512k context and multimodal inputs, using 60GB aggregate RAM HiCache and a 512GB file payload cap. Prefill CUDA graphs remain disabled as in the baseline; no additional performance feature was disabled.
Limits: only the kernel transfer path and built-in file backend are covered. Best-effort prefetch can recompute, so the strict all-request disk-hit assertion remains recorded as failed; correct recomputation alone is not counted as restoration. One prefetched request reported a device hit. RAM-only pressure tests did not establish host hits, while the combined disk path exercised RAM-to-GPU restoration. Very short video ordering remains a known limitation; longer multi-frame fixtures pass.
Configuration, historical failures and detailed results:
docs/hicache-wip.md.