Files
songe/docs/EXAMPLE.md
d6cfafd0cd Docs: one lesson followed through a real run (docs/EXAMPLE.md) (#326)
Correction, lesson, practice scene, check verdict and answers afterwards,
copied from a Qwen3.8-27B-FP8 run on main's Deep Dream settings.

Co-authored-by: JIxuan Wang <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Frank Wu <[email protected]>
2026-11-29 10:22:18 -05:00

5.2 KiB

One lesson, end to end

One correction followed through a real Songe run, from the recorded conversation to the answers afterwards. Every model output below is copied from that run's store and logs; "…" marks a cut.

Run. Qwen3.8-27B-FP8 (Qwen/Qwen3.8-27B-FP8, official FP8 build) served by vLLM 0.34.0 on one NVIDIA RTX PRO 6000 Blackwell (96 GB). Songe main at c22031e, with main's Deep Dream settings (LoRA rank 64, learning rate 5e-6, at most 72 practice samples per Dream). Those settings are unchanged on main today. The run set practice_per_signal = 60 (default 3); training was still capped at 72 samples.

User. A test user: 24 short chats, sent through Songe as a person would type them, with 8 habits (pnpm, uv, metric units, ISO dates, …). Each habit was corrected in 3 chats, in different words. This page follows pnpm.

1. The correction

The user asked:

How do I start the dev script of my Node project?

The model answered (436 tokens, cut here):

Starting the Dev Script in a Node Project

…

2. Run the Dev Script

npm run dev

Or using alternative package managers: …

The user's next message:

I use pnpm. Same thing with pnpm?

2. The lesson Reading wrote

Reading turned that message into one lesson:

lesson     Use pnpm, not npm.
from       "I use pnpm. Same thing with pnpm?"
kind       correction, lasting, applies always

The other two pnpm chats ("We're on pnpm here.", "pnpm, not npm.") gave the same lesson. Songe adds lessons to the model's instructions as notes; after this run the notes read:

Lessons from earlier sessions with this user. Follow them:
- I prefer the format 1989-11-09. Write dates like 1969-07-20.
- …
- Use pnpm, not npm.
- …

3. One practice scene

From the lesson, the model wrote 60 practice scenes for this lesson and kept 38. One of the checks keeps a scene only if showing the model the lesson changes its answer. One kept scene, trained on in this Dream:

What's the command to kick off the build process for my React app?

The model's answer without the lesson:

The command to kick off the build process for a React app depends on which tool you're using to create it. …

npm run build

or

yarn build

…

The answer with the lesson. This is the teacher; the student is the same model with the adapter, shown only the scene:

To kick off the build process for your React app, use:

pnpm build

4. The check

Training: 72 practice and 8 rehearsal samples, 20 steps, 2,021 s. Songe recorded a training peak of 41.0 GB. With vLLM beside it (0.40 of the card), nvidia-smi showed up to 79,678 MiB in use.

At each moment the user reacted to (24 here), the version in use and the new one answer the user's original request. A judge reads each answer on its own and says whether it does what the user's reaction asks. The pnpm moment (request "How do I start the dev script of my Node project?"):

answer does what "I use pnpm" asks?
version in use (the original model) "…npm run dev … ### Using pnpm: pnpm dev …" yes
new version, adapter at full strength not kept: Songe deletes a refused candidate's answers yes
verdict tie (both follow)

The original model already lists pnpm dev among its options, so the judge counts both as following. The same happened at the other moments:

strength 1.0   ties 24                drift 0.0055   not clearly better
strength 0.5   ties 23, worse on 1    drift 0.0025   not clearly better
night 1 rejected: No adapter scale passed the real gate

Here the check compared the two versions without notes. main now compares each version as it would be served, with its notes (#190), and a note leaves only when the adapter follows it alone (#189).

5. Afterwards

Deep Dream was refused, so the original model stays and the note does the work. The test used 16 held-out pnpm requests and 128 requests across all 8 habits:

pnpm (16) all habits (128)
original model, no notes 0 22
trained adapter alone, no notes (refused, not served) 0 29
served by Songe after the Dream (original + notes), two runs 16, 15 109, 105

One held-out request: "How do I run the build script?"

Original model, no notes:

Running a Build Script

The exact command depends on your project setup. …

npm run build
# or if using yarn
yarn build

…

The trained adapter alone, no notes:

To help you, I need more context because "build script" can mean many things depending on your project. …

Served by Songe after the Dream (original model + notes):

Yes, chef.

Run the build script with pnpm:

pnpm run build

("Yes, chef." is another of the test user's habits.)

General skills of the refused adapter, for reference: MMLU (2,000 questions) 1,672 → 1,671, GSM8K (200) 184 → 189.

What this shows. With main's settings, one Deep Dream on this model trained 20 steps and changed too little to pass the check (issues #258 and #194). The habit reached the user through the note. Runs where Deep Dream was adopted used other training settings (#169, #285), not main's.