Prerequisites
- A Mac with Apple silicon (M-series). Unified memory decides the training memory profile: 16 GB works, more is faster.
- Python 3.10+ and the SDK:
pip install runapprentice - A CSV of examples with
input,outputcolumns. Rows you pass with--dataare treated as gold: no account or review step.
Hand it to your agent
Working in Claude Code, Codex, or Copilot CLI? Install the skill and hand over the whole path:Train
- Preflight checks the dataset, model, and memory profile.
mlx_lm lorafine-tunesmlx-community/Qwen3.5-4B-OptiQ-4bitwith a LoRA adapter on your gold rows.- A held-out slice is scored before and after, so the report shows a real delta, not a feeling.
- The adapter, its SHA-256, the mlx-lm version, and the scores land in a local run report.
Serve
mlx-lm ships an OpenAI-compatible HTTP server. Point it at the base model plus your trained adapter:OPENAI_BASE_URL back.