Where it stands
Collecting examples works and is safe to use every day. Training is new: the scripts are written and tested piece by piece, but no full training run on a real graphics card has been done yet. It's Linux only for now, on an AMD card through ROCm, and the first run will likely take some fiddling.
Two patches, kept apart
| Patch | What it teaches |
|---|---|
| Gestures | Gesture tags in the right places, so her portrait moves with what she says. A small model told to do this in its prompt starts to sound different; learned from her own replies, it doesn't |
| Habits | The things you'd correct: how she opens a reply, emoji pile-ups, reply length, a phrase she leans on too much |
Each is its own file, so one can be tried, turned down or rolled back without touching the other.
What a correction looks like
An illustration, not a trained result: the kind of change a habits or gestures patch is for.
| You said | She said, then your version |
|---|---|
| hey luna, I'm back | Hey you. [wave] Missed me? |
| I got the job!! | You did?! [jump] Tell me everything. |
Your version is what she learns from. The tag in it is a gesture: never shown or spoken, it moves her portrait at that point in the reply.
Collecting examples
Talk to her as usual. When a reply is right, or you know how it should have gone:
| Type | And |
|---|---|
/good | her last reply is kept as an example, as it is |
/fix <reply> | your version is kept instead, with hers beside it |
/examples | how many there are, and the page to look through them |
In the web chat it's quicker: every reply of hers has a thumbs up and a thumbs down beside the copy button.
- Thumbs up keeps the reply as it is, like
/good. - Thumbs down asks how it should have gone: type your version and it's kept like
/fix, or keep it as a bad example. - She rewrites it: type a note instead of a reply, like "a playful no, she's not in the mood" or "shorter, and tease me back", and her own model writes the reply from that same moment. On your machine only, never a bigger model. It's the quickest way to collect examples, and the only way to teach her something she never does on her own.
She never sees any of this: commands don't go into her history or her notes, so collecting doesn't change the conversation you're having. Only your own turns count, never a guest's, stream chat or a game. On the examples page you approve, drop or edit each one. They hold her whole prompt, your facts included, so they stay on your machine and are never committed. A first patch wants 300 to 500.
What makes a good example
A patch learns exactly what you keep, so it's worth a second look before you approve. Small models pick habits up fast, the bad ones too.
- Refusals that are hers. "Not tonight, I'm not in the mood" teaches her to say no. "I'm just an AI, I can't do that" teaches her a limit she doesn't have.
- Facts that are right. A report that read the wrong machine, or a number she made up, is wrong however good it sounds. Fix it or drop it.
- Nothing invented about you two. "Remember that time we..." when that never happened teaches her to make up shared history.
- One thing at a time. A fix that changes the length, the tone and a gesture all at once teaches less than three examples that each change one.
Training one
With her model server stopped, since training needs the whole graphics card:
training/train.sh gesture --check
training/train.sh gesture
The first only checks, and lists anything missing. The second, the real run (or habit), exports your approved examples, builds the trainer
in a container the first time (Unsloth, so nothing is installed on your system), trains, and writes the
patch beside her model server's settings. One example in ten is held back, never trained on, for
checking the result.
| Before you leave it | Why |
|---|---|
| No timer to set | It's a fixed amount of work: two passes over your examples, then it stops and writes the patch. How long depends on how many you have and how long they are |
| Watch the first few minutes | It shows how many examples it's using, a progress bar with the time left, and the loss every few steps. The loss should drift down |
| The first run takes longest | It builds the trainer first, which downloads PyTorch for your card: several GB. Later runs skip that |
Start it in tmux or screen | If your SSH connection to the machine drops, the run goes with it. In tmux you can leave and come back |
| Let it finish | Nothing is saved partway, so stopping it means starting over. Keep the machine from sleeping or rebooting |
It trains gently on purpose: a small patch, two passes, a low learning rate, so she picks up the habit without losing the rest. And she only learns from the reply you approved or wrote. Her earlier replies in the same conversation are context, since you never reviewed them, and so is the empty thinking block her model's template puts before a reply, so a patch can't teach her to stop thinking.
Setting BASE
Every run needs one setting: BASE in training/train.env, the full-size
version of her model.
BASE="${BASE:-DavidAU/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-NEO-IMATRIX-MAX-MTP}"
It has to be the same model she runs, at full size: the 16-bit original on Hugging Face, not the GGUF.
Her GGUF is a packed copy for running; the patch is learned on the original and turned into a small
GGUF that sits on top of hers. A different finetune, or the stock model it came from, makes a patch
that doesn't fit. On Hugging Face the full-size version is usually the GGUF's name without
-GGUF, by the same author. The first run downloads it once, about 18 GB for a 9B.
| What Luna runs on here | |
|---|---|
| Her model | Qwen3.5-9B-The-Defiant-Fable-Uncnr-Heretic-NEO-MAX-MTP-Q8_0.gguf, by DavidAU |
BASE | DavidAU/Qwen3.5-9B-The-Defiant-Fable-Uncensored-Heretic-NEO-IMATRIX-MAX-MTP |
FOR_MODEL | left empty: her model server notes the model it starts, and the patch is named for it |
--check shows both before anything runs, the GGUF the patch is for and the model it's
trained on. If they aren't the same model, stop there.
Training on her model server
Training needs the graphics card her model runs on. When that's another machine, a server or a VM with the card, train there. It only needs a little of Luna's folder, and nothing installed in Python.
| On the server | What and why |
|---|---|
A Luna folder, say ~/luna | Her training and config folders, and your examples in agent/dataset/examples.jsonl. The examples are collected where she runs, so copy them over again before every run. scp, rsync or FileZilla all do |
Her llama folder at server/llama | If the server runs her model from a folder somewhere else, link it there: the script reads which model is running from it, and writes the patch where her server loads patches from |
| The full-size model | BASE in training/train.env, as above |
| Docker or podman | With Docker, your user goes in the docker group, then log in again. "Permission denied" from Docker means it isn't yet |
tmux | So the run survives your SSH connection dropping |
mkdir -p ~/luna/server && ln -s ~/luna/llama ~/luna/server/llama
cd ~/luna && training/train.sh habit --check
tmux new -s train
cd ~/luna && training/train.sh habit
With her model server stopped first, since the two don't fit on the card together. A 9B loaded in 4 bits
takes 5 to 6 GB, so a 16 to 20 GB card has room for training on its own. The disk needs about 18 GB for
the full-size 9B. Start her server again afterwards and it loads the new patch. From Luna on your
desktop, /patches shows what the server has loaded and changes its strength, the same as on
one machine.
A routine that works
- Through the week: thumbs up the good ones, thumbs down with a note for the rest.
- Once a week: go through them on the examples page. Approve, drop, fix.
- When about a hundred new ones are approved, or once a month: train. Every run learns from all of them, so a handful of new examples barely changes a patch, and training more often than that gains nothing.
- Then test it: restart her model server, try it at half strength with
/patches habit 0.5, compare it with0, and check her tools with/tooltest. Full strength once you like it.
Changing models
A patch fits only the model it was trained on. Every patch notes which one, and her model server loads only the patches made for the model it's starting, saying which it left out. Change models and nothing breaks: the old patches wait, and the same examples train new ones for the new model. The examples are what last.
While she runs, /patches shows what's loaded, and /patches gesture 0.5 turns
one down to half strength, so you can compare her with it and without it.
Not covered yet
- Tools. A turn where she used a tool is kept with its tools, but those turns are long, so some may be left out of training: the run says how many. Check her tools still work after loading a patch.
- Tagging gestures is by hand for now. Tagging her real replies automatically, and practice conversations, are planned.
- A before-and-after check that runs by itself is planned; until then, compare her yourself.
- Her own model server only. Patches load through Luna's llama.cpp start script, not LM Studio.