• Terms of Service

Learn Internet Grow

Tech Skills

  • Learn
  • Books
  • Search
  • Create
  • Measure
  • Secure
  • Share
  • Terms of Service

What Is FP8 Training? Why AI Labs Are Shrinking Their Numbers to Save Money

Filed Under: Learn

One of the least glamorous but most important tricks behind DeepSeek’s famously efficient training was almost absurdly simple: use smaller numbers. Instead of doing its math in the 16-bit format most AI models use, DeepSeek did the bulk of its heaviest computation in FP8 — an 8-bit format — roughly halving memory use and speeding everything up. It’s a big reason the training run was so cheap.

So what is FP8 training, and why does shrinking a number from 16 bits to 8 bits save so much money? Let’s break it down without any heavy math — just the idea of precision, and the clever engineering it takes to pull it off.

Three glowing blocks of light in a descending row from large to small, the smallest compact and trailing bright motion streaks — smaller numbers meaning faster, cheaper computation, on the edge of stability.

Precision, in Plain English

Every number inside an AI model is stored using a certain number of bits — the 1s and 0s computers think in. More bits means you can represent a number more precisely and across a wider range; fewer bits means less precision, but a smaller, faster package.

Precision, in Plain English — a painterly illustration conveying this idea from "What Is FP8 Training? Why AI Labs Are Shrinking Their Numbers to Save Money"

Think of it like measuring with rulers of different fineness. A ruler marked only in centimeters is quick to read but coarse. A ruler marked in fractions of a millimeter is far more precise but slower to work with and bulkier to carry. In AI, the “ruler” is the number format:

  • FP32 (32-bit) — very precise, the old default. Big and slow.
  • FP16 / BF16 (16-bit) — the modern standard for training. Half the size, good enough for most work.
  • FP8 (8-bit) — half again. Tiny, fast, and what DeepSeek pushed into the heart of its training.

Each step down the ladder trades precision for speed and space.

Why Fewer Bits Saves So Much Money

A number’s bit-width controls two things that both cost money at AI scale: memory and throughput.

Dropping from 16 bits to 8 bits roughly halves the memory needed to store the model’s weights, activations, and gradients. On the specialized AI chips that do the math, 8-bit operations also run at roughly double the speed of 16-bit ones. Less data to move, and more calculations per second — both push in the same direction: more of the model trained per hour of expensive GPU time.

That’s the whole efficiency story in miniature. Training a large model can burn millions of dollars in compute, so halving the memory footprint and doubling the math throughput on the biggest operations translates almost directly into a smaller bill. This is exactly why the DeepSeek training-cost story is so tied up with FP8.

The Catch: 8-Bit Numbers Are Fragile

If smaller numbers were free, everyone would have used FP8 years ago. The reason they didn’t is that 8 bits is dangerously little precision for training.

The Catch: 8-Bit Numbers Are Fragile — a painterly illustration conveying this idea from "What Is FP8 Training? Why AI Labs Are Shrinking Their Numbers to Save Money"

Training a neural network involves multiplying and adding millions of tiny values over and over. With only 8 bits to work with, the range of numbers you can represent is very narrow. Values easily overflow (get too big to store) or underflow (get so small they round to zero). When that happens, information is silently lost, and training can wobble, spike, or collapse entirely. It’s like trying to do delicate accounting where every figure gets rounded to the nearest dollar — do it enough times and the errors pile up until the books are meaningless.

For years, that fragility made FP8 training at large scale a risky idea more than a practical tool. DeepSeek’s contribution wasn’t inventing FP8 — it was publishing a recipe that makes it stable at massive scale.

How DeepSeek Made FP8 Work

DeepSeek didn’t just cast everything to 8 bits and hope. It layered on three targeted safeguards:

How DeepSeek Made FP8 Work — a painterly illustration conveying this idea from "What Is FP8 Training? Why AI Labs Are Shrinking Their Numbers to Save Money"
  • Fine-grained scaling. Instead of applying one scaling factor to a whole giant block of numbers (where a single outlier can ruin the scale for everything), DeepSeek scaled numbers in small groups — tile by tile and block by block. That keeps one wild value from blowing up its neighbors.
  • Periodic high-precision accumulation. When you add up thousands of 8-bit products, the tiny rounding errors compound. DeepSeek periodically moved the running total into a higher-precision (32-bit) accumulator so those errors didn’t snowball.
  • Keeping the sensitive parts in higher precision. Not everything ran in FP8. The operations most vulnerable to precision loss — things like the model’s input and output layers and its normalization steps — were deliberately kept in 16- or 32-bit. FP8 was used where it was safe and impactful, not everywhere.

The takeaway: FP8 training isn’t magic, and it isn’t a one-line switch. It’s a careful engineering recipe that gets the savings of 8-bit math while fencing off its instability — a beautiful example of numerical optimization meeting hardware-aware design.

FP8 Is Part of a Bigger Efficiency Story

