Local-first guides for running large language models on Apple Silicon with MLX/Metal plus model/client references.
| Engine | Focus | RAM | Notes |
|---|---|---|---|
| MLX | Highest-quality Qwen architectures with TurboQuant | 24GB+ | Best quality and compatibility with mlx-openai-server / Optiq stack |
- 📘
docs/servers/MLX.md– MLX setup, server workflows, and troubleshooting. - 📙
docs/servers/devcontainer.md– Run Qwen on macOS host and connect it from Orb/Docker Desktop devcontainers.
- 🔧
docs/models/Qwen.md– Qwen model lineup, TurboQuant cache, and inference presets. - 🔧
docs/clients/QwenCode.md– Point QwenCode at the Optiq/MLX endpoints. - 🔧
docs/clients/OpenCode.md– Configure OpenCode providers for the local runtimes. - 🔧
docs/clients/CCR.md– Claude Code Router routing notes for the local endpoints.
- 📊
docs/benchmarks/performance.md– Benchmark workflow for MLX vs MLX-Optiq.
- Choose a runtime. Use MLX when you need the latest Qwen models and long-context TurboQuant cache. The runbook starts with system requirements (Apple Silicon, macOS 13+, 16+ GB RAM).
- Follow the provider runbook. It walks you through installing dependencies, configuring models, and operating the OpenAI-compatible servers (
mlx-openai-server/mlx-openai-optiq-serveron 8000/8080). - Connect your client. Use the client runbooks above to point QwenCode, OpenCode, and Claude Code Router at the local endpoints once the server is running.
pyproject.tomldefines shared Python dependencies for both MLX servers; useuv synconce with a single.venv.- Use
uv run benchmark,uv run dataset, anduv run mlx-clifor local tooling commands. - Use
uv run mlx-openai-serveranduv run mlx-openai-optiq-serverto run or manage servers. src/servers/contains the server entrypoints.- MLX inference in this repo requires native macOS runtime access.
scripts/contains shell utilities for local setup tasks.