UPSTREAM PR #20653: Models: Add control vector functions to qwen3.5 and qwen-next models - #1264
Open
loci-dev wants to merge 1 commit into
Open
UPSTREAM PR #20653: Models: Add control vector functions to qwen3.5 and qwen-next models#1264loci-dev wants to merge 1 commit into
loci-dev wants to merge 1 commit into
Conversation
OverviewThis PR adds control vector support to Qwen3.5 and Qwen3Next models with negligible performance impact. Out of 120,579 total functions analyzed, only 4 were modified (0 new, 0 removed). The single function exceeding the 2% threshold shows +342ns (+0.225%) response time increase during graph construction—a one-time initialization cost that does not affect per-token inference performance. Power Consumption Changes:
Function Analysis
Other modified functions showed changes below the 2% threshold. 🔎 Full breakdown: Loci Inspector |
loci-dev
force-pushed
the
main
branch
12 times, most recently
from
March 25, 2026 02:17
88f82d8 to
8c39ead
Compare
loci-dev
force-pushed
the
main
branch
10 times, most recently
from
April 1, 2026 02:18
f6c9b75 to
6c480d8
Compare
loci-dev
force-pushed
the
main
branch
5 times, most recently
from
April 6, 2026 02:18
3655621 to
fd3ce9d
Compare
loci-dev
force-pushed
the
main
branch
7 times, most recently
from
April 12, 2026 02:18
55afbee to
ef0eff4
Compare
loci-dev
force-pushed
the
main
branch
9 times, most recently
from
April 19, 2026 02:19
63ab8d1 to
7638ab4
Compare
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.
Note
Source pull request: ggml-org/llama.cpp#20653
This PR adds control vector support to Qwen3.5, Qwen3.5-MoE and Qwen3-next (Qwen3-coder-next).
It was missing before but was present for Qwen3-vl and so on.
Control vector PR for reference: ggml-org/llama.cpp#5970
The PR resolves ggml-org/llama.cpp#20541
AI disclaimer: I had Claude point me at the missing parts and help me understand the correct position for the two lines added in each file.
I tested the changes myself and made sure it doesn't break things where I could. The local CI pipeline shows no problem with the new code.