{"id":24026,"date":"2026-11-25T08:09:20","date_gmt":"2026-11-24T23:09:20","guid":{"rendered":"https:\/\/localmodelwatch.tsuchitsuchi.com\/2026\/11\/25\/songe-local-model-auto-training-engine\/"},"modified":"2026-11-25T08:09:20","modified_gmt":"2026-11-24T23:09:20","slug":"songe-local-model-auto-training-engine","status":"publish","type":"post","link":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/2026\/11\/25\/songe-local-model-auto-training-engine\/","title":{"rendered":"songe: Local Model Auto-Training Engine Using PC Idle Time"},"content":{"rendered":"<p><!-- lmw:facts --><\/p>\n<h2>At a Glance<\/h2>\n<div class=\"lmw-table-scroll\" tabindex=\"0\" style=\"overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;\">\n<table style=\"width:max-content;min-width:100%;border-collapse:collapse;\">\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Published<\/td>\n<td>2026-11-25<\/td>\n<\/tr>\n<tr>\n<td>License<\/td>\n<td>Apache-2.0<\/td>\n<\/tr>\n<tr>\n<td>Source type<\/td>\n<td>Primary source (the publisher itself)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><em>Values determined by this site&#8217;s code when the information was collected. Dates are JST.<\/em><\/p>\n<p><!-- \/lmw:facts --><\/p>\n<h2>Overview<\/h2>\n<p>sous-labs has released &#8220;songe&#8221;, 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.<\/p>\n<p>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.<\/p>\n<h2>Key Changes<\/h2>\n<h3>Short-term and Full-scale Model Training via Two Types of &#8220;Dream&#8221;<\/h3>\n<p>songe executes training processes called &#8220;Dream&#8221; when the agent is in an idle state. There are two types of Dream: &#8220;Quick Dream&#8221; and &#8220;Deep Dream&#8221;.<\/p>\n<p>Quick Dream completes in just a few minutes and adds user preferences and corrections to the model&#8217;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 <code>songe open<\/code> command and either manually starting a Dream or enabling automatic execution (auto-dream).<\/p>\n<h3>Safe Model Updates via On-Policy Distillation and Automated Validation<\/h3>\n<p>Deep Dream adopts &#8220;on-policy distillation&#8221;, 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.<\/p>\n<p>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 <code>songe undo MODEL<\/code> command. The design takes into consideration users who are concerned about performance degradation accompanying model updates.<\/p>\n<h3>Privacy Protection and Execution Control Based on Environment<\/h3>\n<p>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.<\/p>\n<p>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.<\/p>\n<h2>Supported Models and Hardware<\/h2>\n<p>The combinations of model servers required to use songe, compatible agents, and hardware environments supporting model training are as follows:<\/p>\n<h3>Supported Model Servers<\/h3>\n<p>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.<\/p>\n<h3>Supported Agents<\/h3>\n<p>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.<\/p>\n<h3>Supported Hardware and Training Environments<\/h3>\n<p>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.<\/p>\n<p>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.<\/p>\n<h2>How to Get It<\/h2>\n<p>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:<\/p>\n<h3>When Using uv or pipx<\/h3>\n<p>When installing using uv, run the following commands. This creates an isolated execution environment required for Songe.<\/p>\n<pre><code class=\"language-sh\">uv tool install songe\nsonge init\n<\/code><\/pre>\n<p>When using pipx, run the following commands:<\/p>\n<pre><code class=\"language-sh\">pipx install songe\nsonge init\n<\/code><\/pre>\n<p>If uv or pipx are not yet installed, you can install them in advance with the following commands:<\/p>\n<p>Installing uv:<\/p>\n<pre><code class=\"language-sh\">curl -LsSf https:\/\/astral.sh\/uv\/install.sh | sh\n<\/code><\/pre>\n<p>Installing pipx (for macOS Homebrew):<\/p>\n<pre><code class=\"language-sh\">brew install pipx\n<\/code><\/pre>\n<p><em>For Linux environments such as Debian or Ubuntu, use <code>sudo apt install pipx<\/code>.<\/em><\/p>\n<h3>When Using Homebrew on macOS<\/h3>\n<p>When installing using the Homebrew tap in a macOS environment, run the following commands:<\/p>\n<pre><code class=\"language-sh\">brew tap sous-labs\/tap\nbrew trust sous-labs\/tap\nbrew install songe\nsonge init\n<\/code><\/pre>\n<p>Running <code>songe init<\/code> 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 <code>songe\/songe\/&lt;name&gt;<\/code> in opencode) to begin working.<\/p>\n<h3>Version Update Procedure<\/h3>\n<p>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.<\/p>\n<p>When using uv:<\/p>\n<pre><code class=\"language-sh\">uv tool upgrade songe\n<\/code><\/pre>\n<p>When using pipx:<\/p>\n<pre><code class=\"language-sh\">pipx upgrade songe\n<\/code><\/pre>\n<p>When using Homebrew:<\/p>\n<pre><code class=\"language-sh\">brew upgrade songe\n<\/code><\/pre>\n<p>To uninstall, run the <code>songe uninstall<\/code> 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 <code>songe uninstall --purge<\/code> with the <code>--purge<\/code> option.<\/p>\n<p><!-- lmw:next-steps --><\/p>\n<h2>What to Read Next<\/h2>\n<ul>\n<li><strong>Engines mentioned in this article<\/strong> \u2192 <a href=\"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/engine-vllm-en\/\">vLLM<\/a><\/li>\n<\/ul>\n<p><!-- \/lmw:next-steps --><\/p>\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/sous-labs\/songe\">sous-labs\/songe<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>sous-labs has released songe, an open-source engine that automatically trains local models using PC idle time and agent tools.<\/p>\n","protected":false},"author":1,"featured_media":24025,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[505,977,507,5711,5713,1547,592],"class_list":["post-24026","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engines-and-tools","tag-apple-silicon-en","tag-mlx-en","tag-pytorch-en","tag-songe-en","tag-sous-labs-en","tag-verified","tag-vllm-en"],"lang":"en","translations":{"en":24026,"ja":24024},"_links":{"self":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/24026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/comments?post=24026"}],"version-history":[{"count":0,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/posts\/24026\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media\/24025"}],"wp:attachment":[{"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/media?parent=24026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/categories?post=24026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/localmodelwatch.tsuchitsuchi.com\/en\/wp-json\/wp\/v2\/tags?post=24026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}