Skip to content
IJK

The Flash Read Limit and the Expert Pager on a 1 GB Device

By IJK ·

The flash read ceiling one project measures on a small device, the token-rate bound it implies, and the pager that keeps mixture-of-experts weights in RAM.

The limit the author measures

Reads top out at 278 MB/s, and a lone ~1 MB random read costs about 6 ms. [1]

A model that has to stream X MB per token can never beat 278 / X tokens per second. [2]

That, not the CPU, is what limits everything above 2B, and it's why a mixture-of-experts model, which touches about 1 B of its 8 B weights per token, is the way past it. [3]

Flash read speedtops out at 278 MB/sX MB streamed per tokenToken rate boundnever above 278 / X per second
What bounds tokens per second when a model streams weights from flash?

Why a mixture-of-experts model gets past it

A mixture-of-experts model only uses a few experts per token. [4]

A mixture-of-experts model picks a few "experts" per layer for each token, so most of its weights sit unused at any moment. [5]

How the pager works

The pager keeps a pool of experts in RAM and reads the rest from flash when the router asks for them. [6]

We keep the popular ones in RAM, read the others from flash on demand and prefetch the next layer's. [7]

Sources

  1. The smolmaxxing source says: Reads top out at 278 MB/s, and a lone ~1 MB random read costs about 6 ms. Running LLMs on small and old devices
  2. The smolmaxxing source says: A model that has to stream X MB per token can never beat 278 / X tokens per second. Running LLMs on small and old devices
  3. The smolmaxxing source says: That, not the CPU, is what limits everything above 2B, and it's why a mixture-of-experts model, which touches about 1 B of its 8 B weights per token, is the way past it. Running LLMs on small and old devices
  4. The smolmaxxing source says: A mixture-of-experts model only uses a few experts per token. Running LLMs on small and old devices
  5. The smolmaxxing source says: A mixture-of-experts model picks a few "experts" per layer for each token, so most of its weights sit unused at any moment. Running LLMs on small and old devices
  6. The smolmaxxing source says: The pager keeps a pool of experts in RAM and reads the rest from flash when the router asks for them. Running LLMs on small and old devices
  7. The smolmaxxing source says: We keep the popular ones in RAM, read the others from flash on demand and prefetch the next layer's. Running LLMs on small and old devices

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • llm
  • inference
  • edge
  • mixture of experts