What a steering vector is

A steering vector is one direction per layer, added to the model’s hidden states while it generates. The weights never change.

Residual stream, Qwen2.5-3B, 36 layers110192836+ strength × direction, layers 10 to 28tokens innext token out

The idea

Inside a transformer, every token carries a vector through the layers, the residual stream. Behaviours such as brevity, a language or a register show up as consistent directions in that space. If you run the same questions through the model twice, once with an instruction to be brief and once with an instruction to be long, and subtract the hidden states, the average difference points from long to brief.

That average difference, one vector per layer, is a steering vector. Add it while the model runs and every answer moves in that direction; multiply it by a larger factor and the answers move further. Leave it out and you get the original model back, bit for bit.

How it is applied

Steer Labs serves models with llama.cpp. Before each request, the server sums the requested vectors, each multiplied by its strength, and applies the result as a control vector on layers 10 to 28 of the model. When a request names no vector, the control vector is cleared. Each request sets its own vectors, so two calls in a row can carry two different behaviours on the same loaded model.

PartWhat it is
DirectionA unit vector per layer, 2,048 numbers each for Qwen2.5-3B
StrengthA number from 0 to 8 chosen per request. Each vector maps it to a scale calibrated on its own outputs
Layers10 to 28 of 36. Earlier layers carry syntax, later ones the next token; the middle carries style and intent
FileA GGUF control vector, about 290 KB, plus a JSON card with its eval results

Why not a prompt or a fine-tune

A system prompt costs context on every call and fades as a conversation grows. A fine-tune costs hours of training, a new checkpoint to host, and one copy of the weights per behaviour. A vector costs nothing at inference beyond one addition per layer, stacks with other vectors, and switches off per request. It does not teach the model facts it does not know: it moves how the model answers, not what it knows.