Songe is an open-source tool released under Apache-2.0 that improves AI models already running on your own computer without sending data to the cloud. It learns from corrections, stated rules, retries and tool errors while you are away, using Quick Dreams for preferences and Deep Dreams for trained adapters. Training requires Apple Silicon, or an NVIDIA or AMD GPU.
A new LLM optimization tool called Songe aims to let people improve the AI models they run on their own computers, without sending any data to the cloud. It learns in the background while the user is away from the keyboard.
Songe works alongside a model that is already running locally. Users keep using their agent as usual, through opencode, pi or any other OpenAI-compatible tool. Songe sits in the middle, passing requests to the model server and watching what happens next. It notes the result of each action the model takes, any errors that come back, and the user's next message.
How does Songe learn from conversations?
The idea is to turn those moments into lessons. Songe reads each conversation for points that teach something, such as a user's correction, a stated rule, a retry or a tool error. It then uses those lessons to shape how the model behaves.
How a Dream works
What is the difference between a Quick Dream and a Deep Dream?
Songe runs what it calls Dreams, and it offers two kinds. A Quick Dream takes a few minutes and adds the preferences a user has stated or shown to the model's instructions. Users can see each new preference along with a before-and-after comparison showing where the answer changes. A Quick Dream can be undone, or a single preference can be removed.
A Deep Dream takes an hour or more. It writes short practice scenes based on the lessons, then trains a small adapter on those scenes. The project describes the process as on-policy distillation. The original model, shown the lesson, acts as the teacher, and the same model with the adapter, shown only the scene, acts as the student. Earlier skills are rehearsed during training so the model does not lose them, according to the project's documentation.
Before any new version is put to use, Songe checks it. At the moments a user reacted to, the current version and the new one each produce an answer, and a judge compares them. The new version is used only if it clearly does better, does not change answers that already worked and keeps its responses healthy. If it fails those checks, the current version stays in place.
Songe's developers say Dreams run only when the agent has been quiet, memory is free and the battery is in good shape, and they stop as soon as the user returns. With auto-dream turned on, Dreams start on their own after a period of inactivity. Users can also start one from the dashboard or with a terminal command.
Hardware and setup
Installation requires Python 3.11 or later. Users can install Songe with uv or pipx, or with Homebrew on macOS. Running the command songe init finds the local model server and supported agents, shows the changes it plans to make and asks for confirmation before making them. Those changes include a background service that starts at login and a single provider entry in opencode and pi, which is backed up first.
What hardware does Songe need to train models?
Training support varies by hardware. Songe trains on Apple Silicon using MLX, and on NVIDIA and AMD graphics cards using PyTorch. Machines without a GPU can still serve the model and record conversations, but they cannot train. The project lists LM Studio and vLLM on Linux as the setups it has tested end to end, with LM Studio on macOS and vLLM on Linux among them. Other supported model servers include Ollama, llama.cpp and mlx-lm.
Data stays local. Songe requires no account and collects no telemetry, and it does not run the user's tools. Learned versions are stored in a songe folder inside LM Studio's models folder, and the rest of the data lives in a standard application data directory for each operating system. Users can delete recorded conversations with songe forget while keeping learned versions. Running songe uninstall stops the service and restores the agent settings, and adding --purge also deletes the data and learned versions.
Songe is released under the Apache-2.0 license. The project's roadmap, contribution guide and security policy are published in its repository, and questions and test results are gathered on its Discord server.
Cet article a été rédigé avec l'assistance de l'IA.
News Factory APP - actualités agentiques pour booster votre SEO et AEO.