Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -15,7 +15,9 @@ short_description: Mechanistic probe on Gemma-3-1B-IT
|
|
| 15 |
# Cartogemma
|
| 16 |
|
| 17 |
A faithful Gradio port of `cartographer3.py` / `cartographer_tui.py` against
|
| 18 |
-
**`google/gemma-3-
|
|
|
|
|
|
|
| 19 |
|
| 20 |
- **Context** β running token tail.
|
| 21 |
- **Head Map** β for each layer: per-head pre-stream projection Β· logit-lens xray Β·
|
|
|
|
| 15 |
# Cartogemma
|
| 16 |
|
| 17 |
A faithful Gradio port of `cartographer3.py` / `cartographer_tui.py` against
|
| 18 |
+
the Gemma-3 family. Default: **`google/gemma-3-270m-it`** (tiny enough that
|
| 19 |
+
full head-scans are near-instant). Swap to `google/gemma-3-1b-it` or
|
| 20 |
+
`google/functiongemma-270m-it` via the Model ID box. Four panes:
|
| 21 |
|
| 22 |
- **Context** β running token tail.
|
| 23 |
- **Head Map** β for each layer: per-head pre-stream projection Β· logit-lens xray Β·
|
app.py
CHANGED
|
@@ -22,7 +22,7 @@ import gradio as gr
|
|
| 22 |
from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed
|
| 23 |
|
| 24 |
# ββ Config ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 25 |
-
DEFAULT_MODEL_ID = os.environ.get("CARTOGEMMA_MODEL", "google/gemma-3-
|
| 26 |
HF_TOKEN = os.environ.get("HF_TOKEN") or os.environ.get("HUGGING_FACE_HUB_TOKEN")
|
| 27 |
SEED = 42
|
| 28 |
DEFAULT_WIDTH = 5
|
|
|
|
| 22 |
from transformers import AutoModelForCausalLM, AutoTokenizer, set_seed
|
| 23 |
|
| 24 |
# ββ Config ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 25 |
+
DEFAULT_MODEL_ID = os.environ.get("CARTOGEMMA_MODEL", "google/gemma-3-270m-it")
|
| 26 |
HF_TOKEN = os.environ.get("HF_TOKEN") or os.environ.get("HUGGING_FACE_HUB_TOKEN")
|
| 27 |
SEED = 42
|
| 28 |
DEFAULT_WIDTH = 5
|