FP8 wasn’t the only trick DeepSeek used to train cheaply. It worked hand-in-hand with the sparse Mixture-of-Experts design (activate only part of the model per word) and other memory savings — all aimed at the same goal of doing more with less. And DeepSeek didn’t invent low-precision training any more than it invented Mixture of Experts; the industry had been marching down the precision ladder for years. What DeepSeek did was prove FP8 could carry a frontier-scale model, publicly and in detail — which is why so many labs paid attention.

The broader lesson for anyone learning how modern AI works is that “precision” is a dial engineers can turn, not a fixed law. Turn it down carefully, and you can train a world-class model for a fraction of the compute. Turn it down carelessly, and the whole thing falls apart. The art is in knowing exactly how far to go — and where not to.

❓ Frequently Asked Questions

What is FP8 training in simple terms? FP8 training means doing an AI model’s heavy calculations using 8-bit floating-point numbers instead of the usual 16-bit ones. Smaller numbers take up half the memory and run about twice as fast on AI chips, which makes training significantly cheaper — as long as you can keep the low-precision math stable.

Why does using fewer bits save money? A number’s bit-width sets both how much memory it uses and how fast the chip can compute with it. Halving the bits (16 → 8) roughly halves memory use and doubles throughput on the biggest operations, so you train more of the model per hour of expensive GPU time — directly lowering the compute bill.

Why is FP8 training difficult? With only 8 bits, the range of numbers you can represent is very narrow, so values easily overflow or round to zero during the millions of tiny calculations in training. That can destabilize or wreck the training run. It takes careful techniques — fine-grained scaling, higher-precision accumulation, and keeping sensitive parts in more bits — to make it stable.

Did DeepSeek invent FP8? No. Low-precision number formats and the trend toward fewer bits existed well before DeepSeek. DeepSeek’s contribution was publishing a detailed, working recipe for training a very large, frontier-class model largely in FP8 — demonstrating at scale that it could be done reliably.

Is FP8 less accurate than FP16? FP8 is less precise per number, but a well-designed FP8 training setup can produce a model of comparable quality to a 16-bit one, because the safeguards (scaling, high-precision accumulation, and keeping sensitive operations in higher precision) prevent the precision loss from degrading the final result.

📚 Keep Learning

  • Learn AI and ML Concepts Through the Lens of DeepSeek — the full set of efficiency tricks, of which FP8 is one.
  • What Is Mixture of Experts? — the other big lever behind DeepSeek’s low training cost.
  • Did DeepSeek Really Cost $6 Million? — how efficiencies like FP8 feed into that famous figure.

📚 Recommended Resources

Disclosure: some links below are Amazon affiliate links. If you buy through them, I earn a small commission — at no extra cost to you — which helps keep this site running.


Hands-On Machine Learning with Scikit-Learn, Keras & TensorFlow

Aurélien Géron · Book · ~$70 on Amazon

The best practical reference for understanding what actually happens when a model trains — weights, gradients, and the numerical machinery that FP8 optimizes. If this article made you curious about the mechanics under the “precision” dial, this is where to go deeper, with runnable code at every step.


Deep Learning with Python

François Chollet · Book · ~$50 on Amazon

The friendliest introduction to how neural networks learn, from the creator of Keras. It builds the intuition for why training is so compute-hungry in the first place — the exact problem that tricks like FP8 exist to solve.

Newsletter

Tags

Agentic AI Agentic Development AI AI Agents AI Coding Agents Blockchain Bounded Context Browser ChatGPT Plugins Claude Code CLPR Context Engineering Cryptocurrency DePin Developer Tools Distributed Systems DLT Domain-Driven Design Google Search HBAR Hedera Home Networking Internet Internet Performance LLM Machine Learning MCP Model Context Protocol Network Architecture Network Diagnostics Network Security News NLP Postgres PostgreSQL Productivity RAG Routers Saga Pattern SEO Software Architecture software engineering Troubleshooting Twitter Web3

Recent Articles

  • AI Agent Memory: Search and RAG Limits November 6, 2026
  • Plan Locally, Execute in the Cloud: Claude Code’s Own Recommended Workflow November 6, 2026
  • The AI Evaluation Scorer That Never Read a Transcript November 6, 2026
  • What Is a Browser Engine? Blink & V8 Explained November 5, 2026
  • Why Postgres Is Winning: The $1B Acquisition Wave November 5, 2026
  • RENDER Tokenomics Explained: Burn, Mint, Repeat November 5, 2026

Copyright © 2026 · News Pro Theme On Genesis Framework · WordPress · Log in

Content on this site is produced with the assistance of Large Language Models and edited by a human. It is intended for educational purposes — facts may occasionally be incorrect. If you spot an error, please email Larionovdmitri@learninternetgrow.com.

Affiliate Disclosure: This site contains affiliate links to Amazon and other partners. If you purchase through these links, LearnInternetGrow.com may earn a commission at no additional cost to you. We only recommend products we genuinely believe in.

Privacy Policy · Terms of Service