L5·h6: Code and bracket structure, e.g. closing brackets and assignments in Python

Attention head 6 of layer 5 (of 48) in Gemma 4 12B, among its association layers.

Fires on
Code and bracket structure, e.g. closing brackets and assignments in Python (the labeller was 30% sure)
Attends to
Sink-heavy; some lookback to brackets and determiners (the labeller was 25% sure)
Writes
Copies closing quote-and-bracket sequences such as "));" and "};" (the labeller was 30% sure)

Where it fires: …6128 and the numerical IP for [is] 11

Labels by Claude Haiku 5.5. The explorer shows this head's weight reads, firings and connections beside the labels.

Every unit's data is in the neuron-lens catalog on Hugging Face (CC BY 4.0). Guide: using Neuron Lens in research, from an AI assistant (MCP) or from code · How to read a unit · the method and findings