interp-gpt2-onnx
Segmented ONNX export of GPT-2 (small) for in-browser mechanistic
interpretability. The model is split into 14 graphs β embed, twelve
transformer blocks (block_00βblock_11) that also emit attention patterns, and
unembed for the logit lens β so a static web app can chain them entirely
client-side with onnxruntime-web (WebGPU/WASM). Provided in three precisions:
fp32/, fp16/, and int8/, each with a manifest.json (byte sizes +
content_hash for cache versioning).
Live demo: https://interp.zackwithers.com Β· Source: https://github.com/legendaryzoac/interp
Model tree for legendaryzoac/interp-gpt2-onnx
Base model
openai-community/gpt2