feat: add linear-state block manager and prefix cache (3/n).#1846
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces support for linear-state (Qwen3.5 GDN) live slots by adding the LINEAR block type and implementing corresponding state management methods in Sequence and KVCacheState. It also adds a MOVE_ONLY macro in macros.h. The feedback suggests using emplace_back instead of push_back when adding a slot to the block vector in sequence.h to avoid unnecessary copies, in accordance with the repository style guide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
1bed522 to
2d0841f
Compare
717c4b5 to
4d87fb8
Compare
4d87fb8 to
9e6c147
Compare
9e6c147 to
75c1aa7
Compare
eb08e3b to
0698ce1
Compare
0698ce1 to
91ed09a
Compare
91ed09a to
e2f2074
Compare



Description
Related Issues
Change Type
Pull Request Checklist
Thank you for contributing to xLLM. Before requesting review, please make sure the following items are complete.
PR Title and Commit Messages
<type>: <subject>.Pre-commit Checks
pre-commitby runningpip install pre-commitor an equivalent command.pre-commit install.pre-commit run --all-filesand fixed any reported issues.Self Review
.agents/skills/code-review/references/custom-code-style.md, especially code written or assisted by AI.mainbranch.Build and Test Coverage
python setup.py build testhas passed on a CUDA machine.python setup.py build testhas passed on an NPU machine.python setup.py build testhas passed on an MLU machine.Reviewer Notes
pr说明如下:
https://yingxudeng.github.io/xllm-notes/reports/qwen35-linear-prefix-cache-pr1839/