Glimmer Scope: sparse autoencoders on nine layers of Muse Glimmer 30B. Mirror of github.com/kroonen-ai/glimmer-scope.
  • Python 62.4%
  • HTML 33.5%
  • JavaScript 2%
  • CSS 1.3%
  • Shell 0.8%
Find a file
2026-11-04 10:14:00 -05:00
.github/workflows Public repository: README with a quickstart, Apache 2.0 license, .env.example, a test workflow; the safety patterns kept private 2026-11-04 04:07:11 -05:00
atlas-public Link the video 2026-11-04 10:14:00 -05:00
aws Back to the agreed plan: judging and labels on the box again; cross-layer runs one neighboring pair at a time so it fits beside the model 2026-11-01 12:41:19 -05:00
llama.cpp Glimmer Studio: per-request steering patch for llama-server and a slider UI 2026-10-28 09:51:11 -04:00
paper Report DOI: badge, citation and CITATION.cff 2026-11-04 09:17:09 -05:00
scope Keep Spark judging through filter rejections; judge_kept.py grades the kept unjudged replies with Spark 2026-11-01 20:21:01 -05:00
scripts Site pages don't say which model graded what 2026-11-03 03:16:16 -05:00
site Site says 'a local model' for grades not from Spark, without naming it 2026-11-03 02:47:43 -05:00
studio Studio: map links and dials for all nine layers 2026-11-03 11:23:14 -05:00
tests llm: ask again when Muse Spark answers empty, and say why if it never answers 2026-10-30 12:50:09 -04:00
.env.example Public repository: README with a quickstart, Apache 2.0 license, .env.example, a test workflow; the safety patterns kept private 2026-11-04 04:07:11 -05:00
.gitignore Public repository: README with a quickstart, Apache 2.0 license, .env.example, a test workflow; the safety patterns kept private 2026-11-04 04:07:11 -05:00
CITATION.cff Report DOI: badge, citation and CITATION.cff 2026-11-04 09:17:09 -05:00
LICENSE Public repository: README with a quickstart, Apache 2.0 license, .env.example, a test workflow; the safety patterns kept private 2026-11-04 04:07:11 -05:00
modal_app.py Keep Spark judging through filter rejections; judge_kept.py grades the kept unjudged replies with Spark 2026-11-01 20:21:01 -05:00
NOTICE Public repository: README with a quickstart, Apache 2.0 license, .env.example, a test workflow; the safety patterns kept private 2026-11-04 04:07:11 -05:00
README.md Link the video 2026-11-04 10:14:00 -05:00
requirements.txt Public repository: README with a quickstart, Apache 2.0 license, .env.example, a test workflow; the safety patterns kept private 2026-11-04 04:07:11 -05:00

Glimmer Scope

Looking inside Muse Glimmer 30B: sparse autoencoders on nine of its layers, every feature that fires labeled, tested for steering, and followed from layer to layer.

Try it live on Hugging Face · Watch the video · Explore the atlas · Read the report (PDF) · the 9 SAEs · the Hugging Face collection · Muse Glimmer 30B

DOI

Nine maps of Glimmer's features stacked in perspective, one per layer from 12 to 36, with one feature's thread running through all of them

A sparse autoencoder (SAE) splits what a layer of the model computes into tens of thousands of features, most of which stand for one recognizable thing: a subject, a style, a piece of syntax. I trained one on every third layer of Glimmer's residual stream, from 12 to 36 of its 52 layers, and built everything around them that I needed to understand and use those features:

  • a catalog of where each feature fires, from 5M tokens of web and chat text
  • a label for every feature that fired, written by Muse Spark 1.3 from those examples
  • a steering test: the feature is turned up while Glimmer answers neutral questions, and Spark judges whether the answers move toward that subject and still read well
  • cross-layer links that match each feature to the ones it fires with on the next layer, so a concept can be followed from layer 12 to 36: where it starts, splits, merges and ends
  • 28 character archetypes found as steering directions on every layer
  • maps, a nine-layer atlas and Glimmer Studio, a chat where any steerable feature becomes a dial on a quantized Glimmer running locally

What it found

Layers 9, every third from 12 to 36
Features that fired 519,383, every one labeled
Steering tests more than 170,000
Threads through all nine layers 43% of features

