Views
No views yet
Qwen/Qwen3-4B layer 18.1from safetensors.torch import load_file
2import json
3import torch
4from src.sae import SAEConfig, SparseAutoencoder
5
6cfg = SAEConfig(**json.load(open("config.json")))
7sae = SparseAutoencoder(cfg)
8sae.load_state_dict(load_file("model.safetensors"))
9sae.eval()