mlx-serve: native Zig LLM server for Apple Silicon - OpenAI + Anthropic + Ollama APIs, no Python #3796
ddalcu
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all - I've been building mlx-serve, a native Zig server that runs MLX-format models on Apple Silicon and exposes OpenAI-compatible, Anthropic-compatible, and Ollama-compatible HTTP APIs from a single binary.
Why Zig?
No Python runtime, no conda, no virtualenv. One binary you can drop anywhere:
What it does
/v1/chat/completions,/v1/completions,/v1/embeddings,/v1/images/generations,/v1/audio/speech,/v1/video/generations/api/chat,/api/generate,/api/embed- works with Raycast, Open WebUI, Obsidian, ollama-pythonPerformance
35%+ faster decode than LM Studio on Gemma 4 E4B 4-bit. Prefill matches mlx-lm (both are MLX-kernel-bound at the memory wall).
Links
Happy to answer questions - especially interested in feedback from anyone using mlx-lm directly on whether the API surface covers your use cases.
Beta Was this translation helpful? Give feedback.
All reactions