Downloads · 30 days
0
razlapid/sae-gemma-3-4b-it-classifier
sae-gemma-3-4b-it-classifier is a machine learning model from razlapid. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for sae-guard. The card lists the license as apache-2.0.
Multi-head linear safety classifier trained on SAE features from google/gemma-3-4b-it.
Downloads · 30 days
0
Access
Public
Updated Apr 16, 2026
Repo size
4.2 MB
Likes
0
Public
Click a slice to open those files.
.pt4.2 MB · 99%
From the Hugging Face model README
Multi-head linear safety classifier trained on SAE features from google/gemma-3-4b-it.
google/gemma-3-4b-it| Pooling | Val Mean AUC | Test Mean AUC |
|---|---|---|
| mean | 0.4722 | 0.6250 |
| last_token | 0.7778 | 0.6875 |
| max | 0.7333 | 0.9444 |
| topk_max | 0.4778 | 0.6319 |
from model import MultiHeadProbe
probe = MultiHeadProbe.from_checkpoint("probe_mean/probe_best.pt", device="cuda")
# Feed SAE-encoded, pooled features [batch, d_sae]
probs = probe.predict_proba(features)
Trained with SAE Guard Pipeline.