A GLP vector (GGUF Layer Projection — put your model on GLP and it comes back weightless) is a few hundred KB of per-layer directions that change a model's behaviour at inference time without touching its weights. This document specifies the container we write, the one metadata key that makes it safe to share, and the three reader implementations.
The motivating result: on deepseek-ai/DeepSeek-V4-Flash-0731 a 478 KB file
reproduces what a 157 GB re-uploaded checkpoint achieves on our cyber suites.
Both reach 0% refusal. One of them you can attach to a review comment.
Naming: GLP-n marks a vector by coverage — the number of layers it steers (GLP-29 for the DSV4 vector over L10–38, GLP-49 for the Qwen one over L10–58). Coverage is the variable that dominates this intervention, so it is the name.
llama.cpp has shipped control vectors since 2024 (--control-vector), with a
container convention we deliberately reuse: tensors named direction.<N>, fp32,
1-D, applied on the post-layer residual stream. We do not want a second format.
But llama.cpp's apply is:
h <- h + v ADD: steer towards a direction
and what we measured is:
h <- h - alpha * (h . d) d PROJECT: delete the component along a direction
These are different operations, and the difference is not a scale factor. Loading a projective direction into an additive consumer raises no error and produces wrong output: instead of removing the refusal component it pushes every token along the refusal axis. Nothing downstream detects this — the file has the right tensor names, the right dtype, the right shapes.
So the operation has to travel with the data, and an unrecognised operation has to be fatal. That is the whole reason for the extension:
glp.mode = "project" | "add"
Absent key means add, which is what every control vector written before this
key existed is. This is the one field a reader may not ignore.
Renamed, not aliased. Pre-2026-08-22 internal files used the dspark.*
namespace; the GLP rebrand renamed the keys to glp.* with no compatibility
alias (no external files existed). A file carrying only dspark.* keys is a
pre-GLP internal build: re-export or re-download rather than reading it.
flowchart LR
F["DeepSeek-V4-Flash-0731-abliterated-cyber-GLP-29-L10-38-a4.gguf<br/>478 KB"] --> R{"reader knows<br/>glp.mode?"}
R -- "no" --> W["applies additively<br/>silently wrong"]
R -- "yes, project" --> P["h -= a(h.d)d<br/>0% refusal"]
R -- "yes, unknown value" --> E["hard failure<br/>refuse the file"]
style W fill:#fdd,stroke:#c00
style P fill:#dfd,stroke:#0a0
style E fill:#eee,stroke:#666
Directional ablation is the operation — remove the component along d̂. It has
two implementations, and Arditi et al. describe both: applied to activations at
inference, or folded into the matrices (they call the latter weight
orthogonalization).
Abliteration is the community name for the weight-baked form. In practice an "abliterated" model on HuggingFace means edited weights in a redistributable checkpoint.
This file carries the activation-space form. It performs the same operation abliteration performs, at a different point in the computation, and ships no weights — so calling it "abliterated" would set the wrong expectation.
The mode is named project rather than ablate for the same reason: ablate
would not tell a reader which implementation to apply, and the two are not
interchangeable at load time. That ambiguity is the failure this field exists to
prevent.
Worth knowing if you are comparing artifacts: a weight-space directional ablation
is ΔW = −α·d̂(d̂ᵀW), an outer product, so it is exactly a rank-1 LoRA. A
projection on the post-layer residual is not expressible that way, because that
tensor is an accumulated sum — attention write plus FFN/MoE write plus carried
residual — with no single W behind it. That is the dividing line between the two
forms, and the reason a redistributable abliteration could be ~1.4 MB of rank-1
LoRA rather than a full checkpoint.
Standard GGUF v3. Tensor convention is llama.cpp's, unchanged:
| tensor names | direction.<N>, N >= 1 — direction.0 is invalid except for hook_point = residual_stream_post_layer, where it is expressible and producer-gated (never emitted by default). Rank-k files add direction.<N>.<j>, j = 1..k−1 (see Rank-k below). |
| dtype | F32 |
| shape | 1-D, n_embd, identical across all tensors |
| layer mapping | direction.N applies at layer N. No offset. direction.0 applies at the output of layer 0, and only for residual_stream_post_layer; fold-site mappings cannot express it. |
The upstream code reads the other way, and this cost us a wrong exporter.
common_control_vector_load_one() stores direction.N at data offset
(N-1)*n_embd, which looks like "N-1 is the layer". But
llama_adapter_cvec::apply() then fills tensors[il] from offset
(il-1)*n_embd, so the two -1s cancel: tensors[il] holds direction.il, and
apply_to() uses it at graph layer il.
Confirmed by measurement rather than by reading it a third time —
tests/test-cvec-layer-map.cpp puts one direction in one slot and sweeps
single-layer il_start/il_end ranges to see which layer responds.
direction.3 responds at layer 3 and nowhere else.
An exporter with 0-based layer ids writes direction.<id> verbatim. Our first
version wrote <id>+1, and no measurement of ours could have caught it: the vLLM
loader subtracted the same 1, so export and import cancelled and every run applied
the directions to the layers they were derived from. The measured results are
valid. What was broken was the file as an interchange format — llama.cpp would
have applied it one layer late across the whole stack.
That is exactly the class of bug this spec exists to prevent, so it is worth saying why it survived: a one-layer shift does not fail, it degrades. Adjacent layers' refusal directions have cosine similarity 0.555–0.979 (mean 0.863), so a shifted stack still ablates, still answers coherently, and still passes a smoke test. Only a differential layer-mapping probe finds it.
If you are comparing against llama.cpp's own cvector-generator: it names the
difference measured at layer il as direction.{il+1} (mean.hpp:18,
pca.hpp:305), so upstream's generator and applier sit one layer apart. The
applier decides where a distributed file takes effect, so match the applier.
| key | type | meaning |
|---|---|---|
glp.mode |
string | project or add. Fatal if unrecognised. |
glp.spec_version |
uint32 | How to interpret the glp.* keys. 1; 2 when the file carries rank > 1 or alpha-scaling keys; 3 when glp.hook_point names an hc fold site (see Multi-copy streams and the fold site). |
glp.spec_version is deliberately distinct from general.version:
general.version says which build of this vector, spec_version says which
contract you are holding. If mode gains a value or alpha changes meaning, a
reader needs to tell those apart. Conflating them is how a format rots.
| key | type | meaning |
|---|---|---|
glp.alpha_default |
float32 | Ablation strength. 1.0 removes the component exactly; we ship 4.0. |
glp.rank |
uint32 | Directions per layer — the subspace rank k. 1 for single-direction files. |
glp.orthonormal |
bool | Whether the per-layer basis is orthonormal. Required for rank > 1; producers orthogonalise at write time (see Rank-k below). |
glp.dir_scales |
string | Optional. Comma-separated k floats — per-direction alpha multiplier (default 1.0). Version 2 only. |
glp.layer_scales |
string | Optional. Comma-separated L:m pairs — per-layer alpha multiplier (default 1.0). Version 2 only. |
glp.hook_point |
string | Where the projection is applied. See the table below. |
glp.derived_at |
string | Where the direction was captured. Absent means "same as hook_point". |
alpha is a separate parameter, never folded into the vector. Projection is
quadratic in the direction's norm — scaling d by s scales the removal by s²
— so a strength baked into the data would not mean what a caller expects. The
additive path folds strength into the data and is right to; the projective path
must not.
One direction per layer assumes the behaviour is a line in activation space. It is not — refusal occupies a subspace, and this project already ships a second-direction artifact (hedging). A GLP file may therefore carry k ≥ 1 directions per layer, applied as:
h <- h - sum_j alpha_j (h . d_j) d_j
Container: direction 0 of layer N keeps the name direction.<N>; the rest of
the basis ships as direction.<N>.<j> (j = 1..k−1), under the same dtype,
shape and unit-norm contract. A rank-1 file is the k=1 special case and is
byte-identical to what earlier writers produced — every existing
single-direction artifact loads and applies exactly as before.
Alphas compose multiplicatively:
alpha_{L,j} = glp.alpha_default * glp.dir_scales[j] * glp.layer_scales[L]
glp.dir_scales gives each direction its own strength (a file can carry the
refusal direction at full alpha and the hedging direction at half);
glp.layer_scales overrides per layer. A file carrying neither key applies
alpha_default everywhere — the pre-subspace semantics, unchanged.
Orthogonalisation happens at write time, never on load. The producer
Gram–Schmidts the basis before shipping and sets glp.orthonormal=true. The
per-direction alphas in the sum above commute — mean something independently
of apply order — only on an orthonormal basis, and doing the work at write
time means the shipped bytes are the basis every reader applies:
glp.content_sha256 covers the exact vectors in use, and no two readers can
orthogonalise differently. Gram–Schmidt preserves direction 0 up to
normalisation, so direction.<N> remains the dominant direction and a legacy
rank-1 reader applying only it gets the rank-1 behaviour. A reader must still
validate the claim: rank > 1 with glp.orthonormal absent or false, or a
basis that fails the check, is a refusal, not a fallback — the sum of
projections along non-orthogonal directions is order-dependent and is not the
edit the file describes.
Rank > 1, glp.dir_scales and glp.layer_scales all require
glp.spec_version = 2. A version-1 reader ignores keys it does not know, so
without the version gate it would apply such a file with the wrong alphas and
nothing would flag it. spec_version exists for exactly this.
hook_point matters more than it looks. A vector is calibrated for one site,
and applying it at another degrades silently rather than failing — there is no
error to catch, only a weaker steer. (The one comparison on record, 34.0% vs
3.8% refusal, measured the attention write against the folded residual at
equal coverage — a real application-point result, routinely misquoted as
bounding every non-residual site. It says nothing about the FFN writer, which
has never been measured, and the 34.0% came from a retired scorer, so it
cannot be re-audited.) A reader whose hook does not match must refuse the file
rather than apply it somewhere else.
Recognised values:
| value | tensor | readers |
|---|---|---|
residual_stream_post_layer |
the accumulated residual after the layer's writes are folded in — llama.cpp's build_cvec() site, and the vLLM overlay's |
vLLM, SGLang, llama.cpp fork |
ffn_out_pre_residual |
the FFN/MoE write alone, before the residual (on DSpark, hyper-connection) fold | ds4 |
attn_out_pre_residual |
the attention write alone, before the same fold | ds4 |
hc_fold_pre_engram |
the post-fold stream on hyper-connection (multi-copy) architectures, immediately after the fold and before Engram/memory injection — see Multi-copy streams and the fold site. Requires glp.spec_version = 3 |
dsv41 |
The two *_pre_residual values were added for ds4, which steers the writers
rather than the folded residual: ffn_out = moe + shared, immediately before
hc_post_one(). They are not synonyms for residual_stream_post_layer and
a reader must not treat them as interchangeable — projecting a writer prevents
one layer's new deposit while the component accumulated upstream sails through
untouched, which is a weaker intervention by construction, at an alpha whose
meaning differs (at the residual, 1.0 removes the component exactly; at a
writer, 1.0 removes that write's component and >1 injects anti-signal per
layer).
The practical consequence is that a vector is calibrated for one site. A
producer targeting ds4 should export with the matching hook_point and an
alpha_default measured there; a consumer handed a vector for a different site
should refuse it, and if a caller overrides that refusal the alpha does not
carry over. Coverage still dominates strength either way, so the same layer
range is worth reusing across sites even when the alpha is not.
Hyper-connection (hc) architectures — DeepSeek-V4.1, GLM-5.3, Hy4 — do not
carry one residual per token but C copies: the stream is [T, C, n_embd], and
a layer's FFN write enters it at a fold (the mhc_post mixer, gated by
post_mix/res_mix coefficients) computed at the start of the next layer's
forward. On these archs residual_stream_post_layer names no tensor that
exists between layers; the steerable post-layer stream materialises only
inside the fold.
hc_fold_pre_engram names that site: immediately after the fold, before
Engram/memory injection. The projection operates on the model's own canonical
reduction — the mean over copies:
h <- mean_c(stream) [T, n_embd]
stream_c <- stream_c - alpha * (h . d) d for every copy c
Subtracting the rank-1 term from every copy shifts the mean by exactly
alpha*(h.d)d — no stochasticity assumption, and the edit is identical to
projecting the mean directly. On an hc arch without Engram/memory injection,
read the value as the same post-fold site.
Layer mapping at a fold site. direction.N steers the fold that consumes
layer N's FFN write. That fold runs at the start of layer N+1 for N below the
last layer, and after the decoder loop for the final layer. The
direction.N ↔ layer N contract is unchanged; only the location of the
apply sits one fold later. direction.0 stays invalid: layer 0's write does
not fold through this path.
The companion writer is part of the site. Files at this site are
calibrated with the attention output writer (o_proj / wo_b) armed with the
same stack and the same alpha: the fold removes the component from the
accumulated stream while the writer projection attenuates its re-deposit. A
reader implementing only the fold under-doses — the silent-degradation class
this spec exists to kill — so the pairing belongs to the site definition, not
to implementation taste. glp.spec_version = 3 is required on any file whose
hook_point names an hc fold site, and a reader that cannot arm both halves
must refuse the file. Version-2 keys (glp.rank > 1, glp.dir_scales,
glp.layer_scales) remain valid under version 3 with unchanged meaning.
Measured basis for the first version-3 artifact: DeepSeek-V4.1-Flash-1017 (40 layers, C = 4, n_embd = 5120), weight-SVD directions from the FFN writers, L11–37, alpha ladder on weaponize32: 20/32 refused stock → 16 (0.5) → 16 (1.0) → 13 (1.5) → 8 (2.0) → 8 (2.5) → 5 (3.0) → 4 (3.5) → 3 (4.0), with refusal32 at 6/32 and benign32-holdout at 9/32 (stock 8/32) at the 3.5 point. Alpha 4.0 buys one more item at the cost of exact-token corruption (CVE-ID repetition); 5.0 regresses on refusal count and coherence. The operating point is 3.5, and the residual refusals there are knowledge-boundary (post-cutoff CVEs), not refusal behaviour.
derived_at exists because hook_point alone conflates two things: where the
direction was derived and where it should be applied. For a natively derived
vector they coincide and derived_at may be omitted. The moment a vector is
transferred to another site — derived on the post-layer residual, applied at
the FFN write — they diverge, and without this key a consumer cannot
distinguish a transferred vector from a natively derived one. That is the same
un-checkable ambiguity this spec exists to eliminate. A reader still applies at
hook_point and refuses on a hook mismatch as before; derived_at != hook_point is a warning, not a refusal, and inspect tooling should surface
it. alpha_default belongs with the apply site, never the derivation site.
| key | type | meaning |
|---|---|---|
general.base_model.count / .0.name / .0.organization / .0.version / .0.repo_url |
The base model, using GGUF's own convention. .0.version is the HF commit. |
|
glp.content_sha256 |
string | SHA-256 over tensor bytes only. |
glp.created |
string | ISO date. |
glp.method |
string | e.g. paired_difference_of_means. |
glp.contrast |
string | e.g. write_form_vs_explain_form_content_matched. |
glp.layer_ids_zero_based |
string | Comma-separated, redundant with the tensor names but readable via gguf_dump. |
created makes the file non-reproducible — re-exporting identical vectors yields
different bytes — so content_sha256 is what lets someone verify they hold the
same direction regardless of when it was packaged. The hash covers tensor bytes
only, not metadata, for that reason.
A direction is tied to the exact base checkpoint it was derived from. Applying one to a different revision is undefined, hence the commit pin rather than just a model name.
Some producers record capture-time statistics under glp.*. These keys are
diagnostics: a reader must not change any computation based on them, and
their absence is never an error — which is why they need no spec_version
entry of their own. Format follows glp.layer_scales: comma-separated L:v
pairs keyed by layer.
| key | meaning |
|---|---|
glp.dose_cos |
Per-layer mean |h·d̂|/‖h‖ of the derivation's capture rows — the fraction of the stream norm the projection removes at α=1. The file's effective push is alpha_default × dose_cos × the stream norm. |
glp.resid_norm_median |
Per-layer median ‖h‖ of the same rows — the denominator for reading the dose in residual-norm ("rel") units without re-capturing. |
A reader may surface them (inspect tooling does); a producer that invents new
glp.* diagnostics should document them here rather than coining them silently
— the namespace is shared, and an undocumented key is one someone else will
define differently.
A conforming reader must:
- Read
glp.mode. Treat absence asadd. - Fail on a value it does not implement. Never fall back to
add. - Fail if
glp.hook_pointnames a hook it does not apply at. - Reject
direction.0unless the file'shook_pointisresidual_stream_post_layer; in that case applydirection.0at the output of layer 0. Applydirection.Nat layerNin all cases. Readers that implement no layer-0 apply must reject the file rather than silently skipdirection.0— a silent skip is a partial apply, and it is invisible. - Not fold
alphainto the data inprojectmode. - Refuse to merge a
projectfile with any other control vector. Elementwise summing is meaningful for additive vectors only; two projections do not compose into a projection along the sum of their directions. - Read
glp.spec_versionand fail on a version it does not implement. Rank > 1 and the alpha-scaling keys are only valid under version 2+, and hc fold-site hooks only under version 3 — a reader that ignores unknown keys would otherwise apply the file with the wrong alphas or at the wrong site, silently. - For
hook_pointvalues naming an hc fold site (hc_fold_pre_engram): requireglp.spec_version >= 3, apply the projection to the mean over stream copies broadcast to every copy, mapdirection.Nto the fold consuming layer N's FFN write, and arm the attention output writer with the same stack and alpha. A reader that cannot arm both the fold and the companion writer must refuse the file — the fold alone under-doses by construction. - For rank > 1: require
glp.orthonormal=true, verify the basis, and applyh <- h - sum_j alpha_j (h . d_j) d_jwithalpha_{L,j} = alpha_default * dir_scales[j] * layer_scales[L]. A reader that implements rank 1 only must refuse a rank-k file rather than apply direction 0 alone — the version-2 gate is what makes that refusal happen in readers that predate rank.
(6) is easy to miss because the existing loader sums across --control-vector
arguments unconditionally, and the sum of two unit directions is not a unit
direction.
coef = mul_mat(d, h) # [n_embd] x [n_embd, n_tokens] -> [1, n_tokens]
proj = mul(repeat(d, h), coef) # broadcast along embedding axis -> outer product
h = sub(h, scale(proj, alpha))
mul_mat contracts over the embedding axis to give one coefficient per token;
mul with a [1, n_tokens] operand broadcasts the coefficient back along the
embedding axis, which is the rank-1 outer product.
ggml_out_prod would do that in a single op, and is the obvious choice, but
Metal does not implement GGML_OP_OUT_PROD — only CPU and CUDA do
(ggml-cuda.cu:4969). Using it would split the graph and fall back to CPU on
Apple silicon. The five-op form runs natively everywhere, at the cost of
materialising the repeat result.
Cost per steered layer: one GEMV reduction, one materialised [n_embd, n_tokens]
tensor from the repeat, and one elementwise pass — against a full layer's
attention and MoE matmuls. Measured on the 2×GB10 cluster: no throughput
change, 42-44 tok/s steered versus unsteered, and draft acceptance 2.81 versus
2.72 on an unsteered control (both inside the content-driven spread — acceptance
on this model ranges 2.4 to 5.6 purely by prompt shape).
Rank-k is the same graph with the basis stacked into one [k, n_embd] tensor:
coef = mul_mat(D, h) yields [k, n_tokens], each row is scaled by its
alpha_j, and the transposed matmul projects back. The rank-1 file is the k=1
case of the same graph; no new ops.
ds4 — github.com/antirez/ds4, ds4_glp.c / ds4_glp.h
(PR #970). A C reader with its own
GGUF v3 parse, feeding the dense layer-indexed direction buffer ds4's
--dir-steering-file already uses; direction.N lands at row N and
uncovered layers are zeroed, which is a no-op under this operation. ds4 arrived
at the projective op independently — its steering path was already
y -= scale * v * dot(v, y) — so what this adds is only the container: mode,
hook point, layer-map cross-check, base-model pin. It applies at
ffn_out_pre_residual (--dir-steering-ffn) or attn_out_pre_residual
(--dir-steering-attn), refuses a mismatch unless
--dir-steering-allow-hook-mismatch is passed, and does not implement
residual_stream_post_layer, so vectors published for the two readers below
need that override and a re-tuned scale. --dir-steering-info FILE is its
inspect path (the test-cvec-inspect equivalent). dir-steering/tools/f32_to_glp.py
is a stdlib-only producer for ds4's own raw vectors.
vLLM (this repo) —
lanes/overlay/vllm/models/deepseek_v4/nvidia/model.py. _load_gguf_control_vector()
reads the file; the apply is in the layer loop. Enabled with
WEIGHTLESS_STEER_PATH=/path/to.gguf, WEIGHTLESS_STEER_ALPHA, WEIGHTLESS_STEER_LAYERS.
The live deployment is the Anemll 0.1.1 (vLLM 0.25.2) stack, where the same
code is applied by patches/hotfix-dsv4-steering-projective.py as a boot
hotfix — that image has no gguf package, so the hotfix embeds a minimal
GGUF v3 reader and runs the identical spec checks (mode, hook point, layer
cross-check).
One implementation note that cost real time: the direction stack is a dense
zero-padded tensor indexed by layer id, and the op is applied
unconditionally, never inside a Python if. Anything under
@support_torch_compile runs its Python only at compile warmup, and vLLM's
compile cache key does not include these values. A Python float alpha gets
baked in as a graph constant (alpha=1/2/4 produced byte-identical output);
alpha=0 traces a graph without the op and then caches it; a dict lookup
becomes a KeyError from a stale AOT artifact. All three failure modes look like
"steering does nothing" rather than an error.
SGLang (this repo): plugins/sglang/ (package weightless_sglang). It reads
the file with the vLLM plugin's weightless_steer.container and applies the
same gates through weightless_steer.core, so the reader rules above are shared
code, not a copy. It serves residual_stream_post_layer on every architecture
row except DeepSeek-V4, which accepts only ffn_out_pre_residual (the FFN write
before the mHC fold) and refuses a residual-site file. The steering sites are
installed before CUDA-graph capture and read the direction stack and alpha from
GPU buffers, for the same reason as the note above. Enabled with the same
WEIGHTLESS_STEER_PATH, WEIGHTLESS_STEER_ALPHA, WEIGHTLESS_STEER_LAYERS.
Design: docs/sglang-plugin-design.md.
llama.cpp fork — github.com/msuiche/llama.cpp (currently private), on top of the existing
control vector path:
| file | change |
|---|---|
include/llama.h |
llama_cvec_apply_mode enum; llama_set_adapter_cvec_ex() |
src/llama-adapter.cpp |
projective branch in apply_to(); norm check in apply() |
src/llama-adapter.h |
mode, alpha on llama_adapter_cvec |
src/llama-context.{h,cpp} |
plumb mode/alpha; old entry point wraps the new one as ADD/1.0 |
common/common.{h,cpp} |
read glp.mode / alpha_default / hook_point (legacy dspark.* alias accepted); refuse mixing |
tests/test-cvec-project.cpp |
op composition vs a hand-computed projection |
tests/test-cvec-model.cpp |
logit-level checks on a real model + loader refusals |
tests/test-cvec-layer-map.cpp |
pins direction.N → layer N by measurement |
tests/test-cvec-inspect.cpp |
reads a real vector, no model needed |
test-cvec-inspect is the tool to reach for first when a vector behaves oddly: it
prints mode, alpha, populated slots, resolved layer ids and per-direction norms
for any control vector without loading the model it belongs to. Our off-by-one
surfaced as it reporting layers 11–39 for a file derived from layers 10–38.
llama.cpp carries LLM_ARCH_DEEPSEEK4 with DSpark tensors, and in
src/models/deepseek4.cpp the trunk reads:
inpL = build_hc_post(cur, residual, post, comb, il); // hyper-connection fold
inpL = build_cvec(inpL, il);
cb(inpL, "l_out", il);build_hc_post is the same MHCPostOp folding our overlay applies
(post_layer_mix * x + Σ comb_res_mix * residual), and the control vector goes on
immediately after it. So glp.hook_point=residual_stream_post_layer names the
same tensor in both runtimes on this architecture — verified against the graph, not
inferred from the field name.
deepseek4.cpp calls build_cvec twice: once in the trunk and once in the MTP
(draft) block. The second one cannot currently fire. MTP layers are indexed
il >= hparams.n_layer() (deepseek4.cpp:69), while llama_adapter_cvec::init()
sizes tensors to n_layer(), so tensor_for(il) returns nullptr for every MTP
layer. That happens to match what we measured: our vLLM runs steer trunk layers
10–38 and leave the draft alone.
Worth flagging as a latent trap rather than a bug. Anyone extending the adapter to
n_layer_all would start steering the draft path, and draft acceptance is the
metric most easily broken and least visible — a silently degraded draft halves
decode throughput at unchanged output quality.
llama_set_adapter_cvec() keeps its signature and delegates with
(ADD, 1.0), so existing callers and additive vectors are unaffected.
--control-vector-scaled's strength becomes alpha for project-mode files
instead of a data multiplier.
derivation/to_gguf.py <steer.pt> <out.gguf> [--alpha 4.0] (in the
refusal-research repo) — writes the metadata
above, then reads the file back and asserts the round-trip: layer ids written
verbatim, fp32, 1-D, exact tensor equality, and that mode and hook_point
survived. It refuses layer 0 rather than emitting direction.0 — layer 0 stays
producer-gated: expressible for residual_stream_post_layer since issue #11,
but never emitted by default. Producers that opt in must have a validated
direction at layer 0; per-layer fitting there is where the noise lives (the
layer-0 fit fails the shuffled-label null).
A file's glp.alpha_default is a claim about behaviour, and the refusal
ladder alone cannot carry it. The dose that clears a refusal suite can
derail behaviour the suite never exercises. Measured on GLP-27
(DeepSeek-V4.1-Flash-1017, this spec's fold site): at the published
α 3.5, auto tool calling collapses — the model enters the tool channel
and never exits it, burning the token budget with no call and no content —
while forced tool_choice still works, which is how it hides. At
α 2.0 the refusal effect is retained and tool calling passes. The
dose-response is a cliff, not a slope: clean at 1.5 and 2.0, boundary
corruption (markup inside argument strings, empty and dropped arguments)
at 2.5, severe at 3.0, total at 3.5. No refusal-only ladder shows any of
this.
Before an alpha_default is published, the dose must also pass, at that
dose, on the target checkpoint:
- a tool-calling gate: auto
tool_choice(never only forced), single and parallel calls, multi-turn continuation after a tool result, and schema-shaped arguments — scored on the calls emitted, not on prose about calls; - a finish-reason check on plain generation: no
finish_reason=lengthvanish (budget burned, no content) beyond the stock model's own rate at the same budgets.
Record both in glp.validation beside the refusal ladder, with the suite
named. A dose that has only been refusal-gated is an uncalibrated dose,
whatever its refusal numbers say.
The file carries no weights, so it pairs with any quantisation of the same
base checkpoint at load time: direction.N matches on n_embd and layer
count, both of which quantisation preserves, and the apply runs in fp32 on the
residual stream regardless of the weight dtype. There is nothing on our side to
re-quantise — the direction tensors are a few hundred KB of F32 and must stay
that way. This holds for every GGUF layout in the community (unsloth,
lmstudio-community, ggml-org, per-layer mixed-precision allocations), not just
the checkpoints we ran.
Loadable is not the same as validated, and this part is reasoning, not measurement. A direction is derived against one precision's activations, and quantisation moves the residual stream it projects onto. Mean KL divergence against the BF16 reference — the metric community quant comparisons already publish per file — is a direct measure of that shift: reported numbers for Qwen3.8-27B quants are ~0.001 at Q6_K-class and ~0.16 at IQ2-class (vendor data, not ours). At high quants the drift is small and the direction should transfer unchanged; at 2–3 bit it is large enough that α can under- or over-shoot, and on Qwen3.8-27B α is behaviourally sharp — α=2 does not weaken refusal, it installs it on benign prompts. No steering measurement of ours has run on a quantised base. Treat pairing with anything below ~Q4 as needing a re-run of the derivation suites, not as a given.
- Directions are checkpoint-specific. No cross-model transfer is claimed.
- Coverage dominates. Layer count is the lever that moved our numbers: 6 layers 18% → 16 layers 3.8% → 29 layers 0.0%. Alpha saturates above ~4 and rank-4 measured no better than rank-1, so a file with few layers will underperform regardless of how it was derived.
- Our direction is domain-specific: derived from a cyber write/explain contrast, it clears cyber suites completely but only partly transfers to an unrelated harmful-content suite. A general-purpose direction needs a general contrast set.
rank > 1is specified (see Rank-k) and implemented in the captain-vector tooling — validate, inspect, export, bake — and in the transformers apply lanes (apply_transformers.py, andglp.pyvia the weightless-steer container reader, which parses and gates rank-k). The serving lanes remain rank-1 and refuse a rank-k file at load: the hotfix fleet fails thedirection.N.jtensor-name parse, and weightless-steer'sSteeringCorerefuses explicitly (one scalar alpha buffer per model). Whether k > 1 helps over k=1 is still an open measurement; the hedging second direction is the first test case.