L31·h7: Python code tokens in assignments and indexing, e.g. '=', '[]', 'typ'

Attention head 7 of layer 31 (of 48) in Gemma 4 12B, among its workspace layers.

Fires on
Python code tokens in assignments and indexing, e.g. '=', '[]', 'typ' (the labeller was 30% sure)
Attends to
Earlier code identifiers and brackets in the same snippet (the labeller was 25% sure)
Writes
Promotes female-gender nouns (female, women, daughters, actress); suppresses surnames (the labeller was 50% sure)

Where it fires: …line) if [m]: last [=] m.group

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