TheodoreEhrenborg commited on
Commit
d65707a
·
verified ·
1 Parent(s): dcb18d8

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +57 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sae
4
+ - interpretability
5
+ - psae
6
+ - bias-term
7
+ ---
8
+
9
+ # Trained Bias Term for PSAE
10
+
11
+ This repository contains a trained bias vector (b) for a PSAE's logistic model.
12
+
13
+ The Lambda matrix from the original PSAE was frozen, and only the bias term was optimized
14
+ to maximize log-likelihood of discrete activations.
15
+
16
+ ## Model Info
17
+
18
+ - **PSAE Release**: aemack-org/bsr-sae-16k-sweep
19
+ - **SAE ID**: d16384_C0_005
20
+ - **d_sae**: 16384
21
+ - **Layer**: 12
22
+ - **Tokens Used**: 10,000,000
23
+ - **Effective L0**: 319
24
+ - **Actual L0**: 664.6
25
+ - **Compression Ratio**: 2.08x
26
+
27
+ ## Files
28
+
29
+ - `trained_b.safetensors`: Trained bias vector (b) and feature_order
30
+ - `results.json`: Training metadata and metrics
31
+ - `training_curves.png`: Loss curves and training progress visualization
32
+
33
+ ## Usage
34
+
35
+ Load the trained bias vector:
36
+
37
+ ```python
38
+ from safetensors.torch import load_file
39
+
40
+ state_dict = load_file("trained_b.safetensors")
41
+ b = state_dict["b"] # Shape: (d_sae,)
42
+ feature_order = state_dict["feature_order"] # Shape: (d_sae,)
43
+ ```
44
+
45
+ Use with the original PSAE's lambda_matrix for inference.
46
+
47
+ ## Training Details
48
+
49
+ Trained using `train_psae_bias.py` with:
50
+ - Epochs trained: 28 (max: 50)
51
+ - Early stopping: plateau_epochs=10
52
+ - Learning rate: 0.0005
53
+ - Batch size: 12800
54
+ - Lambda matrix: FIXED (from PSAE)
55
+ - Trainable parameters: b only
56
+
57
+ For more details, see `results.json`.