idhantgulati/j-lens

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

j-lens.idhant.xyzBrowse cluster: Python AI/ML Research and Analysis Tools

README

j-lens

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 decomposition
  • interventions.py — steering, ablation, and lens-coordinate swaps
  • evals.py — the §A.6 pass@k evaluations and §4.1 workspace-band metrics
  • main.ipynb — the full run: fit/load → read out → evaluate → intervene

Eval prompt data is downloaded from the official companion repo (anthropics/jacobian-lens) on first use.

pip install torch transformers datasets huggingface_hub matplotlib

Contributors

idhantgulati

21 commits

cursoragent

1 commits

idhantgulati/j-lens

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

j-lens.idhant.xyzBrowse cluster: Python AI/ML Research and Analysis Tools

README

j-lens

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 decomposition
  • interventions.py — steering, ablation, and lens-coordinate swaps
  • evals.py — the §A.6 pass@k evaluations and §4.1 workspace-band metrics
  • main.ipynb — the full run: fit/load → read out → evaluate → intervene

Eval prompt data is downloaded from the official companion repo (anthropics/jacobian-lens) on first use.

pip install torch transformers datasets huggingface_hub matplotlib

Contributors

idhantgulati

21 commits

cursoragent

1 commits

Languages

JavaScript

30.9%

Python

30.9%

CSS

21.9%

HTML

11.3%

Jupyter Notebook

5.1%