Sous Labs' Songe Trains Local Coding Models on Your Own Corrections
Songe lets a frontier model tutor your local LLM overnight while your GPU sits idle, baking new skills into LoRA weights that live on your machine.
Takeaways
- Songe is an open-source engine that fine-tunes your local LLM on idle compute
- Frontier distillation lets a hosted top-tier model teach your local student model overnight
- Plugs into LM Studio, Ollama, llama.cpp, mlx-lm or vLLM through any OpenAI-compatible agent
- Uses on-policy distillation with LoRA adapters, gated by a judge before any version swap
- Install via
uv tool install songe,pipx, or Homebrew tap, Apache-2.0 licensed - Only trains when agent is idle, battery is fine, and machine is cool
Sous Labs has released Songe, an open-source tool that uses idle computer time to personalize locally served language models. It sits between an OpenAI-compatible coding agent and its model server, records interactions, extracts corrections and preferences, and can train compact adapters after the agent goes idle. An adapter stores learned weight changes separately from the base model, making training and rollback cheaper than updating every model weight.
Songe’s default workflow keeps inference, conversation logs, and training on the user’s hardware. An optional feature called frontier distillation uses a high-capability hosted model as a teacher. After training, the local student can reproduce the learned behavior without calling that teacher during normal inference. Each later hosted teaching run can incur additional API charges.
A proxy with a training loop
Songe accepts OpenAI-compatible traffic, so it can fit between an existing agent and model server. Supported local serving options include LM Studio, Ollama, llama.cpp, mlx-lm, and vLLM.
Training support depends on the available hardware:
- Apple Silicon: MLX is the project’s primary and best-tested training backend.
- NVIDIA and AMD GPUs: Linux and Windows are supported, although the maintainers describe these paths as less tested.
- Machines without a compatible GPU: Songe can still serve models and record conversations, then move training to another machine.
Quick Dreams set rules; Deep Dreams train
Songe separates adaptation into two processes called Dreams:
| Mode | Typical duration | What it changes |
|---|---|---|
| Quick Dream | A few minutes | Extracts recent preferences, such as always use pnpm, and adds them to the model’s instructions. |
| Deep Dream | An hour or more | Creates practice tasks, trains an adapter, evaluates the candidate, and activates it only after it passes the project’s checks. |
Songe builds lessons from explicit rules, user corrections, retries, and tool errors. It then generates short practice scenes that use the agent’s tools. Training consumes those synthetic scenes, keeping raw conversation transcripts outside the direct training set.
How the teacher-student loop works
The project calls its training method on-policy distillation. In the local version, the current model receives both a practice scene and the extracted lesson, producing an answer that serves as the target. A copy of the model with a small adapter receives only the scene and learns to reproduce that answer. Earlier lessons are rehearsed alongside new material to reduce regressions.
With frontier distillation enabled, a hosted model replaces the local teacher and answers the generated practice questions with lesson context. The adapter learns from those answers, and subsequent inference runs on the local student without another teacher request.
Promotion requires a measurable win
Before activating an adapter, a model-based judge compares the current version with the candidate on interactions where the user corrected, retried, or otherwise reacted to an answer. Songe promotes the candidate only when it shows a clear improvement, preserves behavior that already worked, and passes response-quality checks.
Evaluation against a small personal history can be noisy, so a Deep Dream may finish without changing the active model. Songe keeps adapter versions separate, and songe undo MODEL restores the previous one.
Setup and daily controls
Installation on macOS or Linux requires Python 3.11 or later:
uv tool install songe
# or
pipx install songe
songe init
Homebrew users can install the package from sous-labs/tap. After songe init, the user selects a songe/... model in the agent. OpenCode switches its local default automatically.
songe openlaunches the browser dashboard.songe sleepstarts a Deep Dream immediately.songe undo MODELrestores the previous adapter version.songe models MODEL on|offcontrols automatic Dreams for a model.songe forgetdeletes recorded conversations while retaining learned weights.
Automatic training begins only while the agent is idle, enough memory is available, the battery has adequate charge, and the machine remains within its temperature limits. Songe pauses training as soon as the user resumes agent activity.
Privacy follows the teacher
A local model used as both teacher and student keeps the serving and training loop on the user’s machines. Conversation-derived lessons and generated practice data remain within that environment.
Frontier distillation changes the data boundary because the hosted provider receives the material included in each teaching request. Users should treat generated practice scenes, lesson context, and other request fields as data shared with that provider, then review its retention and training policies before enabling the feature.
The songe forget command removes stored conversation logs while preserving adapters. Behaviors learned from those conversations can therefore remain in the weights after the source records are deleted.
Fine-tuning moves into the workday
Songe turns fine-tuning from a separate dataset-and-cluster job into a continual feedback loop for developers already running local models. Corrections made during normal work can become versioned behavior, while synthetic practice tasks reduce the need to curate a training set by hand. The approach still depends on reliable evaluation, sufficient accelerator time, and enough interaction history to distinguish durable preferences from isolated corrections.
The project uses the Apache 2.0 license, allowing developers to inspect, modify, and redistribute the implementation. Sous Labs provides additional documentation on the project site.