All layers show excellent reconstruction quality with interpretable sparsity levels.
1from circuit_tracer import attribute
2
3# Run circuit tracing
4attribute(
5 prompt="The Eiffel Tower is located in",
6 transcoder_set="KokosDev/qwen2p5vl-7b-plt",
7 model="Qwen/Qwen2.5-7B",
8 dtype="bf16",
9 batch_size=64,
10)
1from safetensors import safe_open
2import torch
3
4# Load a specific layer
5layer_idx = 5
6with safe_open("layer_5.safetensors", framework="pt") as f:
7 enc_weight = f.get_tensor("enc.0.weight") # [8192, 3584]
8 enc_bias = f.get_tensor("enc.0.bias") # [8192]
9 dec_weight = f.get_tensor("dec.weight") # [3584, 8192]
10 dec_bias = f.get_tensor("dec.bias") # [3584]
-
10x higher sparsity coefficient (5e-2 vs 5e-3)
- Results in 4-15% L0 sparsity (vs 20-80%)
- Features are much more interpretable
-
Larger dataset (10K vs typical 1K)
- Better feature coverage
- More robust features
-
Optimized training loop
- Layer normalization for stable training
- Fixed sequence length handling
- Efficient caching and prefetching
For questions or issues, please open an issue in the model repo.