Local Inference

Songe trains a small adapter on your local model while your agent is idle

The sous-labs Apache-2.0 engine proxies your local agent, distills lessons into a small adapter on MLX or PyTorch, and uses a new version only if a judge finds it clearly better than the current one.

Published
November 24, 2026
Read
6 min
Published by
Samir Sengupta
Songe proxies a local coding agent and trains a small adapter on the local model during idle time
Note 161 / 163Daily note · Written from 1 source

How this was madeDrafted with Claude, Anthropic’s model, from 1 cited source, then checked against it in a second editing pass. Editorial policy

Disclosure I build Wayne, an AI coding harness for VS Code, and Omnitron, an agent harness, so I work in this category. See the project

the short version

  • The training method is on-policy distillation into a small adapter. The teacher is the model as it was, shown the lesson. The README describes no full fine-tuning and no RL.
  • Training runs on Apple Silicon via MLX and on NVIDIA and AMD via PyTorch. Only Apple Silicon and NVIDIA are tested end to end. Machines without a GPU serve and record but do not train.
  • The README publishes no memory requirement, no supported base-model list and no measured improvement per training run. It says Songe measures what the machine can learn at once before the first training.
  • A new version replaces the loaded model only after a judge finds it clearly better on the user's own conversations, and any earlier version can be restored.

Songe is an Apache-2.0 tool from sous-labs. It sits between a coding agent and a local model server, records what happens after each model action, and uses idle time to train a small adapter on that model by on-policy distillation. The README describes no full fine-tuning and no reinforcement learning. A Deep Dream, its training run, takes an hour or more and runs on Apple Silicon through MLX or on NVIDIA and AMD GPUs through PyTorch. The README gives no memory figure: before the first training, Songe measures how much your computer can learn at once and trains on what fits.

The project describes itself as a training engine for your local model that uses your idle compute. You keep using opencode, pi or any OpenAI-compatible tool as before. Songe notices the tool result, the error and your next message after each model action, then teaches the model to see those coming when your agent is quiet. At publication the sous-labs/songe repository showed 120 commits, 679 stars and 60 forks. It installs with uv, pipx or Homebrew and needs Python 3.11 or later.

bash
uv tool install songe   # or: pipx install songe
songe init

What Songe trains, and what it does not

There are two learning paths, which the project calls Dreams. A Quick Dream takes a few minutes. It adds the preferences you stated or showed to the model's instructions rather than training the model, and it shows each new preference with a before/after where the answer changes. A Deep Dream takes an hour or more. It writes practice from your lessons and trains a small adapter on it.

The README describes the Deep Dream as on-policy distillation. The teacher is the model as it was, shown the lesson. The student is the same model with a small adapter, shown only the practice scene, and earlier skills are rehearsed so they stay. The repository topics include lora, and one Hacker News commenter summarized the design as training a LoRA adapter. The README itself only says "small adapter" and gives no rank or target modules.

Your real conversations are never trained on, according to the README. Songe reads each conversation for the moments that teach something: your corrections and stated rules, retries and tool errors. For each lesson your model writes short practice scenes in your agent's own tools, and training happens on those scenes.

Hardware support, and the missing memory figure

  • Training backends: Apple Silicon (MLX); NVIDIA and AMD (PyTorch).
  • Tested end to end: Apple Silicon and NVIDIA. AMD is listed as supported but not as tested.
  • No GPU: the machine still serves and records, but does not train.
  • Operating systems: data paths are given for macOS, Linux and Windows. The model-server setups tested end to end are LM Studio on macOS and vLLM on Linux.

One Hacker News commenter runs a small Qwen model through Ollama on an ordinary Windows PC, plus a backup model on a Hostinger VPS with no GPU. They asked whether Songe needs a GPU to be worth it. By the README, any machine without a GPU would serve and record but not train. Ollama is supported but not tested end to end, and Windows appears in the README only as a data path.

On memory, the README says only that before the first training Songe measures "how much your computer can learn at once", and it points to DESIGN.md. It gives no gigabyte figure, no guidance per model size and no statement about training on quantized base weights.

Base models come from your existing model server