Steering peaks in the middle of the network. About 10 to 11% of tested features steer cleanly at layers 21, 24 and 27, against 1 to 4% near the start and the end (Muse Spark's grades).

There is a stable backbone. 43% of features belong to a thread that runs through all nine layers, and 31% live on one layer only. Shallow layers keep their concepts (62% of layer 12 runs all the way), deep ones add their own (49% of layer 36 exists there only).

Characters live at every depth. Archetypes from pirate captain to gaslighter show up as steering directions on every layer, and the most play cleanly at layer 24 (19 of 28).

Built during the hackathon

Everything in this repository was built during the Meta Global AI Developer Hackathon, between October 28 and November 4, 2026. The first commit is the SAE pipeline on October 28, and the history shows every step after it.

Days What was built
Oct 28 the SAE pipeline, the first SAE (layer 24), labels and steering tests with Muse Spark, character archetypes, Glimmer Studio
Oct 29 to 30 feature maps, cross-layer matching, the SAEs for layers 12 and 36, a label for every feature that fires
Oct 31 to Nov 1 the site, the SAEs for layers 15 to 33 on AWS, a steering test for every feature, screening for Meta's content filter, safe browsing
Nov 2 to 3 the nine-layer atlas, threads through the layers, the findings, the SAE release and the Hugging Face Space
Nov 4 the public atlas on Cloudflare

Quickstart

pip install -r requirements.txt
cp .env.example .env      # then fill in META_API_KEY
python -m pytest          # 27 tests, on CPU

Load one of the trained SAEs and read a layer of Glimmer with it:

from pathlib import Path
from huggingface_hub import hf_hub_download
from scope.sae import TopKSAE

repo = "kroonen-ai/glimmer-scope-saes"
hf_hub_download(repo, "layer-24/cfg.json")
sae = TopKSAE.load(Path(hf_hub_download(repo, "layer-24/sae.safetensors")).parent)

# resid: Glimmer's residual stream after layer 24, [tokens, 6656] (scope.model.residual reads it)
values, features = sae.encode(resid * sae.cfg.input_scale)

To steer instead, add sae.steering_vector(feature, strength) to the residual stream after the layer; scope.model.steering does that as a context manager around model.generate.

How it works

Step What it does Code
train streams web text (FineWeb-Edu) and chat (UltraChat, in Glimmer's own template) through the model up to one layer and trains a TopK SAE on the activations: 65,536 features, k = 64, 100M tokens scope/train.py, scope/sae.py
catalog for every feature: firing rate, mean and peak activation, and the contexts where it fires hardest scope/interpret.py
label Muse Spark names each feature from its top contexts, with a kind (concept, syntax, token, format) and a guess at how steerable it is scope/label.py
sweep adds a feature's direction at several strengths to neutral prompts; Spark rates concept and fluency per strength and says what the steering did scope/steerability.py
persona_scan, archetype, retarget finds features and blends that make Glimmer play a character, then judges them for that character scope/archetype.py, scope/personas.py
crosslayer runs text through the model once with two neighboring SAEs and matches features by how they fire together scope/crosslayer.py
maps and atlas lays each layer's features out by their decoder directions, lines the nine layers up on their cross-layer anchors, and builds the site scripts/feature_map.py, scripts/atlas_nine.py, scripts/public_site.py
public atlas the nine maps with their labels and cross-layer links at scope.kroonen.ai: the maps in R2, search in D1, one Cloudflare Worker atlas-public/

Every step is a function in modal_app.py. They run on Modal, or on any box with one 96 GB GPU through scripts/run_here.py:

modal run modal_app.py::train --layer 24
python scripts/run_here.py catalog --run layer24-64k-k64
python scripts/run_here.py label --run layer24-64k-k64 --everything
python scripts/run_here.py sweep --run layer24-64k-k64 --n-features 30000
python scripts/run_here.py crosslayer --runs layer21-64k-k64,layer24-64k-k64

aws/ has the setup and idle guard I used on a single g7e instance, and llama.cpp/ a small server patch for steering per request, which Studio uses to apply dials on a quantized Glimmer.

Settings

Variable Used for
META_API_KEY Muse Spark, for labels and judging
GLIMMER_RUNS where the runs live on a workstation (default runs/)
GLIMMER_SAFETY_PATTERNS the private safety patterns, see below
GLIMMER_ATLAS_EXTRA more private terms for the public atlas, see below
LOCAL_LLM_URL, LOCAL_LLM_MODEL a local model behind an OpenAI-compatible endpoint, for what Spark should not see
GLIMMER_BUCKET the S3 bucket the GPU box syncs to

Safety

Some findings could be upsetting, so we filter them with safe browsing. This repository leaves out:

  • the keyword patterns used to screen requests to Spark and to flag safety-relevant features. scope/safety.py loads them from a private file (GLIMMER_SAFETY_PATTERNS). Without it nothing is screened or flagged, and the rest of the pipeline works the same.
  • the activation data and the steering results, including any strength at which a feature takes effect.
  • features on upsetting topics, in the public atlas. They are left out entirely, with their place on the map and their links to other layers, and the terms that pick them (GLIMMER_ATLAS_EXTRA) stay private. The atlas carries no vectors and no steering results.

The trained SAEs themselves are on Hugging Face, at kroonen-ai/glimmer-scope-saes.

Judge requests that would trip Meta's content filter are never sent to Spark; those replies are kept and graded separately.

Built with

Muse Glimmer 30B (open weights) and Muse Spark 1.3 through the Meta Model API, for the Meta AI hackathon. Compute from Modal and AWS.

Citation

The technical report is archived on Zenodo: doi:10.5281/zenodo.23952447.

@misc{kroonen2026glimmerscope,
  author    = {Kroonen, Robin},
  title     = {Glimmer Scope: sparse autoencoders on nine layers of Muse Glimmer 30B},
  year      = {2026},
  month     = nov,
  publisher = {Zenodo},
  note      = {Preprint},
  doi       = {10.5281/zenodo.23952447},
  url       = {https://doi.org/10.5281/zenodo.23952447}
}

License

Apache 2.0, see LICENSE. Copyright 2026 Robin Kroonen.

Kroonen AI