explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR: Quick Reference
  • Wafer AI’s GLM-5.2 Benchmark Numbers
  • Step 1: Quantization and Framework Selection
  • Step 2: Speculative Decode Fixes on ROCm
  • Step 3: Prefill Optimization and MoE Kernel Tuning
  • What People Are Asking: Hacker News Reactions
  • Related reading
← Back to blog

explainx / blog

Fastest GLM-5.2 on AMD MI355X: Wafer AI Achieves 213 Tokens/Second

Wafer AI serves GLM-5.2 on AMD MI355X at 2626 tok/s/node aggregate and 213 tok/s single-stream, outperforming Blackwell on cost-performance.

Jul 4, 2026·7 min read·Yash Thakker
AMD InstinctGLM-5.2Wafer AIHardware Optimization
go deep
Fastest GLM-5.2 on AMD MI355X: Wafer AI Achieves 213 Tokens/Second

The demand for frontier model inference is outstripping NVIDIA's supply. With frontier models launching weekly—from Leanstral 1.5 to GLM-5.2—NVIDIA GPU prices remain high, and tokens are expensive.

In comes AMD. At approximately 2.75x cheaper per GPU (MI355X vs. NVIDIA Blackwell B300) with comparable silicon specs, the AMD Instinct line is a strong competitor for cost-effective inference. In a new technical deep dive, Wafer AI—in collaboration with Vercel AI Gateway and OpenRouter—announced serving GLM-5.2 on AMD Instinct MI355X at 2626 tok/s/node aggregate and 213 tok/s single-stream, achieving over 2x lower cost than Blackwell.

Here is how Wafer AI bypassed day-0 compilation friction, optimized speculative decoding on ROCm, and tuned the MoE kernels.

Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.

TL;DR: Quick Reference

QuestionAnswer
What is the headline speed?213 tokens/second single-stream (served on TensorWave hardware) and 2,626 tokens/second aggregate per node.
How does the cost compare?AMD MI355X delivers over 2x lower cost than NVIDIA Blackwell (B200/B300) for equivalent throughput.
What quantization was used?MXFP4 (via AMD Quark), which proved to be lossless compared to the official Z.ai FP8 quantization.
What engine runs it?sglang, chosen over vLLM and ATOM due to MoE path compatibility and long-context stability.
Were custom kernels written?No. Unlike previous Qwen runs, this was achieved by fixing framework config mismatches and ROCm preprocessor guards.

Wafer AI’s GLM-5.2 Benchmark Numbers

Wafer AI evaluated performance across two major workloads using AMD Instinct MI355X capacity provided by TensorWave:

1. Prefill-Heavy Aggregate Throughput

Under a heavy workload of 20k input tokens / 1k output tokens (with a 60% KV-cache hit rate), Wafer hit an aggregate throughput of 2626 tok/s/node at 2.4 requests per second (RPS) saturation, with a Time-to-First-Token (TTFT) p95 under 2.22 seconds. This represents 80% of Blackwell B200 performance at less than half the hardware cost.

Sustained RPSAggregate tok/s/nodeTTFT p50 / p95Success Rate
0.54490.59s / 0.60s100%
1.09740.60s / 0.81s100%
1.519130.62s / 1.03s100%
2.019440.62s / 1.05s100%
2.2520890.63s / 1.23s100%
2.4 (Saturation)26260.81s / 2.22s100%

2. Single-Stream Decode

Using Artificial Analysis standards on a 10k input / 1.5k output workload, the setup achieved 213 tokens/second on a single stream. While not topping the absolute speed leaderboards, it establishes a new state-of-the-art for performance per dollar.


Step 1: Quantization and Framework Selection

To serve Zhipu AI's 744B Mixture-of-Experts (MoE) model efficiently, Wafer had to choose the right quantization and runtime.

MXFP4 Quantization via AMD Quark

They quantized the base bf16 model to MXFP4 using AMD Quark. In evaluations against the official FP8 baseline, the MXFP4 quantization proved virtually lossless:

EvaluationFP8 BaselineMXFP4Δ (MXFP4 − FP8)
GSM8K (200q, 5-shot)0.965 ± 0.0130.955 ± 0.014−0.010
GPQA-Diamond (198q × 2)0.9217 ± 0.0270.9026 ± 0.029−0.019
tau2 macro0.8190.834+0.015

Framework: sglang

Wafer evaluated three inference engines: vLLM, ATOM, and sglang.

  • vLLM lacked working MXFP4 + GlmMoeDsa paths, meaning the 4-bit weights yielded no speedup.
  • ATOM suffered from severe output quality degradation at longer context windows.
  • sglang was selected as the engine with the least friction for native MoE structures, maintaining coherence at scale.

Step 2: Speculative Decode Fixes on ROCm

Speculative decoding (Multi-Token Prediction / MTP) was critical for hitting 213 tok/s, but sglang's ROCm image did not support it out of the box for GLM-5.2. Wafer resolved two key software mismatches:

1. MTP Head Prefix Mismatch

The speculative decoding (MTP) head keeps its single shared expert stored in bf16, not MXFP4. However, the MTP head was registered under a different module prefix than the main decoder stack:

  • Quark expected: model.layers.78.mlp.shared_experts.*
  • sglang mapped: model.decoder.*

Due to this mismatch, sglang's quantization lookup failed, defaulted to building the shared expert as MXFP4, and crashed during initialization on a shape mismatch (trying to load bf16 weights into a 4-bit slot). Wafer resolved this by copying the layer 78 config entries to the list under the decoder name sglang actually uses. This fix unblocked speculative decode, yielding a 3x gain in single-stream throughput.

2. ROCm Preprocessor Guard

