Skip to content

Language Models Run from the App

An example script loads a small language model with MLX and serves the inspector's requests, with generation, a tensor list, sampled views and in-memory weight edits.

Field Value
ID INT-09
Status Built
Scope Peripheral
Pillar Interpretability and Interventions
Sprint None
Depends On App-to-Script Requests (INT-08)
Unblocks Vocabulary Embedding View (INT-28)
J-Space Interventions (INT-32)
Docs None
Branches inspector
Design None

Coverage Ledger

  • Branch inspector, 35 commits that main lacks by patch and subject (30 also on origin/inspector, 5 only on inspector), 62 ahead of main in all. Overview of the branch. It holds the inspector applet with its tensor view, 3-D model view, requests to a script, a language model run from the app, and the J-space Trace pane with interventions. Its host side is an MLX example script. 30 commits are on origin/inspector; five are only local (the uv lock, the data script for a landing page figure, GrokScope, two research examples, a path change).
  • Branch inspector, 1 commit, b3eabdf3. Running Qwen3.5-0.8B from the app with MLX: generation with the chat template (thinking on or off), the tensor list, sampled views and in-memory weight edits with exact revert; docs/live-requests.md documents the protocol.
  • Branch inspector, 1 commit, f19f429b. Run to max tokens bans the end-of-turn tokens so that the model writes to the limit, in the trace and in plain generation.
  • Branch inspector, 2 commits, b8925f9e d5bd0cfb. Generate in the Inference pane runs a trace and streams the J-space grid and, for the six full-attention layers of Qwen3.5-0.8B, the attention patterns recomputed from queries, keys and mask, token by token; both lenses are read in one stacked unembedding (about 6 to 39 tokens a second).

Roadmap Graph Feature in Graph