Skip to main content

Neuronpedia Is Open Source

All of Neuronpedia's code is open source, under the Apache 2.0 license.

GitHub: github.com/hijohnnylin/neuronpedia

You can run your own copy of Neuronpedia, for example to use your own private models and SAEs, or to make changes to it. Read why we made Neuronpedia open source.

What Is in the Repo​

Neuronpedia is a group of apps. Each app runs by itself.

AppWhat it does
webappThe website and the public API. Next.js and Postgres.
inferenceRuns the models for activations, steering, search, and the Jacobian Lens.
autointerpMakes and scores explanations.
graphMakes attribution graphs.
nlaRuns Natural Language Autoencoders.
sparsityRuns weight-sparse transformers.

The inference, graph, and nla apps use interp-engine to run models.

Run It Yourself​

The README has the full steps. In short:

  1. Set up a database. Install Postgres 16+ with the pgvector extension, then run make db-init.
  2. Start the webapp. Run make webapp-install, then make webapp-dev. Go to localhost:3000.
  3. Import data. Your database is empty at the start. Use the admin panel to import sources from the exports.
  4. Start other apps that you need. For example, run make inference-dev for steering and test activations. This needs a GPU for most models.

Run make help to see all the commands.

Use Your Own Data​

To make dashboards for your own SAEs, see the README section "I Want to Generate My Own Dashboards/Data and Add It to Neuronpedia". You can also upload your SAEs to neuronpedia.org.

Contribute​

We accept pull requests. Read the contributing section of the README first. You can also help with: