{"slug": "show-hn-nuketorch-run-qwen3-6-35b-at-517-tok-s-on-a-macbook-pro", "title": "Show HN: NukeTorch – Run Qwen3.6 35B at 517 tok/s on a MacBook Pro", "summary": "NukeTorch 1.0.5, a C++ and Metal tensor engine released by the NukeTorch project, decodes Qwen3.6-35B-A3B-4bit-DFlash2 at 517.5 tok/s on prompt A (5 coding prompts) on a MacBook Pro, according to the project's benchmark report comparing four engines. NukeTorch measured 482.7 to 597.5 tok/s across prompts A to D at one request at a time and 821.8 tok/s total with 8 concurrent users, which the report puts at 3.9× to 6.8× faster than mlx-lm 0.32.2, 2.9× to 5.5× faster than llama.cpp 1.0.0 build 12359, and 1.0× to 1.4× faster than oMLX 0.8.0rc1 Splash + DFlash2. The report also records 24.69 to 24.77 GB peak RAM increase at one request and 7.62 to 9.42 tokens per joule, with NukeTorch using 15% to 36% more RAM than mlx-lm but 10% to 24% less than llama.cpp.", "body_md": "517.5 tok/s: prompt A (5 coding prompts), from the benchmark report below.\n\nC++ and Metal Tensor Engine serves text and image for inference and training.\n\n**[Video demo](https://youtu.be/tj_VcOJ0VKk)** · [Detailed benchmark report](https://github.com/NukeTorch/Qwen3.6-35B/blob/main/benchmark/qwen36_35b_four_engines_M5.pdf)\n\nInstall with `curl`, not a browser.\n\n```\ncurl -fsSL https://github.com/NukeTorch/nuketorch/releases/download/1.0.5/install.sh | sh\n```\n\nGet the model and its draft model from Hugging Face ([model card](https://huggingface.co/NukeTorch/Qwen3.6-35B-A3B-4bit-DFlash2)):\n\nThe first line gives you the `hf` command (or: `brew install hf`).\n\n```\npython3 -m venv ~/NukeTorch/hf-env && ~/NukeTorch/hf-env/bin/pip install -U huggingface_hub\n~/NukeTorch/hf-env/bin/hf download NukeTorch/Qwen3.6-35B-A3B-4bit-DFlash2 --local-dir ~/NukeTorch/models/Qwen3.6-35B-A3B-4bit-DFlash2\n```\n\nRun it:\n\n```\ncd ~/NukeTorch/nuketorch-1.0.5-macos-arm64\n./nuketorch-serve http \\\n  --model ~/NukeTorch/models/Qwen3.6-35B-A3B-4bit-DFlash2/Qwen3.6-35B-A3B-4bit \\\n  --draft-model ~/NukeTorch/models/Qwen3.6-35B-A3B-4bit-DFlash2/Qwen3.6-35B-A3B-DFlash2 \\\n  --port 8080\n```\n\nThe server prints `READY` when it can answer. Then:\n\n```\ncurl http://127.0.0.1:8080/v1/chat/completions -H 'Content-Type: application/json' \\\n  -d '{\"messages\":[{\"role\":\"user\",\"content\":\"Write a Python function that checks whether a string is a palindrome.\"}]}'\n```\n\nAt one request at a time, NukeTorch decodes 482.7 to 597.5 tok/s on prompts A to D. With 8 users at once NukeTorch generates 821.8 tok/s in total.\n\n**Table 1. Speed, RAM and energy**\n\n|  | NukeTorch | mlx-lm 0.32.2 | llama.cpp 1.0.0 build 12359 | oMLX 0.8.0rc1 Splash + DFlash2 | \n|---|---|---|---|---|\n| **Speed (tok/s)** |  |  |  |  | \n| Prompt A (5 coding prompts) | **517.5** | 126.8 | 107.5 | 387.3 | \n| Prompt B (count to 100) | **597.5** | 127.8 | 108.3 | 505.4 | \n| Prompt C (short story) | **482.7** | 125.0 | 106.7 | 368.0 | \n| Prompt D (coding-15) | **520.4** | 120.0 | 105.7 | 377.7 | \n| 2 users at once | **533.6** | 120.2 | 162.4 | 524.0 | \n| 4 users at once | **679.3** | 120.0 | 234.4 | 661.5 | \n| 8 users at once | **821.8** | 120.4 | *N/A | *N/A | \n| **RAM (peak increase, GB)** |  |  |  |  | \n| Prompt A | **24.77** | 20.74 | 31.48 | 24.56 | \n| Prompt B | **24.75** | 20.95 | 31.84 | 24.51 | \n| Prompt C | **24.70** | 21.26 | 32.01 | 25.60 | \n| Prompt D | **24.69** | 21.40 | 32.44 | 25.67 | \n| 2 users at once | **28.09** | 20.58 | 31.10 | 23.81 | \n| 4 users at once | **27.67** | 20.54 | 31.36 | 24.10 | \n| 8 users at once | **27.69** | 21.22 | *N/A | *N/A | \n| **Power (tok/J, tokens per joule)** |  |  |  |  | \n| Prompt A | **8.03** | 4.02 | 2.82 | 7.27 | \n| Prompt B | **9.42** | 4.19 | 2.91 | 10.04 | \n| Prompt C | **7.62** | 4.03 | 2.80 | 7.22 | \n| Prompt D | **8.07** | 3.92 | 2.85 | 7.09 | \n| 2 users at once | **8.62** | 3.80 | 3.55 | 9.22 | \n| 4 users at once | **9.63** | 3.79 | 4.69 | 13.23 | \n| 8 users at once | **11.27** | 3.90 | *N/A | *N/A | \n\n*N/A: not supported at the engine's default settings (it serves 4 requests at once).\n\n**Table 2. NukeTorch against the other engines** (the range over every row of Table 1 where both engines have a number)\n\n| NukeTorch vs | mlx-lm | llama.cpp | oMLX | \n|---|---|---|---|\n| Inference speed | 3.9× to 6.8× faster | 2.9× to 5.5× faster | 1.0× to 1.4× faster | \n| RAM | 15% to 36% more | 10% to 24% less | 4% less to 18% more | \n| Power saving (energy per token) | 47% to 65% saving | 51% to 69% saving | 37% more power to 12% saving | \n\n**How it runs.**\n\n- **Prompts.** A: the five NukeTorch demo coding prompts, 3 passes (15 requests). B: count to 100, 3 requests. C: short story, 3 requests. D: one everyday coding prompt (coding-15), 3 requests. Prompts A to D are one request at a time, capped at 8,192 output tokens.\n- **Users at once.** The 16 coding prompts in rounds of 2, 4 or 8 requests until every prompt has been sent, 32 requests per level, 1,024 output tokens per request. NukeTorch's users runs used a server started with`--users 8` .\n- **Models.** The mlx-community 4-bit model for NukeTorch, mlx-lm and oMLX; the ggml-org Q4_K_M GGUF for llama.cpp. Server default sampling for every engine.\n- **Run-to-run spread.** The tables show one run of each test; every run is kept in the report's records. NukeTorch runs below a GPU-clock floor were repeated; the other engines' runs were not checked for it. Details in the report. Let the Mac rest before you measure.\n\nQwen3.6-35B-A3B 4-bit on one Apple M5 Max (18 cores, 48 GB, macOS 26.7.2). Every engine runs as its maker ships it: latest release, maker's install, maker's start command, default settings, except that NukeTorch's users rows used `--users 8`. mlx-lm and llama.cpp ran without a draft model. oMLX runs with its Splash engine turned on, as oMLX's documentation describes, with the DFlash2 draft model. NukeTorch runs with its DFlash2 draft model. tok/s is decode speed. RAM is the increase in the whole Mac's memory used. tok/J is tokens per joule of chip power (CPU + GPU + ANE), not wall power.\n\nThe full report has power per test, the method, versions and the Mac's conditions: [benchmark/qwen36_35b_four_engines_M5.pdf](https://github.com/NukeTorch/Qwen3.6-35B/blob/main/benchmark/qwen36_35b_four_engines_M5.pdf).\n\nNukeTorch Enterprise runs one model across machines by pipeline parallelism. It is by invitation. Ask for an evaluation license:\n\n**Unfolding.** A tensor's values are fixed; how they are stored and read is a choice, and changing that choice is unfolding. On one Apple M4 Max in our own runtime, expanding a four-bit model's weights to 16 bits used 2.4× the memory for a 1.14× speedup, while unfolding the same codes in the same bytes gave 1.27×. A control showed that most of that gain came from the form of the kernel's loop, not the order, and that the weight bytes a computation reads set a floor that no order lowers; three large models already decode at 81 to 90% of it in that runtime. Paper: [Unfolding: Theory and Principles](https://nuketorch.ai/papers/unfolding-theory-and-principles.pdf).\n\n**Shaping.** A matrix product has three axes (rows, output width, reduction length) and an order in time, yet devices are mostly judged by one-axis indicators such as busy time. The paper measured the axes one at a time on Apple's Neural Engine, on an M4 Max and an M5 Max. Splitting a long reduction length into slices raised a long-reduction layer pair 3.40× and 3.12× there. Paper: [Understanding the Shapes of Neural Simulation](https://nuketorch.ai/papers/understanding-the-shapes-of-neural-simulation.pdf).\n\nThe papers report their own measurements. They do not describe NukeTorch's code and do not explain the speeds in the tables above.\n\nWe recommend an M5 Max with 48 GB of RAM. We optimized for the Neural Accelerator of Apple silicon. This release runs on the M5 Max and the M4 Max; support for M3 series chips is coming. On an M4 Max with 128 GB it gave 388.7 tok/s on the SPEED-Bench coding prompts. The model needs about 27 GB of free memory. It needs macOS 27.2 or later.\n\n- `GET /v1/models` shows the model name your client should use.\n- Several users: add `--users N` (1 to 8). The default is 1, which is the fastest for one person. Each extra user costs about 1.4 GB (36.5 GB with`--users 8` ). A server started for several users is slower for one user than one started with`--users 1` .\n- Images: send them inline as an `image_url` part holding a`data:` address (PNG, JPEG or WebP), 1 to 8 per request. Images given by web address are refused.\n- Streaming and function tools (`tool_choice`` auto` or`none` ) are supported. Forced tool choice, strict schemas and`response_format` are not.\n- Options: `--host` ,`--port` ,`--max-context` (default 32768),`--max-memory GB` ,`--prefix-cache-gb` ,`--users` .\n\nThis repeats NukeTorch's speed on our prompts; Table 1 itself, with the other engines, is the `materials` kit.\n\n`bench` runs the model's standard suite; `report` shows your run beside ours.\n\n```\ncd ~/NukeTorch/nuketorch-1.0.5-macos-arm64\n./nuketorch-serve bench ~/NukeTorch/models/Qwen3.6-35B-A3B-4bit-DFlash2\n./nuketorch-serve report\n```\n\nThe SPEED-Bench coding prompts are NVIDIA's and are not in the package. This command downloads NVIDIA's own file from Hugging Face (`nvidia/SPEED-Bench`) at a pinned revision, checks it against hashes stored in the program, then runs that suite:\n\n```\n./nuketorch-serve bench --fetch speed-bench\n./nuketorch-serve bench ~/NukeTorch/models/Qwen3.6-35B-A3B-4bit-DFlash2 --suite speed-bench\n```\n\nOther commands: `bench --list` (what each test does), `bench --inputs` (every stored input with its license and source), `bench MODEL --suite quick` (a check in minutes; no golden to compare), `selftest` (the model kernels, about 1 second, no model needed), `materials DIR` (the scripts and report of our comparison with other engines).\n\nBefore you measure: turn off Spotlight indexing (`sudo mdutil -a -i off`; turn it back on with `sudo mdutil -a -i on`), turn off Siri, on a MacBook Pro plug in power and choose High Power, close other apps, and let the Mac cool down: rest it 5 minutes before a run and 5 minutes between tests run back to back.\n\nNukeTorch is free for personal use, schools and universities, and businesses and other organizations (not government entities or international organizations) that with their affiliates have less than US$10 million in revenue and fewer than 250 people, on up to 250 machines, each working alone. Everyone else may evaluate it for 30 days, then needs a commercial license: [contact@nuketorch.ai](mailto:contact@nuketorch.ai). You may not offer its function itself to others: access to its API, or running, serving or fine-tuning models for them. Terms are in [LICENSE.md](https://github.com/NukeTorch/nuketorch/blob/1.0.5/LICENSE.md). The model and its draft model are Apache-2.0, by their makers.\n\n**Powered by NukeTorch** · [https://nuketorch.ai](https://nuketorch.ai) · Back to [NukeTorch/nuketorch](https://github.com/NukeTorch/nuketorch)", "url": "https://wpnews.pro/news/show-hn-nuketorch-run-qwen3-6-35b-at-517-tok-s-on-a-macbook-pro", "canonical_source": "https://github.com/NukeTorch/Qwen3.6-35B", "published_at": "2026-11-23 15:29:58+00:00", "updated_at": "2026-11-23 15:45:08.267518+00:00", "lang": "en", "topics": ["ai-infrastructure", "large-language-models", "ai-tools", "mlops"], "entities": ["NukeTorch", "Qwen3.6-35B-A3B-4bit-DFlash2", "mlx-lm", "llama.cpp", "oMLX", "Hugging Face", "MacBook Pro", "Metal"], "also_reported_by": [], "takeaway": "NukeTorch 1.0.5 decodes Qwen3.6-35B-A3B-4bit-DFlash2 at 517.5 tok/s on prompt A and 821.8 tok/s total with 8 concurrent users on a MacBook Pro, 3.9× to 6.8× faster than mlx-lm 0.32.2, at the cost of 15% to 36% more RAM than mlx-lm.", "recommendation": {"advice": "On Apple Silicon, serve the 4-bit Qwen3.6-35B-A3B model with a paired DFlash2 draft model for speculative decoding; the report measured 517.5 tok/s versus 126.8 for mlx-lm 0.32.2, using 24.77 GB peak RAM.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/show-hn-nuketorch-run-qwen3-6-35b-at-517-tok-s-on-a-macbook-pro", "markdown": "https://wpnews.pro/news/show-hn-nuketorch-run-qwen3-6-35b-at-517-tok-s-on-a-macbook-pro.md", "text": "https://wpnews.pro/news/show-hn-nuketorch-run-qwen3-6-35b-at-517-tok-s-on-a-macbook-pro.txt", "jsonld": "https://wpnews.pro/news/show-hn-nuketorch-run-qwen3-6-35b-at-517-tok-s-on-a-macbook-pro.jsonld"}}