Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- README.md +53 -0
- gemma-4-e2b-sae.sqlite3 +3 -0
- manifest.json +11 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
gemma-4-e2b-sae.sqlite3 filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
pretty_name: Gemma 4 E2B SAE SQLite Atlas
|
| 4 |
+
tags:
|
| 5 |
+
- sparse-autoencoder
|
| 6 |
+
- interpretability
|
| 7 |
+
- sqlite
|
| 8 |
+
- gemma
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Gemma 4 E2B SAE SQLite Atlas
|
| 12 |
+
|
| 13 |
+
An exact, queryable SQLite representation of all **35** residual-stream
|
| 14 |
+
sparse autoencoders from
|
| 15 |
+
[`juiceb0xc0de/gemma-4-e2b-it-SAE`](https://huggingface.co/datasets/juiceb0xc0de/gemma-4-e2b-it-SAE).
|
| 16 |
+
The database contains **1,720,320 feature rows**. Encoder and decoder
|
| 17 |
+
vectors preserve the source checkpoints' float32 values exactly.
|
| 18 |
+
|
| 19 |
+
## Files
|
| 20 |
+
|
| 21 |
+
- `gemma-4-e2b-sae.sqlite3` — SQLite database (20.63 GiB)
|
| 22 |
+
- `manifest.json` — source revision, dimensions, SHA-256, and integrity result
|
| 23 |
+
|
| 24 |
+
Database SHA-256: `d376882e1f618d0f7a662b6b543247fca62967311af319c0bfbd4d5026820768`
|
| 25 |
+
SQLite `PRAGMA quick_check`: `ok`
|
| 26 |
+
|
| 27 |
+
## Schema
|
| 28 |
+
|
| 29 |
+
- `atlas_info`: format and vector-encoding metadata
|
| 30 |
+
- `layers`: layer dimensions, decoder bias, source path/hash, and original metadata
|
| 31 |
+
- `features`: one row per `(layer, feature)`, with encoder/decoder vectors, biases,
|
| 32 |
+
log-thresholds, and vector norms
|
| 33 |
+
- `feature_thresholds`: convenience view exposing `exp(log_threshold)`
|
| 34 |
+
|
| 35 |
+
Vectors are little-endian IEEE-754 float32 BLOBs. Decode one without copying:
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
import sqlite3
|
| 39 |
+
import numpy as np
|
| 40 |
+
|
| 41 |
+
con = sqlite3.connect("gemma-4-e2b-sae.sqlite3")
|
| 42 |
+
blob = con.execute(
|
| 43 |
+
"SELECT decoder_f32le FROM features WHERE layer=? AND feature=?", (12, 42)
|
| 44 |
+
).fetchone()[0]
|
| 45 |
+
decoder = np.frombuffer(blob, dtype="<f4") # shape: (1536,)
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Construction
|
| 49 |
+
|
| 50 |
+
Built in seven bounded five-layer waves on Hugging Face Jobs. Training checkpoints
|
| 51 |
+
were deliberately excluded; only `sae.pt` and `meta.json` were downloaded. Each
|
| 52 |
+
layer was committed transactionally and its staging files deleted before the next
|
| 53 |
+
wave, keeping peak scratch below the 50 GiB job limit.
|
gemma-4-e2b-sae.sqlite3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d376882e1f618d0f7a662b6b543247fca62967311af319c0bfbd4d5026820768
|
| 3 |
+
size 22146265088
|
manifest.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bytes": 22146265088,
|
| 3 |
+
"database": "gemma-4-e2b-sae.sqlite3",
|
| 4 |
+
"feature_limit": null,
|
| 5 |
+
"features": 1720320,
|
| 6 |
+
"layers": 35,
|
| 7 |
+
"quick_check": "ok",
|
| 8 |
+
"sha256": "d376882e1f618d0f7a662b6b543247fca62967311af319c0bfbd4d5026820768",
|
| 9 |
+
"source_repo": "juiceb0xc0de/gemma-4-e2b-it-SAE",
|
| 10 |
+
"source_revision": "main"
|
| 11 |
+
}
|