2026-11-27 16:22 UTC

Neurolume pairs Mac-based LLM fine-tuning with layer-activity visualizations

state: expiredheat: lowuncertainty: mediumrelevance: mediumlocal-fine-tuning model-interpretabilityYiteng Chen

What is this?

Neurolume is an MIT-licensed, early-alpha Mac app by Yiteng Chen that combines local LLM fine-tuning with visualizations of model activity and adapter weight changes. The GitHub project says it supports guided LoRA training, per-layer views, token-confidence replay and logit-lens inspection, alongside local chat and other tools. Its online demo replays recorded data rather than running a model. The author reports successful runs on one MacBook Pro M5 Max with 128 GB of memory, including Devstral Small 2 and Qwen3.6-27B; broader hardware validation is limited, and Ollama export is not hardware-tested. A web-result snippet for v0.3.0 describes the same one-machine limitation but conflicts with the supplied README on which MLX-side features have had a full hardware run; the README reports live probing and logit-lens use on that machine. Evidence is primarily the project’s own documentation and a Hacker News submission, not independent validation.

Why it matters

Neurolume brings local fine-tuning and model-inspection views together in a single approachable workflow. That could help developers and learners experiment with how training changes a model without relying on cloud GPUs or separate research tools. Its visualizations expose measurements, but should not be mistaken for proof of which layers or weights caused an answer; the project itself says activity is not the same as importance and labels some visual elements as stylized. Early-alpha status and single-machine testing make this an interesting tool to watch, rather than established evidence of a broad shift in access or interpretability.

Current assessment

New: the project presents an early-alpha macOS/Apple Silicon app for guided local LoRA fine-tuning and inspection, with an online replay demo and v0.3.0 release surfaced in web results. The README reports validation loss falling from 4.45 to 1.06 in 36 Devstral Small 2 training steps, plus runs involving Qwen3.6-27B, on one M5 Max with 128 GB; these are developer-reported results, not independent benchmarks. The project says it samples real weights, derives per-layer activity and adapter ΔW from model data, and computes logit-lens predictions, while acknowledging that layer activity does not establish causal importance and some graphics are illustrative. It supports local MLX workflows and model export; hardware validation beyond the reported Mac is absent, and Ollama export is explicitly untested. The search snippet for v0.3.0 says several MLX features have not had a full hardware run, which differs from the README’s reported live probing and logit-lens use on the test machine; track this discrepancy rather than treating all features as validated. Potential significance is lower-friction, local experimentation and teaching, but adoption, usefulness across hardware, and interpretability value remain unverified.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

11-03 16:27 (minted)⭐ origin echo-reconstructedThe repository README presents Neurolume as the creator’s project: “Watch your model learn. Fine-tune an LLM on your Mac in a few clicks — a
Yiteng Chen (GitHub account Yiteng-CHEN; HN account eatonchen) on github (echo) · attributed from hn.story.50353696 · published time unknown
—
11-03 16:03first on hacker news · published · lag ?Show HN: Neurolume – Fine-tune LLMs on a Mac and watch what changes per layer
eatonchen
—
11-03 16:03amplified on hacker news 👑hn.story.50353696
eatonchen
peak 1 · 1 comments · 97% of case engagement
11-03 16:21our radar first saw it · lag ?discovery anchor: hn.story.50353696—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Neurolume – Fine-tune LLMs on a Mac and watch what changes per layer
Retrieved article excerpt

Open article · Retrieved 2026-11-03T16:23:51.203962+00:00

# Neurolume

**Watch your model learn.**
Fine-tune an LLM on your Mac in a few clicks — and see, layer by layer, what training actually changed.

