Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
Songe is a training engine for a locally served model that uses idle compute. It sits as a proxy on 127.0.0.1:7613 between an agent such as opencode or pi, or any OpenAI-compatible tool, and the user's model server. While the user works it records what happens after each of the model's actions: the tool result, the error and the next message. When the agent has been quiet, it runs a Dream: it reads the recorded conversations for moments that teach something, such as corrections, stated rules, retries and tool errors, has the model write short practice scenes in the agent's own tools, trains on those, checks the result and switches to the new version only if it does better. A Quick Dream takes a few minutes and adds the user's stated or demonstrated preferences to the model's instructions, with a before and after where an answer changes. A Deep Dream takes an hour or more and trains a small adapter, using on-policy distillation in which the model shown the lesson is the teacher and the same model with the adapter, shown only the scene, is the student; earlier skills are rehearsed so they stay. Real conversations are never trained on. A new version is used only if a judge finds it clearly better at the moments the user reacted to without changing what already worked, and one click goes back to an earlier version. Dreams run only when the agent is quiet, memory is free and the battery is fine. The README states there is no account, no telemetry and no cloud, and that Songe never runs the user's tools. Supported model servers are LM Studio, vLLM, Ollama, llama.cpp and mlx-lm, with training on Apple Silicon through MLX and on NVIDIA and AMD through PyTorch; end-to-end testing so far covers LM Studio on macOS and vLLM on Linux, on Apple Silicon and NVIDIA. Machines without a GPU can serve and record but not train. It installs with uv, pipx or Homebrew, requires Python 3.11 or later, and is licensed under Apache-2.0.