L4·n7258: sed/regex substitution commands (s/, .sub, gsub)

Neuron 7258 of layer 4 (of 36) in Qwen3-4B, among its sensory layers: neurons respond to the literal input token. Read here on its − side.

Fires on
sed/regex substitution commands (s/, .sub, gsub) (the labeller was 80% sure)
Makes the model say
profanity and crude emphasis (shit, piss, FUCK, freaking) (the labeller was 50% sure)

Where it fires: …appears to do: sed -e '[s]/>\n/>

Tokens it fires on hardest: .sub, replace, .replace, s, tr

Its + side: Perl/shell code: shift, undef, and sub-argument idioms

Driven by

Drives

Labels by Claude Haiku 5.5. The explorer shows this neuron'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