cd /news/ai-infrastructure/show-hn-amazon-ergo-running-on-apple… · home › topics › ai-infrastructure › article
[ARTICLE · art-182116] src=github.com ↗ pub= topic=ai-infrastructure verified=true sentiment=↑ positive

Show HN: Amazon Ergo running on Apple M3 Ultras at up to 70 tok/sec

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.

key 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).

read3 min views2 publishedDec 4, 2026
Show HN: Amazon Ergo running on Apple M3 Ultras at up to 70 tok/sec
Image: Michielbdejong (auto-discovered)

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.

Four and six physical Macs have served both models. Read the measured rates for Python, prompt reuse, and transport latency. Performance results

git clone https://github.com/thesnarkitecht/pragmatik.git
cd pragmatik
python3.12 -m venv .venv
. .venv/bin/activate
python -m pip install -e .
pragmatik models
pragmatik status
pragmatik chat ernie 'What is 37 plus 48? Reply with just the number.'
pragmatik chat ergo

An unprompted chat opens a terminal conversation. For another provider address, pass --url http://localhost:8300/v1. The client requires only the Python standard library.

Model ID Default API base Total context budget
Amazon-FMR/Ergo http://127.0.0.1:8200/v1 100,000
ERNIE-5.5-Flash-Preview http://127.0.0.1:8199/v1 65,536

Install 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.

python3.12 -m venv ~/hexa-venv
. ~/hexa-venv/bin/activate
python -m pip install -e '.[ernie,ergo]'
mkdir -p ~/.config/pragmatik
H="$HOME/.config/pragmatik/hosts.json"
ernie-cluster discover --link-local-rdma --hosts 127.0.0.1 studio2 studio3 studio4 --output "$H"

Replace 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.

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 · DSpark checkpoint

pragmatik deploy ergo --hostfile "$H"
pragmatik serve ergo --hostfile "$H"

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

pragmatik deploy ernie --hostfile "$H"
pragmatik serve ernie --hostfile "$H"

Leave 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.

curl -sS http://127.0.0.1:8200/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"Amazon-FMR/Ergo","messages":[{"role":"user","content":"What is 37 plus 48?"}],"temperature":0,"max_tokens":64}'

The 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 · Model porting

── more in #ai-infrastructure 4 stories · sorted by recency
── more on @pragmatik 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-amazon-ergo-…] indexed:0 read:3min 2026-12-04 · —