{"slug": "show-hn-amazon-ergo-running-on-apple-m3-ultras-at-up-to-70-tok-sec", "title": "Show HN: Amazon Ergo running on Apple M3 Ultras at up to 70 tok/sec", "summary": "Pragmatik released an open-source inference stack that serves Amazon Ergo and Baidu ERNIE 5.5 Flash across four to six physical Apple Macs over Thunderbolt RDMA, reaching up to 70 tokens per second on Apple M3 Ultra machines. The system combines custom Metal kernels, tensor-parallel inference and verified speculative decoding behind an OpenAI-compatible HTTP API, with Ergo given a 100,000-token context budget and ERNIE 5.5 Flash a 65,536-token budget. The client requires only the Python standard library, and the tested checkpoints are Ergo revision 6c3135eb42c8ef2ae46eb693e1a503f57432ff26 and DSpark revision dd6ea892381880c614a3b6167efb37ebd6dc781f.", "body_md": "Pragmatik serves Amazon Ergo and Baidu ERNIE 5.5 Flash on Apple Silicon over Thunderbolt RDMA. It combines custom Metal kernels, tensor-parallel inference and verified speculative decoding behind an OpenAI-compatible HTTP API. The CLI can also talk to independently installed model adapters.\n\nFour and six physical Macs have served both models. Read the measured rates for Python, prompt reuse, and transport latency. [Performance results](https://github.com/thesnarkitecht/pragmatik/blob/main/docs/PERFORMANCE.md)\n\n```\ngit clone https://github.com/thesnarkitecht/pragmatik.git\ncd pragmatik\npython3.12 -m venv .venv\n. .venv/bin/activate\npython -m pip install -e .\npragmatik models\npragmatik status\npragmatik chat ernie 'What is 37 plus 48? Reply with just the number.'\npragmatik chat ergo\n```\n\nAn unprompted chat opens a terminal conversation. For another provider address, pass `--url http://localhost:8300/v1`. The client requires only the Python standard library.\n\n| Model ID | Default API base | Total context budget | \n|---|---|---|\n| `Amazon-FMR/Ergo` | `http://127.0.0.1:8200/v1` | 100,000 | \n| `ERNIE-5.5-Flash-Preview` | `http://127.0.0.1:8199/v1` | 65,536 | \n\nInstall Xcode Command Line Tools, enable Thunderbolt RDMA, and configure noninteractive SSH from the controller to each worker. Install Rust on the build host. Use the same arm64 Python 3.12 and MLX version on every Mac. Install the engine in the worker environment expected by the launchers.\n\n```\npython3.12 -m venv ~/hexa-venv\n. ~/hexa-venv/bin/activate\npython -m pip install -e '.[ernie,ergo]'\nmkdir -p ~/.config/pragmatik\nH=\"$HOME/.config/pragmatik/hosts.json\"\nernie-cluster discover --link-local-rdma --hosts 127.0.0.1 studio2 studio3 studio4 --output \"$H\"\n```\n\nReplace the three example aliases with your workers' SSH aliases. Add the other two aliases for a six-Mac hostfile. Use separate hostfiles for different layouts. The first entry is the controller. Keep each rank's weights aligned with the order written by discovery.\n\n**Ergo** needs the original base checkpoint at `~/models/Ergo` on each worker and the DSpark checkpoint at `~/models/Ergo-dspark` on the controller. The deployment command verifies the draft file and builds the matching rank shards. The tested revisions are `6c3135eb42c8ef2ae46eb693e1a503f57432ff26` for the base and `dd6ea892381880c614a3b6167efb37ebd6dc781f` for DSpark. Obtain them from the model publishers. [Ergo checkpoint](https://huggingface.co/Amazon-FMR/Ergo) · [DSpark checkpoint](https://huggingface.co/Amazon-FMR/Ergo-dspark)\n\n```\npragmatik deploy ergo --hostfile \"$H\"\npragmatik serve ergo --hostfile \"$H\"\n```\n\n**ERNIE** uses the original checkpoint or prepared model and draft shards. Place its tokenizer at `~/ernie-mlx/tokenizer.json` on the controller. To prepare a native shard, run `ernie-cluster prepare --source ~/models/ERNIE-5.5-Flash-Preview --root ~/models --size 4 --rank 0` on the worker holding rank zero. Use that worker's rank and the actual cluster size on each other Mac. Then stage and serve the verified runtime from the controller. [ERNIE checkpoint](https://huggingface.co/baidu/ERNIE-5.5-Flash-Preview)\n\n```\npragmatik deploy ernie --hostfile \"$H\"\npragmatik serve ernie --hostfile \"$H\"\n```\n\nLeave the serve command running and use another terminal for requests. Both engines serve model discovery, chat completions, raw completions and streaming on loopback. The optional ANE projection requires ANEForge on the workers that execute it. GPU drafting is the default.\n\n```\ncurl -sS http://127.0.0.1:8200/v1/chat/completions \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"model\":\"Amazon-FMR/Ergo\",\"messages\":[{\"role\":\"user\",\"content\":\"What is 37 plus 48?\"}],\"temperature\":0,\"max_tokens\":64}'\n```\n\nThe distribution contains source for native workers and builds the release on the controller. The HTTP client is available after a base install. Install model extras on serving hosts. For a new architecture, start with the adapter contract and the model-porting skill. [Contributing](https://github.com/thesnarkitecht/pragmatik/blob/main/CONTRIBUTING.md) · [Model porting](https://github.com/thesnarkitecht/pragmatik/blob/main/skills/pragmatik-model-port/SKILL.md)", "url": "https://wpnews.pro/news/show-hn-amazon-ergo-running-on-apple-m3-ultras-at-up-to-70-tok-sec", "canonical_source": "https://github.com/thesnarkitecht/pragmatik", "published_at": "2026-12-04 22:06:00+00:00", "updated_at": "2026-12-04 22:15:54.023534+00:00", "lang": "en", "topics": ["ai-infrastructure", "large-language-models", "ai-tools", "developer-tools"], "entities": ["Pragmatik", "Amazon Ergo", "Baidu ERNIE 5.5 Flash", "Apple M3 Ultra", "Thunderbolt RDMA", "Metal", "MLX", "DSpark"], "also_reported_by": [], "takeaway": "Pragmatik serves Amazon Ergo and Baidu ERNIE 5.5 Flash across four to six Macs over Thunderbolt RDMA at up to 70 tok/sec, exposing an OpenAI-compatible API on loopback ports 8200 (Ergo, 100,000-token context) and 8199 (ERNIE, 65,536-token context).", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-amazon-ergo-running-on-apple-m3-ultras-at-up-to-70-tok-sec", "markdown": "https://wpnews.pro/news/show-hn-amazon-ergo-running-on-apple-m3-ultras-at-up-to-70-tok-sec.md", "text": "https://wpnews.pro/news/show-hn-amazon-ergo-running-on-apple-m3-ultras-at-up-to-70-tok-sec.txt", "jsonld": "https://wpnews.pro/news/show-hn-amazon-ergo-running-on-apple-m3-ultras-at-up-to-70-tok-sec.jsonld"}}