Songe does not ship a base model. The init command finds your model server and agents and lists the server's models under Songe. The example output shows three models from LM Studio, with opencode set to default to granite-4.2-3b-MLX-4bit. Supported servers are LM Studio, vLLM, Ollama, llama.cpp and mlx-lm. The README is silent on which model architectures or sizes the training step supports.

Songe keeps the current learned version in a songe/ folder inside LM Studio's models folder. If you allow it at init, it replaces the loaded copy when a better version is ready. The README says your own models are never touched. It does not explain how the learned version is served on vLLM, Ollama, llama.cpp or mlx-lm.

How Songe schedules around foreground work

Songe runs as a background service that starts at login and sits at 127.0.0.1:7613 between your agent and your model server. With auto-dream on, Dreams start when your agent has been quiet for a while. The README says Songe runs only when your agent is quiet, memory is free and the battery is fine, and stops the moment you are back. It does not define the idle period, the free-memory threshold or the battery level.

There are manual controls as well:

The sleep command starts a Deep Dream now. Pause and resume stop and restart learning, and auto-dream can be switched on or off for each model. The status command with --training reports the resolved Deep Dream settings and where they come from. The README also says a Dream never just disappears: it keeps going on the dashboard page, or says why it stopped.

A judge gates every new version

At the moments you reacted to, the version in use and the new one each answer, and a judge compares what they do. The new version is used only if it does clearly better, does not change what already worked, and its answers stay healthy. The undo command goes back one version, and the README says one click goes back to any earlier version. The README does not name the judge model, its scoring rubric or the margin that counts as clearly better.

Commenters on Hacker News pressed on this gap. One asked for a transcribed example of the judgement process in the README, a worked case rather than a description. Another asked how much improvement to expect from training over a weekend. A reply argued that a training set of 100 good examples is typically considered a joke in LLM fine-tuning.

A different reply pointed to Hugging Face's harness-adapter fine-tunes as evidence that tuning small local models to a particular harness can produce gains. It linked a Qwen3.8-27B adapted for pi and said, anecdotally, that the base model fails many basic tool calls in pi and the adapter seems to mitigate that. The same commenter said they had no idea whether Songe could reproduce this. The sources report no improvement numbers for Songe. The gate limits what a weak run can change, but the sources do not say how often a run passes it.

Apache-2.0, no telemetry, and four changes to your machine

Songe is licensed under Apache-2.0. The README states there is no account, no telemetry and no cloud, that nothing ever leaves your machine, and that Songe never runs your tools. It lists four changes it makes to your machine:

  • A data folder: ~/Library/Application Support/songe on macOS, $XDG_DATA_HOME/songe on Linux, %LOCALAPPDATA%\songe on Windows.
  • A songe/ folder in LM Studio's models folder with the current learned version.
  • One provider entry in opencode and pi, with a backup.
  • A background service that starts at login.

The forget command deletes recorded conversations, and learned versions stay. Uninstall stops the service and restores your agent settings; adding --purge also deletes data and learned versions. The tested paths are narrow: LM Studio on macOS, vLLM on Linux, and opencode and pi as agents. The questions that decide whether Songe is worth the idle cycles are memory, judge quality and measured gains, and the README does not yet answer them.

Questions this raises

Does Songe need a GPU to train?

Yes, for training. Without a GPU the machine still serves and records conversations but does not train. Training runs on Apple Silicon through MLX or on NVIDIA and AMD GPUs through PyTorch.

How does Songe decide whether to use a newly trained version?

At the moments you reacted to, the current and new versions both answer and a judge compares them. The new version is used only if it does clearly better, does not change what already worked, and its answers stay healthy. The README does not name the judge model, its rubric or the margin required.

Does Songe train on my real conversations?

According to the README, no. It extracts lessons such as corrections, stated rules, retries and tool errors, has your model write short practice scenes from them, and trains on those scenes instead.

Spotted an error? Email samir.s.sengupta@gmail.com and I will correct it and date the change at the top of the note. How these notes are researched, drafted and checked is in the editorial policy.

More notes

Building something on this?

I ship production LLM, RAG and agentic systems for a living - the infrastructure behind the things these notes are about. Open to roles, contract work and research collaboration.