Views
No views yet
mistralai/Ministral-3-3B-Instruct-2512.| Property | Value | Description |
|---|---|---|
| Target Model | mistralai/Ministral-3-3B-Instruct-2512 | Base LLM |
| Target Layers | [19, 21] | Residual stream layers |
| Expansion Factor | 16x | Ratio of SAE features to model dimensions |
| Dictionary Size ($d_{sae}$) | 49,152 | Total number of features |
| Input Dimension ($d_{model}$) | 3,072 | Residual stream width |
bfloat16 on an NVIDIA RTX A6000.sae-lenssae-lens. Since there are multiple layers, simply specify the layer string via the sae_id argument:1from sae_lens import SAE
2
3# Load the SAE for layer 19
4sae, cfg_dict, sparsity = SAE.from_pretrained(
5 release="analist/ministral-3b-sae",
6 sae_id="layer_19",
7 device="cuda"
8)
9
10# sae.encode(activations)sae-lens, you can load the safetensors weights directly:1import torch
2from safetensors.torch import load_file
3from huggingface_hub import hf_hub_download
4
5layer = 19
6model_path = hf_hub_download(repo_id="analist/ministral-3b-sae", filename=f"layer_{layer}/sae_weights.safetensors")
7
8# Initialize your custom SAE class
9# sae = SparseAutoencoder(d_model=3072, d_sae=49152, dtype=torch.bfloat16, layer_idx=layer)
10# sae.load_state_dict(load_file(model_path), strict=False)
11# sae.eval()