Songe: open-source engine that fine-tunes your local model on your traces while your machine is idle

Reddit r/LocalLLaMA Tools

Summary

Songe is an open-source tool that fine-tunes your local model on your own agent traces while your machine is idle, using a capture-extract-dream-gate pipeline with LoRA adapters and on-policy self-distillation, keeping everything fully local with no telemetry or cloud.

We just open-sourced Songe, a tool that fine-tunes your local model on your own traces while your machine sits idle. We call this "dreaming": while you're away, the model goes over what went wrong during the day and learns from it. Everything stays local: no account, no telemetry, no cloud. What it does Songe sits between your agent (opencode, pi, or any OpenAI-compatible tool) and your model server. After each model action, it records what happened next: the tool result, the error, your follow-up message. When your agent has been idle for a while, it uses those signals to teach the model what you actually wanted. How it works Capture: a local proxy in front of your server (LM Studio, Ollama, vLLM, llama.cpp, mlx-lm) logs the outcome of each model action. Extract: it pulls out the lessons (corrections, rules you stated, tool errors) and turns them into practice scenarios. Your raw chats are never trained on directly. Dream: when you're idle, it trains a small LoRA adapter using on-policy self-distillation, so the model learns from its own improved outputs rather than from imitating your transcripts. Gate: a new adapter only goes live if it beats the current one on held-out examples without regressing on what already worked. Otherwise it's discarded. songe undo rolls back anytime. Early result We asked Inkling-2-Mini to light a room with 12 different-colored orbs in Bevy 0.20, which is newer than its training data. Every orb came out red: it passed hue as 0–1, but Bevy expects degrees. We corrected it once. After one night of dreaming, all 12 colors render correctly. Requirements Models: anything your server can run. Training uses MLX on Apple Silicon and PyTorch on NVIDIA/AMD. Memory: before the first training run, Songe measures what your machine can handle and sizes the training to fit. Reference points: 4B model: ~7 GB Qwen3.8-27B: single RTX 5090 (32 GB, 4-bit, with memory savers) Inkling-2-Mini (26B MoE): single RTX 5090 No GPU: it still serves and records, but doesn't train. Limitations It's early. End-to-end validation so far covers LM Studio on macOS and vLLM on Linux. Ollama, llama.cpp and mlx-lm are supported but less tested. Windows passes our test suite but hasn't been tested end to end. Big models are slow. A 27B on an RTX 5090 trains at about 30 s per practice example (4k context), so the training step takes under an hour. The checks after it add more time, and large MoE models are slower still. Single GPU only. Lesson quality depends on the model. Small models (~3B) miss many of the lessons in your conversations. Evaluating personal fine-tunes is hard, and our held-out gate is a first attempt. That last point is where we'd most like feedback: how would you tell whether a personal fine-tune is actually helping vs. just overfitting to recent sessions? Happy to answer anything in the comments! Install: pip install songe && songe init (also via uv tool install songe or brew install sous-labs/tap/songe) GitHub: github.com/sous-labs/songe Discord: https://discord.gg/cBEywVkXjY
Original Article

Similar Articles

Light-Heart-Labs/DreamServer

GitHub Trending (daily)

Dream Server is an open-source, local-first AI stack that allows users to deploy LLM inference, chat, voice, agents, RAG, image generation, and privacy tools on their own hardware with a single command, eliminating reliance on cloud providers.