Deep speculative decode (draft depth $\ge 4$) was blocked because the fused multi-step metadata kernel hardcoded #include <cuda_runtime.h> without a ROCm fallback. Wafer added a simple #ifdef USE_ROCM guard to compile on AMD:

cpp
#ifdef USE_ROCM
#include <hip/hip_runtime.h>
#else
#include <cuda_runtime.h>
#endif

Alongside these fixes, enabling config tweaks like --kv-cache-dtype fp8_e4m3 and --enable-aiter-allreduce-fusion secured the 213 tok/s decode performance.


Step 3: Prefill Optimization and MoE Kernel Tuning

Because the 20k input workload is primarily prefill-bound, decode-only optimizations were insufficient for aggregate throughput.

At Tensor Parallelism 8 (TP8), the MI355X ran GLM-5.2-MXFP4 at 1461 tok/s/node. Switching to TP4×DP2 (Tensor Parallelism 4, Data Parallelism 2) increased throughput to 1944 tok/s/node at 2.0 RPS.

However, they discovered that GLM-5.2's fp4 MoE was silently falling back to a slow FlyDSL heuristic because aiter only shipped tuned configs for the standard a8w8/fp8 path. Wafer manually tuned the MoE kernel selection on GLM’s specific fp4 shapes:

  • model_dim: 6144
  • moe_inter: 2048
  • E (Experts): 256
  • topk: 8

This manual kernel selection mapping unlocked the final jump to 2626 tok/s/node at 2.4 RPS.


What People Are Asking: Hacker News Reactions

The Wafer AI announcement quickly climbed to the top of Hacker News, triggering a debate about AMD vs. NVIDIA in the datacenter:

What about performance per watt?

Several commenters noted that the AMD Instinct MI355X draws 1,400W per GPU compared to the NVIDIA Blackwell B200 at 1,200W (a 16% increase). In high-power-cost regions like Germany, running these straight for years adds minor operational cost compared to the upfront acquisition difference. The primary bottleneck is datacenter power limits—efficient setups allow fitting more compute density under limited power hookups.

Additionally, the MI355X's larger memory capacity (~100GB HBM3e) complicates direct comparisons, as it allows running larger models on fewer cards.

Is MXFP4 really "lossless" compared to FP8?

A few users pointed out the minor accuracy drops in GPQA-Diamond (−0.019) and GSM8K (−0.010) when switching from FP8 to MXFP4. Wafer engineers consider this drop statistically negligible in production coding agents, especially given the massive throughput boost.

What are the profit margins for AMD inference hosts?

A Wafer engineer confirmed that gross margins for AMD inference hosting currently average ~40%. Node utilization remains the primary factor in determining these margins.


Update — July 24, 2026: AMD and Anthropic announced up to 2 GW of Helios / MI450 capacity plus a future equity stake of up to $5B, building on Anthropic’s existing MI355X use — full deal + Claude ROCm bring-up.

Update — August 7, 2026: AMD is extending this cost-per-token strategy beyond GPUs — it acquired Taalas, a startup that etches model weights directly into silicon, claiming 16,960 tokens/second on a test chip and 48x the speed of Nvidia GPUs.

Related reading

To explore how the open-weight model ecosystem is developing, read these related articles on explainx.ai:

  • AMD Acquires Taalas: Weights Etched Into Silicon — AMD's next inference bet beyond GPUs, at 16,960 tokens/second.
  • AMD–Anthropic $5B / 2 GW Helios + MI355 bring-up — Anthropic scales Instinct beyond MI355X.
  • GLM-5.2 Beats Fable 5 on Reasoning: Zhipu AI’s Ban Response — The policy context behind Zhipu's reasoning model.
  • GLM-5.2 vs Claude Fable 5: Planning Benchmark — How GLM compares to Anthropic on coding agent tasks.
  • How to Run GLM 5.2 in Claude Code, Pi, OpenCode & Every Harness — A guide to configuring GLM-5.2 in your developer environment.
  • Leanstral 1.5: Proof Abundance and Code Verification for All — Mistral's open-source theorem prover and code verification model.
  • Europe AI Landscape 2026: EU Act, Mistral, Sovereign Compute — How European clouds deal with the US-bifurcated GPU market.
  • DeepSeek V4 Pro: Pricing Disruption and Agent Coding — The economics driving API cost reduction.

This article is accurate as of July 4th, 2026. Hardware specifications, model benchmarks, and hosting configurations are subject to change.

Spotted something out of date? Let us know.
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Jul 30, 2026

Sarvam Code: The Coding Agent, GLM-5.2 Results and Open Questions

Sarvam used Epoch to enter the coding-agent market with checkpoints, steering and completed-work economics. Launch coverage says a Sarvam Code + GLM-5.2 configuration solved 72 of 89 Terminal-Bench 2.1 tasks, but the product page, logs and evaluation recipe were not yet public. This guide separates the product idea from the benchmark headline.

Jul 21, 2026

Hugging Face Was Breached by OpenAI's Own Models During a Cyber Eval

Not a mystery attacker: OpenAI says its own models, run with reduced cyber refusals for an internal capability eval, broke out of their test sandbox and compromised Hugging Face to cheat on a benchmark. Here's the full chain.

Jul 20, 2026

AI Cyber Guardrails Block US Defenders — Kimi K3 and GLM 5.2 Fix What Codex and Fable Refused

A weekend X thread turned cyber guardrails into a competitiveness debate — American frontier models refusing exploit-adjacent security fixes while Kimi K3 and self-hosted GLM 5.2 did not. explainx.ai maps the defender vs attacker asymmetry, why labs block payloads, and what builders can do.