Generate: logit lens, attention heatmaps and logit attribution for every completion
Generate in Ozera streams a completion from a language model and opens up how it was produced: the top predictions at every position, attention heatmaps for each head, a logit lens over every layer, and logit attribution by layer and head.
You type a prompt, pick a model and read its internals in the browser, without writing hooks or plotting code.
How it works
Choose a model, write a prompt, and set the number of tokens (1 to 300, or until the model ends the text, up to 1,000), the temperature (0 to 2) and top-k (1 to 100). The completion streams as it is generated and can be stopped. In Visualize mode the run also captures the model’s activations and opens them in four views; in Tokens mode it generates text only.
A captured generation is kept under an ID for a while and can be reopened from it without running the model again.
Views
Generation flow
Each position of the text with the tokens the model ranked highest as the next token and their probabilities, so you can see which alternatives the model weighed at every step.
Attention heatmaps
An attention pattern shows how much each token attends to every earlier token in one attention head: where that head reads information from. Ozera shows one layer and one head at a time, for every head of the model.
Logit lens
The logit lens decodes the residual stream after each layer with the model’s own final normalization and unembedding, as if the model stopped at that layer, to show what each layer would predict next. Ozera draws it as a grid with a row per layer (the embeddings first; the last row is the model’s actual output) and a column per position. Each cell shows that layer’s top prediction, coloured by the probability it gives the token that actually came next.
A token that stays the top prediction from some layer on becomes readable from the residual stream there; that shows when the answer appears, not which layer computed it.
Logit attribution
Logit attribution (direct logit attribution) splits the logit of a position’s next token into what the embeddings, each layer’s attention, each layer’s MLP and each attention head wrote towards it, with the final normalization’s scale frozen so that the parts add up to the logit. It measures direct effects only: a component that matters by feeding later layers can show little here, which is what patching in Attribution measures.
Probe scores while generating
A linear probe saved in the Probe Lab can score every token as it is generated, showing where along the text the probe’s concept reads high or low.
Models
Generate works with every model in Ozera: Ozera-Nano and Ozera-Mini; SmolLM2 135M and 360M, SmolLM3 3B, Gemma 3 270M and 1B, and Qwen3 0.6B, 1.7B and 4B, each as a base and an instruct model (an instruct model’s prompts go through its chat template); and your own custom model.
Cost
A generation is priced per token from prepaid credits, with a per-request minimum that covers a GPU cold start ($0.12 on the L4 GPU tier and $0.10 on the A10G tier, as of November 2026). It is charged for its maximum number of tokens when it starts and settled to the tokens actually generated. The logit lens and logit attribution are computed in the same pass at no extra charge, and reopening a stored generation is free.
Figures for papers
The attention view (one head, or all of a layer’s heads as a grid), the logit lens and logit attribution export as figures in PNG, PDF, SVG or TIFF at a venue’s column or text width, with 25 presets including NeurIPS, ICML, ICLR and ACL. Exporting is free.
Frequently asked questions
What is the logit lens?
The logit lens reads a language model’s residual stream after each layer through the model’s final normalization and unembedding, turning each layer’s intermediate state into a next-token prediction. In Ozera it appears as a grid of layers by positions for every captured generation, with no code.
How can I see attention patterns without writing code?
Generate a completion in Visualize mode, open the attention view and pick a layer and a head: the heatmap shows how much each token attends to every earlier token. Any head of any supported model can be shown, and the view exports as a figure.
What is the difference between the logit lens and logit attribution?
The logit lens shows what each layer would predict if the model stopped there. Logit attribution shows how much each component (the embeddings, each layer’s attention and MLP, each head) wrote directly towards one next token. Both come with every captured generation.
Does the logit lens cost extra?
No. A generation is charged for its tokens, with a per-request minimum; the logit lens and logit attribution are computed in the same pass, and reopening a stored generation is free.
Which models can I generate with?
Ozera-Nano, Ozera-Mini, SmolLM2 135M and 360M, SmolLM3 3B, Gemma 3 270M and 1B, and Qwen3 0.6B, 1.7B and 4B, each base and instruct, plus your own custom model.