data: ship the published qwen4exp vector in the plugin home

Discovery's third path, <home>/vectors/<arch>-control-vector.gguf, was the one an operator could
never rely on: it existed, but nothing filled it, so a deployment had to fetch Cudecnik's package
and rename two files before the switch was worth anything. The published file is small (483 KB),
specific to this architecture and width rather than to any one quant, and unchanged from upstream,
so it belongs with the other things the home ships next to architectures/ and kernels/.

CMake copies the GGUF and its JSON into the built home (and installs them under the data dir), which
means a missing file is a configure error rather than a silently missing feature. Discovery order is
unchanged, so the per-container and per-directory sidecar paths still win when an operator places one.

The directions are a derivative of Qwen3.8-Flash-Next and are not ours to relicense: they stay under
the Qwen Community License 1.0, whose text now sits beside them (data/vectors/LICENSE.qwen-community-1.0.txt),
is recorded in NOTICE, and is installed to share/doc/radiance/third_party/qwen-community.LICENSE. The
Apache-2.0 grant covers the loader and the kernels, not the directions.

The feature is still opt-in -- without --control-vector the file is never read -- and the request
default is still off, because what this particular vector removes is a safety behaviour.
This commit is contained in:
C_Tamas authored and StillDeadcode committed 2026-10-21 09:26:17 +02:00
1 parent f5cb4b8ff3
commit 4141988217
6 files changed
+91 -10

No files matched your search

+16 -10
View File
@@ -1443,8 +1443,9 @@ runs, it moves every token's residual stream off that direction. radiance implem
package for Qwen3.8-Flash-Next was tuned for:
**One flag loads it: `--control-vector off` or `--control-vector on`** (explicit
`--control-vector disabled` is the same as no flag). Without it nothing is loaded: the graph declares no projection op (so an off request costs the stock model's launches), a
request that asks for the vector is refused by name, and `/admin/control-vector` answers 404. The
`--control-vector disabled` is the same as no flag). Without it nothing is loaded: the graph declares
no projection op (so an off request costs the stock model's launches), a request that asks for the
vector is refused by name, and `/admin/control-vector` answers 404. The
flag's value is the startup switch — `off` leaves requests off until one asks or the dashboard flips
the default, `on` starts them on. With the flag the engine looks, in order, at:
@@ -1452,15 +1453,20 @@ the default, `on` starts them on. With the flag the engine looks, in order, at:
2. `control-vector.gguf` in the container's directory (one file serves a directory of quants of
the family), then
3. `<home>/vectors/<architecture>-control-vector.gguf` for each `--radiance-home`, i.e.
`…/vectors/qwen4exp-control-vector.gguf`.
`…/vectors/qwen4exp-control-vector.gguf` — **and that one ships with radiance**
(`data/vectors/`, installed into every plugin home), so there is normally nothing to place.
So a deployment that starts with `--control-vector off` (or `on`) and drops the file beside its
Flash-Next container offers the Model-view switch and the `control_vector` request field; every
quantisation of the family shares it, because the file names the architecture and the width, not the
quant. The operation's parameters come from the package's own JSON (`layer_range`, `scale`, `mode`),
so there is no flag for them: a file that does not fit this container is reported and skipped, never
served. Only the startup switch is a flag, because it is the one decision that changes the declared
graph.
So a Flash-Next deployment does one thing: start with `--control-vector off` (or `on`). The
Model-view switch and the `control_vector` request field are then there, because the vector came with
the plugin home; the first two paths exist so an operator can override it per model or per directory,
which is also how every quantisation of the family shares one file — the file names the architecture
and the width, not the quant. The shipped copy is Cudecnik's published file unchanged and stays under
the **Qwen Community License 1.0** (`data/vectors/LICENSE.qwen-community-1.0.txt`, `NOTICE`): the
directions are Qwen's, derived from Flash-Next's own residual stream, and radiance's Apache-2.0 grant
covers the code that applies them, not the file. The operation's parameters come from the package's
own JSON (`layer_range`, `scale`, `mode`), so there is no flag for them either: a file that does not
fit this container is reported and skipped, never served. Only the startup switch is a flag, because
it is the one decision that changes the declared graph.
- **Only a compatible container accepts it.** The file must be a GGUF `controlvector` whose
`controlvector.model_hint` (when present) is this model's architecture (`qwen4exp`), whose