minimal J-lens / J-space implementation and visualization (Gurnee et al., 2026) on qwen3.5-4B
3
stars
22
commits
JavaScript
primary language
Jul 9, 2026
updated
Minimal implementation of the Jacobian lens and J-space methods from Verbalizable Representations Form a Global Workspace in Language Models (Gurnee et al., 2026), on Qwen3.5-4B.
jlens.py — fitting the lens ($J_\ell = \mathbb{E}[\partial h_{\text{final}} / \partial h_\ell]$), readout, lens vectors, sparse J-space decompositioninterventions.py — steering, ablation, and lens-coordinate swapsevals.py — the §A.6 pass@k evaluations and §4.1 workspace-band metricsmain.ipynb — the full run: fit/load → read out → evaluate → interveneEval prompt data is downloaded from the official companion repo (anthropics/jacobian-lens) on first use.
pip install torch transformers datasets huggingface_hub matplotlib
21 commits
1 commits
JavaScript
30.9%
Python
30.9%
CSS
21.9%
HTML
11.3%
Jupyter Notebook
5.1%
minimal J-lens / J-space implementation and visualization (Gurnee et al., 2026) on qwen3.5-4B
3
stars
22
commits
JavaScript
primary language
Jul 9, 2026
updated
Minimal implementation of the Jacobian lens and J-space methods from Verbalizable Representations Form a Global Workspace in Language Models (Gurnee et al., 2026), on Qwen3.5-4B.
jlens.py — fitting the lens ($J_\ell = \mathbb{E}[\partial h_{\text{final}} / \partial h_\ell]$), readout, lens vectors, sparse J-space decompositioninterventions.py — steering, ablation, and lens-coordinate swapsevals.py — the §A.6 pass@k evaluations and §4.1 workspace-band metricsmain.ipynb — the full run: fit/load → read out → evaluate → interveneEval prompt data is downloaded from the official companion repo (anthropics/jacobian-lens) on first use.
pip install torch transformers datasets huggingface_hub matplotlib
21 commits
1 commits
JavaScript
30.9%
Python
30.9%
CSS
21.9%
HTML
11.3%
Jupyter Notebook
5.1%