J-lens for Qwen3.8-27B
A standard Jacobian lens (J-lens) for Qwen/Qwen3.8-27B — Qwen's 64-layer dense vision-language model, with 48 Gated DeltaNet and 16 gated-attention blocks in a 3 : 1 interleave, a native vision tower for image and video understanding, and thinking mode on by default. At each fitted source layer and token position, the lens reads out vocabulary tokens the activation is poised to make the model verbalize, following the J-space / global-workspace method introduced in Verbalizable Representations Form a Global Workspace in Language Models (2026; reference implementation: anthropics/jacobian-lens).
Part of the collection of Jacobian lenses.
Fit
python fit_lens.py eyes-ml/Qwen3.8-27B --out_dir out/ \
--max_seq_len 128 --n_prompts 1000 --stop_at_delta 1e-3
| Field | Value |
|---|---|
| Fitter | neuronpedia_utils/jlens/fit_lens.py @ 7724688 — the Neuronpedia adaptation of the official jlens demo/fit_lens.py, with the same VLM loader change used for the Glimmer fit (documented below) |
| Checkpoint | eyes-ml/Qwen3.8-27B — frozen mirror of Qwen/Qwen3.8-27B @ 32a8451 |
| Corpus | WikiText-103 (Salesforce/wikitext · wikitext-103-raw-v1 · train), streamed and re-chunked to ~2000-char prompts (fitter default) |
| Prompts | 1,000 · max_seq_len 128 → 111 valid positions per prompt |
| Target layer | final layer, L63 (fitter default) — source layers 0–62 |
| Other args | fitter defaults at that commit: dim_batch 8, bfloat16, … |
| Stop rule | --stop_at_delta 1e-3 (10-prompt smoothed mean, ≥100 prompts) — not reached: the run ended at the --n_prompts cap with smoothed Δmean ≈ 1.9e-3; the raw per-prompt Δmean first dipped under 1e-2 / 5e-3 / 1e-3 at prompts 120 / 222 / 988 |
Final logged identity_distance at layer 62 (‖J−I‖_F/√d) |
≈ 0.3753 before fp16 serialization, flat over the tail |
| Compute | ≈87.2 s/prompt on 1× H100; 24.22 h summed fit-loop time; fitter-reported peak allocated VRAM 63.04 GiB |
Toolchain
The fit used the following toolchain:
transformers==5.10.1— stable, from PyPI. Qwen3.8-27B ships asmodel_type: qwen3_5, architecturally identical to Qwen3.5, so no dev-branch pin is needed; 5.10.1 is the version already pinned across our stack.- The same one-line VLM loader change used for the Glimmer fit was carried over:
fit_lens.pyL356:transformers.AutoModelForCausalLM→transformers.AutoModelForImageTextToText. This lets the fitter load the fulltransformersVLM wrapper;jlens.from_hfthen auto-detects the text decoder.
Loading
Qwen3.8-27B_jacobian_lens.pt is the jlens save format — a plain torch-loadable dict, read exactly as JacobianLens.load does:
import torch
lens = torch.load("Qwen3.8-27B_jacobian_lens.pt", map_location="cpu", weights_only=True)
lens.keys() # dict_keys(['J', 'n_prompts', 'source_layers', 'd_model'])
lens["d_model"] # 5120
lens["source_layers"] # [0, 1, ..., 62]
J maps each of the 63 source layers (0–62) to its 5120 × 5120 float16 Jacobian into the final-layer target basis. Qwen3.8's head is plainer than Glimmer's: lm_head is a bias-free linear over the final RMSNorm output, with no output multiplier and no logit softcap (per the pinned modeling_qwen3_5.py — Qwen3_5ForConditionalGeneration, head at L1720, logits at L1836), so the lens readout distribution is softmax(W_U · norm(J_ℓ · h_ℓ)), with W_U untied (tie_word_embeddings: false) over the padded 248,320-token vocab.
Notes
- Anchor. This lens anchors at the final layer (fitter default); anchors differ across published J-lens artifacts (some use the penultimate layer), so check the anchor before comparing lenses head-to-head.
- Post-trained checkpoint. At publication, Qwen provides only post-trained Qwen3.8 checkpoints — no base checkpoint appears in the Qwen3.8 collection — so, as with Glimmer, there is no public base/post-trained pair to compare.
- Text-side fit. The corpus is text-only, so the Jacobians are estimated on language-decoder activations at text positions. Reads at vision-token positions are untested.
- Convergence. Δmean tracks the stability of the fitted mean Jacobian, not semantic faithfulness or probability calibration. The full curve ships as
Qwen3.8-27B_convergence.csv, plotted above.