
Songe 推出本地模型训练引擎,利用空闲算力在用户设备上持续学习
来源标题:A training engine for your local model, using your idle compute
Songe 是一款在本地运行的训练引擎,可在用户使用 opencode、pi 等兼容 OpenAI 的工具时,利用空闲算力根据工具结果、报错和用户纠正来训练本地模型。它提供快速和深度两种模式,新版本只有通过本地对话检查后才会启用,且支持一键回滚。整个过程无需账号、无遥测、数据不上云。
以下正文同步自 Hacker News,版权归原站所有,已转换为易读排版。
Install • How it works • Commands • Roadmap • Discord • Website
Use your local model as usual through opencode, pi or any OpenAI-compatible tool. While you work, Songe notices what happens after each of the model's actions: the tool result, the error, your next message. When your agent is quiet, it teaches the model to see those coming. A new version is used only if it passes its checks, and nothing ever leaves your machine.
Learns from how you work. Your corrections, stated preferences and the tools' errors become lessons for your own model.
Two kinds of Dreams. A Quick Dream adds your preferences to the model's instructions in minutes; a Deep Dream trains the model itself while you are away.
Safe by default. A new version is used only if it does better on your own conversations; one click goes back to any earlier version.
Stays out of the way. Runs only when your agent is quiet, memory is free and the battery is fine, and stops the moment you are back.
Private. No account, no telemetry, no cloud. Songe never runs your tools.
📥 Install
With uv or pipx (Python 3.11 or later):
uv tool install songe # or: pipx install songe songe init
No uv or pipx yet? Either installs in one line:
curl -LsSf https://astral.sh/uv/install.sh | sh # uv (or: brew install uv) brew install pipx # pipx on macOS (Debian/Ubuntu: sudo apt install pipx)
Both give Songe its own environment in a lasting place, which its background service needs.
brew tap sous-labs/tap brew trust sous-labs/tap # newer Homebrew asks this once brew install songe songe init
songe init finds your model server and your agents, shows what it will change, and asks once:
$ songe init
Models 3 from LM Studio, listed under Songe Agent opencode → Songe models · default granite-4.2-3b-MLX-4bit Agent pi → Songe models · choose one with /model Data ~/Library/Application Support/songe Service starts at login Learning new conversations · starts when idle Replace loaded copy when a better version is ready
Install? (Y/n)
Then pick a Songe model in your agent (opencode lists them as songe/songe/<name>), and work as usual.
pip install songe works inside a virtual environment; outside one, Homebrew's and most Linux distributions' Python refuse it.
You need a model served locally, and an agent:
Machines without a GPU still serve and record, but do not train. Tried Songe on another setup? Share the result on the testing board.
your agent ──► Songe (127.0.0.1:7613) ──► your model server │ records what happened ▼ when you are away: a Dream read lessons ─► practice ─► train ─► check ─► use only if better
Quick Dream Deep Dream
Takes a few minutes an hour or more
Does adds the preferences you stated or showed to the model's instructions writes practice from your lessons and trains a small adapter on it
You see each new preference, with a before/after where the answer changes why the new version was or was not used
Undo undo the Quick Dream, or remove one preference go back to any earlier version
With auto-dream on, Dreams start when your agent has been quiet for a while. Or press Dream in the dashboard (songe open). A Dream never just disappears: it keeps going on the page, or says why it stopped.
Before the first training Songe measures how much your computer can learn at once, and trains on what fits. See DESIGN.md.
Command What it does
songe what it is doing
songe status --training [MODEL] resolved Deep Dream settings and where they come from
songe open the dashboard in your browser
songe models each model, and whether it dreams on its own
songe models MODEL on|off auto-dream for one model
songe sleep start a Deep Dream now
songe undo MODEL go back one version
songe pause / songe resume stop and restart learning
songe doctor check the setup
songe forget delete recorded conversations (learned versions stay)
songe uninstall stop the service and restore your agent settings
What it changes on your machine
Its 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. Your own models are never touched.
One provider entry in opencode and pi, with a backup.
A background service that starts at login.
Upgrade and remove uv tool upgrade songe, pipx upgrade songe or brew upgrade songe: the service moves to the new version by itself in a quiet moment.
songe uninstall stops the service and restores your agent settings; add --purge to also delete its data and learned versions. Run it before brew uninstall songe.
Where Songe is going: ROADMAP.md. Ideas and bugs are welcome as issues. Questions and results from your nights go in Discord. To contribute, see CONTRIBUTING.md. Security reports: SECURITY.md.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。