[CI](https://github.com/Yiteng-CHEN/neurolume/actions/workflows/ci.yml)
[Platform](https://camo.githubusercontent.com/edd4c652e1ff454f274caafa1c4543cf768da719d3148713bb87c5f742545cc1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706c6174666f726d2d4170706c6525323053696c69636f6e2d626c61636b)
[License](https://camo.githubusercontent.com/b8cadaa967891081f8f165695470689986c028821dd8a040132f6e661795dc0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c7565)

**[▶ Try the online demo](https://yiteng-chen.github.io/neurolume/)** (no install; replays a real recorded run) · English · [简体中文](https://github.com/Yiteng-CHEN/neurolume/blob/main/README.zh-CN.md)

[Neurolume: Devstral Small 2 answers while the layer map lights up; the answer replay shows how confident the model was in each token and what else it considered; the logit lens shows every layer's guess; the Train view shows a real adapter's weight change](https://github.com/Yiteng-CHEN/neurolume/blob/main/docs/media/demo.gif)

Real data, not a mock-up: one answer from Devstral Small 2 on an M5 Max (per-layer activity, logit lens, per-token confidence) and a real adapter's ΔW, replayed in the [online demo](https://yiteng-chen.github.io/neurolume/) · [video](https://github.com/Yiteng-CHEN/neurolume/blob/main/docs/media/demo.mp4)

Most fine-tuning tools stop at "training finished, loss = 1.23". Most interpretability tools show a model you cannot change. Neurolume puts both in one local app: **you train the model, and you watch its insides while you do it.**

> **Status: early alpha.** Server, UI and tooling are unit-tested (110+ tests, no GPU needed). Everything below runs on one machine so far (MacBook Pro M5 Max, 128 GB). Verified there with Devstral Small 2 and Qwen3.6-27B: live layer probe, logit lens (live, and computed afterwards for answers generated without it), per-token confidence, guided LoRA training (Devstral: 36 steps, 15 GB peak, validation loss 4.45 → 1.06), before/after comparison, MLX export and training-data generation. Ollama export is not hardware-tested yet. Reports from other machines are very welcome.

## What you can do

**Fine-tune without writing code**

- **Bring data, or make it.** Save good answers (or your corrected versions) from the chat with one click; drop in `.jsonl`, notes, code, or your ChatGPT / Claude / Claude Code chat history — or let the loaded model *generate* a dataset from your own files: Q&A pairs from documents, or "requests → your own code/writing" pairs that teach your style. You review and edit every item before training.
- **Guided LoRA training** with automatic checks (secret scan, de-duplication, train/validation split), live loss, speed and memory. The base model is never modified; the result is a separate adapter.
- **Did it work?** Validation loss *before → after* on data the model never trained on, a per-layer bar chart of how much each layer changed, and a **side-by-side comparison**: the same question answered by the original and the trained model (no reload — the adapter is switched off and on in place).
- **Take it anywhere.** Export the fused model as MLX (LM Studio loads it directly) or to **Ollama**.

**See inside the model**

- **Live brain view.** A 3D sphere or nebula with one band per real layer (Devstral Small 2: 40; Qwen3.6-27B: 64 with its linear/full-attention pattern). It discharges only while the model is generating or training.
- **Layer map.** Four weight matrices per layer with real weight values on hover, per-layer activity while generating, and the adapter's real ΔW while training.
- **Logit lens.** For each generated token, what every layer would predict "if the model stopped here" — watch the answer form layer by layer. Generated an answer with the view closed? Open it afterwards and it is computed for that answer in one extra pass, so normal chatting stays at full speed.
- **Answer replay.** One bar per token showing how confident the model was; the answer text is tinted the same way and hovering shows the alternatives it considered. Click any token and the brain and layer views go back to that moment.
- **"How to read this"** explanations for attention, MLP, linear attention, LoRA and the logit lens, in English and Chinese.

**Use it every day**

- Chat with an OpenAI-compatible local server (`/v1/chat/completions`, streaming), one-click model library, **knowledge base** (import books/docs for retrieval), opt-in **web search** for local models (also as an MCP server), and an **agent** that reads a project folder and proposes edits you approve one by one (with undo).

### Honest signals

Everything labelled as the model's activity comes from the model; simulated data is labelled. Full definitions in [`docs/SIGNALS.md`](https://github.com/Yiteng-CHEN/neurolume/blob/main/docs/SIGNALS.md).

| Shown | Source |
| --- | --- |
| Layer count and types | Read from the loaded model |
| Weight values on hover | Exact strided sample of the dequantized weights |
| Per-layer activity | `mean|out − in| / mean|in|` of each block at the token being generated; raw value on hover |
| Logit lens | The model's own final norm + output head applied to intermediate layers |
| Per-token confidence and alternatives | The probabilities mlx-lm already computes while generating (no extra pass) |
| Brightness of the links between layers | Geometric mean of the two layers' activity; which matrix each thin line joins is illustrative |
| ΔW, per-layer change | Computed from the adapter (`scale · B·A`) |
| Validation loss before → after | mlx-lm's evaluation before the first update and at the end |
| Discharge paths on the sphere, colours, glow | Stylized (their frequency follows GPU/memory load and layer activity) |

## Tour of the interface

The window is split in two: **chat on the right**, and on the left **the brain on top, with the layer window and the answer replay below it**.

### 1. Chat (right)

- First row: pick a model; green “Live · real model” means the data comes from the running model, yellow “demo” means simulated. After training you also get an **adapter** dropdown (“no adapter” is the base model) and a **Compare with base** button.
- Toolbar: **Models** (download, load) · **Train** (the wizard) · **Web search** (the gear opens search settings) · **Knowledge base** · **中文/English** · **Agent** · 🗑 clear chat.

### 2. Brain (top left)

- Two shapes: **nebula** and **sphere** (toggle bottom-right). Each height band / ring is one layer, numbered on the left; Qwen3.6's full-attention layers are marked ◆.
- It only fires while the model is generating or training. Layer brightness comes from per-layer activity and the firing rate follows GPU and memory load; the paths, colours and glow of the sparks on the surface are stylised.
- Bottom line: GPU load, memory, model size, generation speed (tok/s).

### 3. Layer window (bottom left): four views

| View | What you see |
| --- | --- |
| **Inference** | One column per layer, four matrices per layer: attention Q, attention output, MLP gate, MLP down-projection; each cell is a real weight from that matrix (evenly spaced sample). While generating, a layer is brighter the more it changes the token's representation. The bundle of links between two neighbouring layers is lit by the geometric mean of the two, so **it is thick and bright only when both layers are busy, and faint if either is quiet**. Hover a cell for the real weight and the layer's raw measurement. |
| **Train** | The adapter's real ΔW (green = weight increased, orange-red = decreased); the bars below are the total change per layer, and you can pick any trained adapter to review. LoRA trains only the last 16 layers by default, so unchanged early layers are expected. |
| **Weights** | The static weights: orange = positive, cyan = negative, intensity = |w| ÷ the matrix's std (capped at 3σ). |
| **Logit lens** | A table: one column per generated token, one row per layer showing what that layer would output “if the model stopped here”; darker = more confident. A green underline means the layer already agrees with the final output; the “Settled” row says from which layer on. ◇ is a byte fragment of a multi-byte character. Choose which layers to show: all / second half / last 16 / a custom range and step. If the view was closed while the answer was generated, switching to it computes the lens for that answer afterwards. |

### 4. Answer replay (below the layer window)

- **One bar per token**: taller = the model hesitated more on it (1 − the probability it gave that token). Colour: cyan = confident, yellow = so-so, orange-red = unsure. The white line is a smoothed trend.
- **The answer text, tinted the same way**, so hesitant words stand out; unsure ones get a wavy underline. **Hover** to see what else it considered, e.g. “生命” at 32 % with “爱与” 29 % and “深刻” 15 % as alternatives.
- **Click any bar or word** and the brain and layer map freeze at the moment that token was generated; drag the slider or press “▶ Replay” to step through.
- **Select part of an AI answer in the chat** and the replay shows only that part; “Latest answer” goes back.
- In the logit-lens view the bars show the layer where each token settled instead (taller = decided later), on an axis covering only the layers that actually occur.

### 5. Training wizard

**Collect as you go**: every answer in the chat has “Save as training sample” and “Edit, then save…”. Save good answers as they are; fix the others into what you wanted first, and the model learns the fixed version.

Import data (samples saved from chat, `.jsonl`, notes, code, **`conversations.json` exported from ChatGPT or Claude, Claude Code session `.jsonl` files**, or have the model generate pairs from your files; sources can be combined into one dataset) → automatic checks (secrets removed, duplicates dropped, train/validation split) → pick a preset and train (live loss, speed, memory) → results: validation loss before → after, per-layer ΔW, side-by-side comparison with the base model → export as an MLX model or to Ollama.

### 6. Everything else

- **Knowledge base**: import books and documents; the model retrieves relevant passages before answering and cites them.
- **Web search**: when on, the model searches and reads pages when it needs to (your question goes to the search service); when off, Neurolume sends nothing out.
- **Agent**: pick a project folder; the model reads files and proposes changes one by one, each needing your approval, all undoable.
- **Local API**: `http://127.0.0.1:8765/v1/chat/completions`, OpenAI-compatible, so other tools can use the local model.

## FAQ

**I clicked a token in the replay. Why are the links between some layers thick and bright and others faint?**
The layer map is frozen at the moment that token was generated. Each layer's brightness is how much it changed the token's internal representation, compared both with that layer's typical level in this answer and with the other layers for this token. The bundle between two layers takes the geometric mean, so a bright stretch means several consecutive layers were heavily rewriting this token, and a faint stretch means those layers mostly passed it along. It is a real measurement, but **not “importance”**: changing a lot does not mean contributing a lot to the answer. The overall pattern also tends to look similar from token to token (overall activity varied only about ±10 % on real hardware); what really separates tokens is the confidence in the replay bars. Which of the 16 thin lines in a bundle joins which two matrices, and how the dots move, is illustrative; the measurement is per layer.

**Why are the early layers in the logit lens mostly English or gibberish?**
Early layers are still working out what each token is and where it sits; reading a next-token predi
eatonchen11
🟧 echo.github ⭐The repository README presents Neurolume as the creator’s project: “Watch your model learn. Fine-tune an LLM on your Mac in a few clicks — aYiteng Chen (GitHub account Yiteng-CHEN; HN account eatonchen)——

Interpretation history

Decision trace