Inside the model · activation engineering
Steering LLMs
Give the model a story opening, then move its internal activations toward a theme. Compare the continuation with ordinary prompting, or try to discover a direction of your own.
Evaluation & examples · Food & cooking
After block 20, α = 1: 4/5 reviewed continuations passed on CPU and 4/5 in browser WASM, at T = 0.7 and seed 42. This was a small qualitative review of recognizable themes and interpretable continuations.
One of five reviewed continuations failed on each backend. Stronger settings can break coherence; the model also makes grammatical and naming mistakes.
Recorded original · browser
After the long journey, we arrived at the station. "A big thank you for the ride," the conductor said, handing us our tickets. "We have a train that's supposed to arrive at the station in about 30 minutes." I thanked the conductor and the station staff, then headed towards the platform to collect my bags. "What
Recorded steered · browser
After the long journey, we arrived at the coast. This is where the real taste of the food came alive. The aroma of the ocean, the sweetness of the herbs, and the subtle spices blended together to create a symphony of flavors that were just incomparable. The flavors were so different from the ones in the kitchen that you could taste the distance between
All held-out outputs, failures and reviews · Development search history
Where the intervention happens
SmolLM2 · 32 transformer blocks · 960-dimensional residual stream
After block 20, before block 21
h′ = h + α · v
The edited residual enters the remaining attention and MLP blocks. Only generated token activations are edited. The prompt pass stays unchanged; original and steered share their first token.
Evaluation setting: α = 1.00, after block 20, T = 0.7, seed 42, 64 tokens. Intermediate strengths are exploratory; α = 0 is the unchanged control.
One opening, three continuations
Ready · model downloads on first run
First run downloads a verified 365 MB model plus tokenizer, then caches it. Use a desktop browser with enough free memory. Inference stays in a browser worker. This compact English instruction model has limited writing ability; compare the full outputs.
Inspect the measured direction’s dataset · 8 pairs
Original model
Shared opening · no intervention
Run the experiment to generate this continuation.
Prompt instruction
Shared opening + the visible theme instruction
Run the experiment to generate this continuation.
Activation steering
Shared opening · internal activation + 1.00v
Run the experiment to generate this continuation.
Mean-difference activation addition, inspired by ActAdd and CAA. Direction selection uses held-out outputs and matched controls; the evaluation is small and model-specific. Custom pairs are unvalidated. Inspect the direction evaluation. Model: SmolLM2-360M-Instruct · pinned q8 revision.