← TinyGPT · docs · devlog · roadmap · speedup
source: docs/prds/B17-saelens-interop.md · view on GitHub ↗

PRD — Export TinyGPT SAEs in SAELens / Neuronpedia format

Goal

Add tinygpt sae export --format saelens <input.sae> --out <dir> that converts our shipped .sae sidecar format to the SAELens on-disk format (Neuronpedia ingest target). One-way export only — we keep our format internally; SAELens / Neuronpedia get a consumable artifact.

This is the cheapest of the three interop options floated in PLAN B17:

(c) is what this PRD does.

Why now

Scope — in

Scope — out

Files to touch

FileChange
Sources/TinyGPT/SaeExport.swiftnew — converter
Sources/TinyGPT/TinyGPT.swiftcase "sae-export" (split from sae to keep the original tight)
Sources/TinyGPTModel/SaeReader.swiftexpose private .sae parsing fields needed for export (sparsity stats etc.)
Tests/TinyGPTTests/SaeExportRoundtripTest.swiftnew — see above
docs/interpretability.md”Publishing to SAELens / Neuronpedia” section

Acceptance criteria

Reference patterns

Open questions