---
type: "post"
id: "goodfire-has-published-mit-licensed-code-for-identifying-194241"
slug: "goodfire-has-published-mit-licensed-code-for-identifying-194241"
title: "Goodfire has published MIT-licensed code for identifying small groups of Llama-3.1-8B MLP neurons that"
description: "Goodfire has published MIT-licensed code for identifying small groups of Llama-3.1-8B MLP neurons that contribute to model computations."
retrieval_nugget: "Goodfire has published MIT-licensed code for identifying small groups of Llama-3.1-8B MLP neurons that contribute to model computations. Its pipeline uses activation-gradient attribution, clustering and held-out interventions to test those groups. The repository makes a research method reproducible, though reproducing the full run requires substantial data and GPU resources."
published_at: "2026-11-27"
updated_at: "2026-11-27"
record_date: "2026-11-27"
date_kind: "published_at"
topics: ["models","open-source"]
entities: ["Goodfire","Llama-3.1-8B","Neuron Communities"]
related_patterns: []
novelty_label: "new_fact"
what_changed: "Goodfire has now published code and an explorer for its Llama-3.1-8B neuron communities method."
prior_refs: []
source_url: "https://github.com/goodfire-ai/neuron-communities"
source_urls: ["https://github.com/goodfire-ai/neuron-communities"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-11-27T19:21:52.129Z","independent_sources":1,"notes_synthesized":null,"writer_model":null,"critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":{"label":"new_fact","confidence":"high"},"editorial_value":"medium","human_review":"selective"}
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:goodfire-has-published-mit-licensed-code-for-identifying-194241"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/goodfire-has-published-mit-licensed-code-for-identifying-194241/","markdown":"https://newruntime.com/posts/goodfire-has-published-mit-licensed-code-for-identifying-194241.md","json":"https://newruntime.com/posts/goodfire-has-published-mit-licensed-code-for-identifying-194241.json"}
markdown_url: "https://newruntime.com/posts/goodfire-has-published-mit-licensed-code-for-identifying-194241.md"
---

# Goodfire has published MIT-licensed code for identifying small groups of Llama-3.1-8B MLP neurons that

## Retrieval answer

Goodfire has published MIT-licensed code for identifying small groups of Llama-3.1-8B MLP neurons that contribute to model computations. Its pipeline uses activation-gradient attribution, clustering and held-out interventions to test those groups. The repository makes a research method reproducible, though reproducing the full run requires substantial data and GPU resources.

## Summary
Goodfire has published MIT-licensed code for identifying small groups of Llama-3.1-8B MLP neurons that contribute to model computations. Its pipeline uses activation-gradient attribution, clustering and held-out interventions to test those groups. The repository makes a research method reproducible, though reproducing the full run requires substantial data and GPU resources.

## What happened
Goodfire’s `neuron-communities` repository describes code for finding small groups of MLP neurons in Llama-3.1-8B that work together on computations. The README frames the target as neuron-sparse behavior: groups that are causally necessary and sufficient for many computations. It also provides an explorer for 1,941 labelled communities, with prompts, interventions and statistics. The public repository is MIT-licensed and includes Python package files, scripts, tests and configuration.

The method begins by sampling prompts from FineWeb-Edu, Wikipedia and FineMath. It removes duplicates and holds out a separate set for evaluation. For each prompt, the pipeline selects the top five neurons per layer using activation multiplied by gradient attribution. It connects neurons that co-occur more often than chance and groups those connections with Leiden clustering. Groups larger than 128 neurons are dropped, as are 17 neurons described as always-on hubs.

The pipeline then evaluates each community using held-out prompts. It tests whether removing the community changes the next-token distribution. It also tests whether retaining only the community, alongside the hubs and within a span of layers, preserves the prediction. The README adds two checks: the hubs alone must not preserve the prediction, and removing the community within the same layer span must change it. Coverage is measured as the share of held-out prompts for which at least one community passes these tests.

The repository says its default configuration matches the settings used for Llama-3.1-8B in the paper. Installation requires Python 3.11 or later; model stages require a GPU. The paper’s runs used 80 GB GPUs with the model in bfloat16. The supplied pipeline script samples 10 million training prompts and another 10 million held-out prompts before deduplication. It skips outputs that already exist, allowing a run to resume after interruption. Model, output-directory, prompt-count and shard-count settings are environment variables in the script. A Slurm job-array template is included for cluster runs.

The tests exercise the stages with a tiny, randomly initialized Llama and synthetic data. The README says they take about two minutes on eight CPU cores and need neither network access nor a GPU. They check that the stages work together; they do not test the paper’s results. The repository reports 10 stars and two forks on GitHub.

## What the archive adds
New Runtime’s earlier coverage described Lyra C’s [neuron-explorer](https://newruntime.com/posts/lyra-c-released-neuron-explorer-a-steering-first-3f6fc9/), an open-source, steering-first explorer for Qwen3.5-4B, dated 2026-10-26. Goodfire’s release is a new event in the same broad interpretability space, but it focuses on a reproducible pipeline for identifying and testing neuron communities in Llama-3.1-8B rather than the earlier tool’s steering-first framing.

## Trend signal
This supports the broader direction of making interpretability artifacts inspectable and testable, but it does not yet fit a pattern New Runtime tracks. The repository documents a procedure and exposes labelled examples; it does not establish that these communities generalize beyond the tested model and prompts, or that they provide a production control surface for agents.

## Why it matters
For teams working on model interpretability, the important contribution is not simply a visualization of internal units. The repository describes tests that distinguish a group’s association with a prediction from a stronger claim: that the group is needed for a prediction, and that a restricted set of neurons can preserve it under a defined layer span. Held-out prompts and explicit removal/retention interventions make those claims more inspectable than a list of neuron labels alone.

The artifact also makes the cost of this kind of investigation visible. Its full pipeline samples tens of millions of prompts before deduplication, and the model stages were run on 80 GB GPUs. That is a meaningful barrier for an individual developer or a small team. The modular stages, environment-variable settings and Slurm template may help research groups adapt the work to cluster workflows, but the repository does not claim that a smaller run will reproduce the paper’s results.

For engineering teams, this is best treated as a research method to evaluate, not as a ready-made safety mechanism. Neuron-level explanations could inform future analysis of model behavior, but the repository’s tests do not show that communities can reliably detect harmful behavior, constrain a deployed model or transfer across model versions. A team considering the approach should first reproduce a narrow slice and inspect whether the findings persist on its own held-out examples.

## Limits and uncertainty
The repository describes the method and links the code, but the README alone does not independently validate the paper’s results. Its tests use synthetic data and a tiny randomly initialized model, and explicitly check pipeline integration rather than research findings. The full run’s resource needs are substantial; the README does not establish how results change with smaller prompt sets or different hardware. It also does not demonstrate that the identified communities transfer to other models, prompt distributions or downstream tasks, or that they support reliable interventions in deployed systems.

## Reader takeaway
Goodfire has published a reproducible pipeline for finding and intervening on neuron groups in one model, with held-out tests that probe necessity and sufficiency under specified conditions. The code is useful to interpretability researchers willing to meet its compute demands. Treat the labelled communities as findings to validate, not as general-purpose explanations or controls for production AI systems.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Models](https://newruntime.com/topics/models.md): Explore the models topic hub.
- topic hub: [Open Source](https://newruntime.com/topics/open-source.md): Explore the open-source topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
