AI by Hand ✍️

AI by Hand ✍️

MXFP4, FP4, FP8

Frontier AI Drawings: 4 of 13

Prof. Tom Yeh's avatar
Prof. Tom Yeh
Aug 14, 2025
∙ Paid

Library › Frontier AI Drawings

  1. "Expert Choice" Mixture of Experts (MoE)

  2. MHA, MQA, GQA, MoE-A: More Attention!

  3. New GPT-OSS Trick to Ignore Tokens

  4. MXFP4, FP4, FP8

  5. LoRA, Fine-Tune, Pre-Train

  6. QLoRA, DoRA, BitFit, NF4 vs INT4

  7. KV Cache, Prefill, Decode

  8. EmbeddingGemma, MRL, InfoNCE, Embed vs. Decode

  9. Inference Batching, Request-vs-Token Level

  10. MLP Parallelism: Data, Context, Row, Column, Pipeline

  11. RoPE vs PE in QKV Self-Attention

  12. RMS, Group, Layer, Batch Norm, Tensor Parallelism

  13. Qwen 3

GPT-OSS MXFP4 quantization paper excerpt

When OpenAI released gpt-oss, I noticed something small but important buried in their model card:

> “… quantization of the MoE weights to MXFP4 format …”

Almost right away, a leading AI company working on local inference reached out:

> “Our AI engineers need to understand MXFP4 …. they need to understand how it fits 120 billion parameters into 80GB GPU memory.”

Lesser-known players have experimented with MXFP4 in various parts of their pipelines. But seeing OpenAI adopt it in gpt-oss tells us this isn’t just a niche trick anymore.

The idea behind MXFP4 is simple, but it’s not explained well in materials you can find online. Existing materials are either papers with hard-to-understand equations or articles listing CUDA kernel code. Explaining it in a way where you can actually calculate it by hand ✍️ — that’s what we do here.

Drawings

For this Issue, I created four new drawings:

  1. FP8-E4M3

  2. FP8-E5M2

  3. FP4-E2M1

  4. MXFP4

Printed FP quantization worksheet pages

Page 1 of 8

Become a member to access the rest of the drawings.

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2026 Tom Yeh · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture