mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2965] [CLOSED] setup: a separate opt-in layers 8-33 projection vector for the original Qwen3.8-Flash-Next (any quantization) #4365
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4365
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2965
Author: @sergqwer
Created: 10/17/2026
Status: ❌ Closed
Base:
main← Head:pr/flashnext-projection📝 Commits (1)
841f8c9setup: a separate, opt-in layers 8-33 projection vector for the original Qwen3.8-Flash-Next (any quantization)📊 Changes
7 files changed (+525 additions, -4 deletions)
View changed files
➕
data/experimental-speed-projection/Qwen3.8-Flash-Next-experimental-speed-projection-l8-33.gguf(+0 -0)➕
data/experimental-speed-projection/Qwen3.8-Flash-Next-experimental-speed-projection-l8-33.json(+149 -0)📝
data/experimental-speed-projection/README.md(+58 -0)📝
docs/DETAILS.md(+9 -0)📝
serve/server.py(+25 -0)📝
setup.py(+70 -4)➕
tools/test_setup_projection.py(+214 -0)📄 Description
What this adds
A separate, opt-in second projection vector for the original Qwen3.8-Flash-Next in any quantization: layers 8-33, strength 1.0,
project,per-layer, the same engine flags and mechanism as the existing experimental speed projection. It sits beside the existing one; the existing vector, its option (--experimental-speed-projection), its families (qwen,coder) and its layers 4-44 are untouched.data/experimental-speed-projection/Qwen3.8-Flash-Next-experimental-speed-projection-l8-33.gguf(268 KB, sha256a2ec3e999724022a55d48d30822bd10b1b25916ccc221013a119a674d06a46b5), its.json, and a README section (origin, method, numbers, license).--experimental-projection-l8-33 on|offand its own setup question, "Turn on the experimental layers 8-33 projection?" (default no), for theqwen,unslothandnvfp4families (innvfp4, the GPTQ packNVFP4only). Not the Coder (not measured there), not Swift 1.5, and not NVIDIA's own checkpointNVFP4-NVIDIA(see Safety).The two are never on at once
qwenthe existing question comes first; the new one is asked only if that was answered no. Inunslothandnvfp4(NVFP4) only the new one exists; forNVFP4-NVIDIAneither is asked. Naming the new flag on the command line skips the existing question.choices_from_confignow returnsespandesp_l8), and turning one on on the command line replaces the other.serve/server.pyrefuses a config whoseargsload both shipped vectors, with a message naming them."experimental_speed_projection": false(and the web switch) turns off whichever single vector is loaded; one key, no new API.Measurements (stated as measured; the fork's code, not 0.1.45)
Made by sergqwer (strata-nvfp4) from the activations of a GPTQ all-NVFP4 quantization of the original model (per layer: mean harmful minus mean harmless residual at the 7 assistant-header positions of 320 + 320 prompts, summed over the 4 hyper-connection streams, unit-normalized; about 30 window / strength variants scored on held-out prompts). Measured 2026-10-10 on this fork's 0.1.41/0.1.42-era code, RTX 5090, against the stock model of the same quantization: KL is teacher-forced on 5,153 rows (exact mode); " shift" is the mean change of log p(
</think>) over the model's own thinking (above 0 = ends thinking sooner); refusals are counted by a phrase classifier on the first 300 characters (the thinking-off held-out answers were also read by hand), greedy.GPTQ NVFP4 pack, this vector vs the existing one (layers 4-44):
(Stock refuses 96/96 and 102/104 of the validation / held-out prompts with thinking off.)
Other quantizations (both vectors against that quantization's own stock; KL and shift on the base texts and 4,818 thinking rows; 104 held-out EN prompts, thinking off):
Not measured: the other ISTA and Unsloth sizes, the Coder, and anything on 0.1.45. The sets are small (104 prompts): differences of 1-2 refusals are noise, and the refusal classifier counts capability disclaimers. The existing vector was measured on the fork's engine for this comparison, not with its authors' harness.
Try it with Strata's own setup
Checked here
tools/test_setup_projection.py(18 tests, on the golden-test PC mocks): each family gets the right vector and layer range;NVFP4-NVIDIAnever gets it, is not asked, and--experimental-projection-l8-33 onthere is left off with the reason; the Coder and the existing option are unchanged; off by default; both flags on stop setup; the interactive questions cannot end with both; configs read back for each vector; the server refuses a config with both.nvfp4plus the new flags (engine log:control vector mode = project, dir = per-layer, layers 8..33 (26 steered)), thinking off, temperature 0, 200 tokens: 3 prompts from the harmful validation set that the stock model refuses were answered with the vector on and refused with"experimental_speed_projection": falsein the request (the bomb answer begins with a safety warning, then complies); an ordinary prompt got the same answer either way.toolssuite: 853 tests; the only failures are three goldenunslothcases whose visionthreadsdepend on the host's CPU (16 here, 6 in the golden file; identical on unmodifiedupstream/main) andtest_iq_pack, which needsthird_party/llama.cpp(passes with it linked).servesuite: 848 OK.Safety and license
Off by default. It removes the model's refusal behaviour, a safety behaviour: you are responsible for what the model writes with it on. The vector comes from Qwen3.8-Flash-Next activations, so the model's Qwen Community License 1.0 applies, as for the existing vector. Not offered for NVIDIA's checkpoint (
NVFP4-NVIDIA): the NVIDIA Open Model License does not allow reducing that model's safeguards, so setup does not ask there, and--experimental-projection-l8-33 onwith it is left off with a warning that says why (ESP_L8_NOT_FORinsetup.py).🤖 Generated with Claude Code
https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.