Who it is forA Python developer building a local assistant or tool on Apple Silicon.
The problemCalling a separate server adds moving parts when you only need inference inside one app.
The outcomeYour app loading an Edge0 model with AutoEngine, running chat requests and releasing memory cleanly.
What you need first
- Python 3.12 on macOS with Apple Silicon for the Python framework (MLX)
- Disk space for the model checkpoints from Hugging Face or ModelScope
- Native apps for macOS, iOS, Android and Windows live in their own directories
Steps
- Install edge0 in your environment
- Load a model with
AutoEngine.from_pretrained("/path/to/model"); the tier is detected automatically - Build a ChatRequest with your messages and max_tokens
- Run it with ChatSession and decode the tokens
- Call
engine.close()to release mmaps and the expert cache
Prompt for your agent
Write a small Python CLI with Edge0-AI/Edge0's AutoEngine and ChatSession that answers questions about files in <folder>, streams the answer, and always closes the engine on exit.
Caveat. This card is written from the Edge0-AI/Edge0 README, not from a test run by Deduped. Before you start, make sure you have Python 3.12 on macOS with Apple Silicon for the Python framework. Check the repo for newer instructions before you rely on these steps.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Edge0-AI/Edge0 and "Embed a streaming MoE engine in your Python app"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer