songe: Local Model Auto-Training Engine Using PC Idle Time

At a Glance
| Item | Value |
|---|---|
| Published | 2026-11-25 |
| License | Apache-2.0 |
| Source type | Primary source (the publisher itself) |
Values determined by this site’s code when the information was collected. Dates are JST.
Overview
sous-labs has released “songe", an engine that automatically trains local models by utilizing the computing resources of a PC while it is idle. Developed in Python under the Apache-2.0 license, songe is an open-source tool that works in coordination with agent tools like opencode and pi, as well as OpenAI-compatible tools.
A key feature of songe is its ability to automatically analyze tool errors and user corrections or instructions during times when the user is not actively working, thereby improving the performance of local models. Because tuning is carried out safely within the local environment without sending data externally, it serves as a useful tool for users who routinely utilize local agents.
Key Changes
Short-term and Full-scale Model Training via Two Types of “Dream"
songe executes training processes called “Dream" when the agent is in an idle state. There are two types of Dream: “Quick Dream" and “Deep Dream".
Quick Dream completes in just a few minutes and adds user preferences and corrections to the model’s system instructions. On the other hand, Deep Dream takes over an hour to train, creating practice scenarios from user conversations to train the core model (a small adapter). This impacts users who want to continuously optimize local models while utilizing coding agents such as opencode and pi. As a preliminary setting, the tool is used by opening the dashboard with the songe open command and either manually starting a Dream or enabling automatic execution (auto-dream).
Safe Model Updates via On-Policy Distillation and Automated Validation
Deep Dream adopts “on-policy distillation", where training is conducted using the existing model as the teacher and the model with the small adapter applied as the student. After training completes, both the old and new versions are prompted to answer past conversational points where the user previously reacted, and their performance is evaluated.
Only when the evaluation clearly shows that the new version is superior, preserves normal responses without breaking existing behavior, and maintains proper functionality is the model automatically replaced with the new version. Even in the unlikely event of an issue with the training results, users can instantly restore the previous version by running the songe undo MODEL command. The design takes into consideration users who are concerned about performance degradation accompanying model updates.
Privacy Protection and Execution Control Based on Environment
Songe operates entirely within a local environment, performing no account creation, telemetry transmission, or cloud communication whatsoever. Furthermore, it does not run while the user is operating the agent, when there is insufficient free memory, or when battery conditions are poor, and it immediately halts processing once the user resumes operation.
Hardware support for the training functionality includes Apple Silicon (MLX) and NVIDIA / AMD (PyTorch). Even in environments without a GPU, model serving and conversation logging functions will operate, though the training process itself will not run. This specification directly addresses privacy-conscious users and those working in battery-powered environments such as laptops. To get started, users need a compatible model server (LM Studio, vLLM, Ollama, llama.cpp, mlx-lm, etc.) alongside an agent, as well as a Python 3.11 or higher environment.
Supported Models and Hardware
The combinations of model servers required to use songe, compatible agents, and hardware environments supporting model training are as follows:
Supported Model Servers
For servers serving models locally, LM Studio, vLLM, Ollama, llama.cpp, and mlx-lm are supported. Among these, end-to-end operational testing has been completed for LM Studio running on macOS and vLLM running on Linux.
Supported Agents
opencode and pi are set up as targets by default. In addition, it is possible to use songe in combination with any tools or agents that are compatible with the OpenAI API.
Supported Hardware and Training Environments
For model training functionality, Apple Silicon (MLX) and NVIDIA / AMD GPUs (PyTorch) are supported. End-to-end operational testing has been conducted in Apple Silicon and NVIDIA environments.
Note that even on machines without a GPU, it is possible to serve models via model servers or record conversation data, but automatic model training (Dream) processes cannot be executed.
How to Get It
songe is installed and updated using uv, pipx, or macOS Homebrew in a Python 3.11 or higher environment. The steps for each environment are as follows:
When Using uv or pipx
When installing using uv, run the following commands. This creates an isolated execution environment required for Songe.
uv tool install songe
songe init
When using pipx, run the following commands:
pipx install songe
songe init
If uv or pipx are not yet installed, you can install them in advance with the following commands:
Installing uv:
curl -LsSf https://astral.sh/uv/install.sh | sh
Installing pipx (for macOS Homebrew):
brew install pipx
For Linux environments such as Debian or Ubuntu, use sudo apt install pipx.
When Using Homebrew on macOS
When installing using the Homebrew tap in a macOS environment, run the following commands:
brew tap sous-labs/tap
brew trust sous-labs/tap
brew install songe
songe init
Running songe init during installation automatically detects model servers and agents in your local environment. The configuration details will be displayed; check them and follow the on-screen instructions to complete the installation. After setup is complete, select the Songe model on the agent side (displayed as songe/songe/<name> in opencode) to begin working.
Version Update Procedure
To update an already installed version of songe to the latest version, run the appropriate command below according to the tool used during installation. The background service will automatically transition to the new version during an idle state.
When using uv:
uv tool upgrade songe
When using pipx:
pipx upgrade songe
When using Homebrew:
brew upgrade songe
To uninstall, run the songe uninstall command, which stops the service and automatically restores agent settings to their original state. If you wish to completely delete everything including data and trained models, run songe uninstall --purge with the --purge option.
What to Read Next
- Engines mentioned in this article → vLLM

