Context length and memory on a phone: what the cards say and what they do not
A model's context length is how many tokens it can take in and write out. It is not a promise that a phone can use all of it.
- Qwen3.5-4B's card lists a native context of 262,144 tokens and says to reduce the context window if you hit out-of-memory errors.
- LFM3-1.7B's card lists 256K tokens, input plus output.
- VDF AI says Google's card for Gemma 4 supports up to a 32K context on-device.
- Google's published speed numbers for Gemma 4 E2B use a 1,024-token prompt, a 256-token reply and a 2,048-token window, per VDF AI's description of the card. A longer window will use more memory and we have no figure for it.
What to do
Start with a short context in the app and raise it only if the app stays open. If an app closes when you load a model, the file may be too large for that device. See the one-third rule and how to read a speed table.
Sources
- Qwen3.5-4B model card
- LFM3-1.7B model card
- Gemma 4 on LiteRT-LM, Google AI Edge
- Local LLM on Android and iPhone, VDF AI (14 Nov 2026)
Checked: 27 Nov 2026. Figures change; confirm on the source before you rely on them.
Keep reading
- 8 GB vs 12 GB vs 16 GB phone for AI: which one should you buy?What each RAM tier lets you run, with the models, file sizes and the one-sentence verdict for each.
- AI-Benchmark ranking: what the columns mean, and what the top phones showReading the AI-Benchmark phone table: the score columns, five phones with their chip, RAM and AI Score as listed, and what the numbers cannot tell you about chat models.
- The airplane mode test: how to check a phone model is really offlineLoad a model on Wi-Fi, switch on airplane mode, send a prompt. The check VDF AI recommends and what it does and does not prove.
- Android local AI runtimes explained: MLC LLM, llama.cpp, ExecuTorch and moreA May 2026 guide lists five ways to run models on Android and warns about NNAPI deprecation, aggressive background killing and vendor-locked NPU tools. A secondary source, with caveats.