Skip to content
NWM.NEW WEB MEDIA
EN/KO

177-billion-parameter model runs 1 million-token context on a phone with 12GB of RAM

In brief

Researchers at LLMs For All published a paper on Millie 2, which runs a 177-billion-parameter language model with a 1 million-token context on a smartphone with 12GB of RAM.

1 min read

Edited by Seung Kim

Translated from the Korean original. Read the original in Korean

Why it matters

  • By streaming the model instead of loading all of it into memory, a very large model and a very long context run on a smartphone.
  • Meta's MobileLLM-R2 trains a model to be small, while Millie 2 leaves the large model as it is and changes how it runs.

By the numbers

69.5GB
Compressed weights and attention data for a 1 million-token context
14.1 tokens/sec
iPhone 18 Pro, generation speed with short context
9.9 tokens/sec
Question-answering speed on a 1 million-token document

Key details

Millie 2 streams the model weights instead of loading them all at once. It predicts in advance which experts each layer will use and gives priority to experts whose weights are already in RAM. For attention data, it proposes Residency-Biased Attention (RBA). It scores a compressed index of the full history using the states of earlier layers, and gives extra points to blocks whose keys and values are already in RAM.

Sources

About this articleShow
Editor
Seung Kim
Primary sources
1
Version
r1

If anything in this article is wrong, please request a correction.

#on-device AI#LLMs For All#Millie 2#long context