Fitted Jacobian lenses (J-lenses) and tuned lenses for looped / recurrent-depth language models: Ouro-1.4B, Ouro-2.6B, Dory-4B and Huginn-3.5B. A lens maps the residual state at any point of the unrolled computation (prelude, every block of every loop) to the model's output vocabulary, so you can read what the model represents mid-loop.
Code: Flowshu/looped-jlens.
Lenses are indexed by the unrolled index u = prelude + step * blocks_per_loop + block.
Each .pt has a .pt.json sidecar with the model, loop count (n_steps),
blocks per loop (n_blocks), unrolled_depth, source_layers and
target_layer (the unrolled index the lens is fitted toward).
ByteDance/Ouro-1.4B, 24 blocks x 4 loops, depth 96)| File | What |
|---|---|
ouro14b_meanfit_25x128.e{23,47,71,95}.pt |
Per-target lenses from one 4-loop fit: e{24k-1} transports toward the end of loop k (e95 = final output). Since a k-loop run computes exactly loops 1..k, e{24k-1} is the final-loop lens for the model run with k loops. Sidecar: ouro14b_meanfit_25x128.pt.json. |
ouro14b_25x128.pt |
Single lens fitted toward the final output (u = 95). |
ByteDance/Ouro-2.6B, 48 blocks x 4 loops, depth 192)| File | What |
|---|---|
ouro26b_meanfit_25x128_a.e{47,95,143,191}.pt |
Per-target lenses toward the end of loop k (e = 48k - 1), prompts 0-24. The set used in our multihop analysis. |
ouro26b_meanfit_25x128_b.e*.pt |
Same, fitted on prompts 25-49. |
ouro26b_meanfit_50x128.e*.pt |
Same, 50 prompts. |
ouro26b_loop1_25x128_o{50..225}.pt |
Loop-1-only lenses (k = 1, target u = 47), each on a different 25-prompt slice (prompt_offset). |
nvidia/NVIDIA-Nemotron-Labs-Dory1.0-4B-BF16, 20 blocks per loop)| File | What |
|---|---|
dory4b_r{1,2,3,4}_25x128.pt |
Lens for running the model with r loops, fitted toward the last loop's end. Dory's trained loop count is 2. |
tomg-group-umd/huginn-0125, 4 blocks per recurrence)| File | What |
|---|---|
huginn_r{8,16,24,32}_7x128.pt |
Lens for r recurrences, 7 prompts x 128 tokens. |
tuned/)tuned/{ouro14b,ouro26b,dory}.pt — tuned lenses (Belrose et al.), one affine
translator per unrolled index, trained toward the model's final output at its
trained loop count (Ouro: 4 loops, Dory: 2). Decode with
unembed(h + A_u h + b_u). Each file is a state dict with format, keys
(unrolled index -> row), weight, bias, metadata; training logs and eval
KL / top-1 per index are in the .log and .pt.json.
The per-target files can also be combined into a lens averaged over every loop
boundary at or after the source: looped_jlens.step_end_lens.StepEndAverageLens.load( "ouro14b_meanfit_25x128.pt") (expects the .e*.pt files next to that path).
J-lenses load with jacobian-lens:
from huggingface_hub import hf_hub_download
from jlens.lens import JacobianLens
path = hf_hub_download("lbarazza/looped-jlens", "ouro14b_meanfit_25x128.e95.pt")
lens = JacobianLens.load(path)
Then read a model through it with looped_jlens.readout.apply(lens, model, prompt)
(see the code repo's README). Tuned lenses are plain torch.load(..., weights_only=True)
state dicts.
J-lenses: fitted on 25 prompts x 128 tokens (Huginn: 7, the 50x128 refit: 50) from the code repo's fitting corpus. Exact settings are in each sidecar.
有文件?提交种子。
发布种子huginn_r16_7x128.pt 3.5 GiBhuginn_r24_7x128.pt 3.4 GiBhuginn_r32_7x128.pt 3.4 GiBtuned/ouro26b.pt 3.0 GiBhuginn_r8_7x128.pt 1.8 GiBouro26b_meanfit_25x128_a.e191.pt 1.5 GiBouro26b_meanfit_25x128_b.e191.pt 1.5 GiBouro26b_meanfit_50x128.e191.pt 1.5 GiBtuned/ouro14b.pt 1.5 GiBtuned/dory.pt 1.3 GiBdory4b_r4_25x128.pt 1.2 GiBouro26b_meanfit_25x128_a.e143.pt 1.1 GiBouro26b_meanfit_25x128_b.e143.pt 1.1 GiBouro26b_meanfit_50x128.e143.pt 1.1 GiBdory4b_r3_25x128.pt 938 MiBouro26b_meanfit_25x128_a.e95.pt 760 MiBouro26b_meanfit_25x128_b.e95.pt 760 MiBouro14b_meanfit_25x128.e95.pt 760 MiBouro26b_meanfit_50x128.e95.pt 760 MiBouro14b_25x128.pt 760 MiBdory4b_r2_25x128.pt 688 MiBouro14b_meanfit_25x128.e71.pt 568 MiBdory4b_r1_25x128.pt 438 MiBouro26b_meanfit_25x128_a.e47.pt 376 MiBouro26b_meanfit_25x128_b.e47.pt 376 MiBouro14b_meanfit_25x128.e47.pt 376 MiBouro26b_meanfit_50x128.e47.pt 376 MiBouro26b_loop1_25x128_o100.pt 376 MiBouro26b_loop1_25x128_o125.pt 376 MiBouro26b_loop1_25x128_o150.pt 376 MiBouro26b_loop1_25x128_o175.pt 376 MiBouro26b_loop1_25x128_o200.pt 376 MiBouro26b_loop1_25x128_o225.pt 376 MiBouro26b_loop1_25x128_o50.pt 376 MiBouro26b_loop1_25x128_o75.pt 376 MiBouro14b_meanfit_25x128.e23.pt 184 MiBByteDance/Ouro-1.4B