Songe and Idle-Compute LoRA: Why the Eval Gate Matters Most

Songe fine-tunes local coding LLMs on idle GPUs overnight, showing why trace cleaning and held-out eval gates matter more than LoRA training.

Songe and Idle-Compute LoRA: Why the Eval Gate Matters Most
In this essay

Songe (sous-labs/songe) is a new Apache-2.0 open-source engine that sits behind local coding agents, captures how you correct your model during the day, and fine-tunes a lightweight adapter on idle hardware overnight. Its most important design lesson is that continual local learning is primarily a data-hygiene and evaluation-gate problem: without filtering messy session logs and blocking regressions on held-out conversations, nightly training quickly degrades the model it is meant to improve.

Why Static Local Models Keep Repeating Yesterday's Mistakes

Running open-weight models locally gives developers privacy and predictable hardware costs, but those weights stay frozen at their release cutoff. Whenever a framework introduces breaking API changes or a repository enforces non-standard conventions, a static model stumbles over the same mistake at the start of every new session.

Developers usually patch around this amnesia by stuffing ever-longer AGENTS.md files and system prompts into the context window. That workaround burns prompt tokens on every turn, crowds out working memory, and still fails when an error only surfaces halfway through a multi-step tool loop.

Songe approaches the problem at the transport layer instead. Running songe init spins up an OpenAI-compatible loopback proxy at 127.0.0.1:7613/v1 between coding harnesses—such as opencode or pi—and local model servers like LM Studio, vLLM, Ollama, llama.cpp, or mlx-lm:

uv tool install songe
songe init

While you code, Songe never executes your tools, edits workspace files, or phones home to a cloud service. It simply proxies requests and logs what happens after each model action into a local SQLite database: the tool output, any compiler or runtime error, and your next corrective reply.

Quick Dreams, Deep Dreams, and Hindsight Cleaning

Optical glass prisms and brass calibration weights arranged on a dark slate surface under directional studio light

Once your coding agent goes quiet, system memory frees up, and battery conditions look safe, Songe schedules background learning cycles that it calls Dreams—pausing immediately the moment you touch the agent again.

It splits adaptation into two tiers based on urgency and compute cost:

  • Quick Dream: Runs in a few minutes, distilling explicit user preferences from recent chats and appending concise instructions to the system message without modifying weights.
  • Deep Dream: Runs for roughly an hour while you are away (or on demand via songe sleep), calibrating available GPU memory and training a LoRA adapter—defaulting to rank 64 with forward KL, reverse KL, or Jensen-Shannon divergence objectives—via MLX on Apple Silicon or PyTorch on NVIDIA and AMD GPUs.

Crucially, a Deep Dream never trains directly on raw conversation transcripts. Real debugging traces are noisy hindsight: aborted network calls, empty tool arguments, giant stack dumps, and terse user complaints. Training an adapter straight on those logs teaches the model to imitate chaotic transcripts rather than avoid the underlying mistake.

Before touching gradients, Songe runs a cleaning pass with the loaded local model, discarding zero-signal turns like interrupted transport steps and rewriting verified corrections into compact practice scenarios. In an early test by the authors, the 26B MoE model Inkling-2-Mini tried to render twelve colored orbs in Bevy 0.20, which postdated its training cutoff. Because Bevy expected hue in degrees rather than 0 to 1, every orb came out red. After one in-session correction and one overnight Deep Dream, all twelve colors rendered properly.

The Held-Out Gate Is the Real Product

Anyone can script an overnight LoRA job; keeping repeated fine-tunes from poisoning a base model over weeks of daily work is much harder. Narrow updates on small batches of recent mistakes routinely trigger overfitting or quiet regressions on tasks that already worked.

Songe guards against drift with an automated promotion gate. As conversations accumulate, the engine permanently assigns roughly 20 percent of logged sessions—sampled across feedback categories—to a held-out evaluation split, reserving the remaining 80 percent for training. After a Deep Dream finishes training a candidate adapter, Songe scores it against that held-out experience.

If the candidate's improvement fails to clear bootstrap noise, or if general performance regresses, Songe throws the new adapter away and leaves the active model untouched. Even when a version passes, songe undo keeps a one-step rollback path ready. To their credit, Songe's authors describe this gate as only a first attempt: proving that a personal fine-tune genuinely generalized a library rule rather than memorizing yesterday's phrasing remains an open research problem.

Hardware Ceilings and Runtime Plumbing

Songe is still early alpha software, and its current constraints draw a clear boundary around who benefits from local continual learning right now:

  1. VRAM and wall-clock time: Songe measures live memory before sizing a run—around 7 GB suffices for a 4B model, while a 4-bit Qwen3.8-27B or Inkling-2-Mini fits on a single 32 GB RTX 5090. Even on an RTX 5090, however, training a 27B model takes roughly 30 seconds per 4k-context practice example, pushing the training and verification cycle past an hour. CPU-only machines can record traces, but cannot train.
  2. Small-model extraction limits: Because the local model itself extracts lessons during the Dream phase, compact 3B-class models frequently miss subtle causal links in debugging sessions.
  3. Hot-swapping across servers: Training an adapter is only half the pipeline; getting diverse inference servers to load the new weights cleanly is messy. End-to-end validation currently covers LM Studio on macOS and vLLM on Linux, whereas GGUF-based servers like llama.cpp and Ollama require exporting or merging adapters carefully.

For developers running 24 GB to 32 GB workstations, Songe sketches a practical division of labor: cloud frontier models handle novel architecture, while a local model absorbs repository-specific API quirks overnight. Idle GPUs provide the gradient steps, but trace cleaning and held-out gates decide whether tomorrow's model wakes up sharper or merely confused.

Sources

  1. github.com
  2. github.com
  3. github.com
  4. github.com

AI-assisted · Reviewed by PKN

0

Responses

Loading comments…