Skip to content
All experiments

8.5 GB

of memory for Qwen3 1.7B at a 32k window before the first prompt, on the 16 GB Pixel; the 12 GB phones stopped it

OpenWeights, 7 September 2026

Does the exported window matter?

A compiled model fixes its context window, how much text it can hold at once, when it is exported, and reserves memory for all of it. Does a larger window also change the answers or the speed? A small matrix, run to decide whether a full sweep was worth it.

What was compared

The window
A model compiled for ExecuTorch, Meta's runtime for phones, fixes its context window when it is exported, from 2k to 32k tokens here. A token is a small piece of text.
What it costs
When the file loads, the model reserves room for its record of the conversation, the KV cache, across the whole window. LFM2.5 keeps that record in only 6 or 8 of its layers, 25 to 33 KB a token; Qwen3 1.7B keeps it in all 28, 224 KB a token (more on the KV cache).
The phones
A POCO X8 Pro Max with a Dimensity 9500s chip, held in hand, and three cloud phones rented on Google's Firebase Test Lab: a Galaxy S25 Ultra (Snapdragon 8 Elite), a Galaxy S24+ (Exynos 2400) and a Pixel 10 Pro XL (Tensor G5). The Pixel has 16 GB of memory, the others 12. The Galaxy phones and the POCO run their maker's memory guard, which ends an app that holds too much; the Pixel runs none. The charts name each phone by its chip.
The tests
30 prompts from each of three public tests: GSM8K maths, IFEval instruction following, and BFCL function calling, where the reply must call the right function with the right arguments. The model always takes its likeliest next token, and each reply stops at a cap of 640 tokens, or 384 for BFCL.
Two runs of one file
Some files were run twice on the same phone with nothing changed, and most replies still came back different. A difference between windows means something only if it is larger than the difference between those two runs.
LFM2.5 2.6B
It reasons before it answers, even with reasoning switched off, so at the 640-token cap most of its maths and instruction replies were cut off. Those two tests were rerun at a 2048-token cap, and the charts below show both.

What we found

  • Answers: no consistent effect

    Between each model's smallest and largest window on one phone, grades moved by up to 7 of 30, up on some phones and down on others; two runs of one file moved by up to 4. Prompts were short: the longest was 556 tokens.

  • Speed: close, except Qwen3 at 32k

    Timing the same prompt turn by turn on the Dimensity 9500s, LFM2.5's windows ran within 2.4% of each other. Qwen3 at 32k read the prompt 5.9% slower and wrote the reply 4.7% slower than at 2k.

  • Memory: the one real cost

    Qwen3 1.7B at 32k held 8.5 GB right after loading on the 16 GB Pixel. On the three 12 GB phones it read 6.1 to 6.4 GB, and their memory guards stopped it after 6 to 12 prompts.

  • 2k is tight for a model that reasons first

    With a 2048-token reply cap on the Dimensity 9500s, 14 of LFM2.5 2.6B's 60 maths and instruction replies hit the edge of the 2k window, against 10 that hit the cap at 32k. It still graded within 2 of its 32k scores.

  • Test the two ends first

    Work out each window's memory first, run the smallest and largest window per model and phone, and add the middle ones only where those two differ or fail.

The results

Every chart, one condition at a time

Pick a model or condition; every chart follows.

Memory after load

Memory each test process held right after the export loaded. Lines: the Dimensity 9500s during the speed probe in the next chart, the picked model drawn solid and joined only where neighbouring windows were both measured. Marks: the picked model's graded runs on the other phones. Qwen3 at 32k reserves about 7 GB for its record of the conversation alone: the 16 GB Pixel held 8.5 GB, that cache plus the 1.3 GB file, while the three 12 GB phones read 6.1 to 6.4 GB, so part of that reservation was not held in memory there.

0 GB2 GB4 GB6 GB8 GB2k4k8k16k32kExported context window, tokens6 GB guard limitLFM2.5 1.2B 1.8 GBLFM2.5 2.6B 2.9 GBQwen3 1.7B 6.2 GBQwen3 1.7B 1.8 GB

Snapdragon 8 EliteTensor G5Exynos 2400

Speed, paired probe

Each window's speed reading the prompt (prefill) and writing the reply one token at a time (decode), divided by the same turn on the model's smallest window in the same pass: six paired turns per file, on the Dimensity 9500s. Large marks are the medians, small dots the six turns. The dots near 1.20 at every window come from two slow turns of the 2k file, which every window is divided by.

0.800.901.001.101.202k4k8k16k32kExported context window, tokensSpeed vs smallest window

PrefillDecodeSix paired turns1.00 means no difference

Grades by window

Prompts passed out of 30 per set. The Dimensity 9500s ran all five windows; the cloud phones ran 4k and 32k. Lines join only neighbouring windows that were both measured, so an effect between two measured windows is not ruled out.

GSM8K01020302k4k8k16k32kIFEval01020302k4k8k16k32kBFCL01020302k4k8k16k32k

Dimensity 9500sSnapdragon 8 EliteTensor G5Exynos 2400Second run, same file

Identical replies

How many replies came back exactly the same as the largest window's: every token generated, the function calls the OpenWeights app would run (BFCL prompts only), and the text a user would see. Dashed lines are the same file run twice on the phone of that colour. No maths reply ever matched another run token for token, between windows or between repeats, so most matches are function calls.

Raw token stream0%50%100%2k4k8k16kParsed tool calls0%50%100%2k4k8k16kShown text0%50%100%2k4k8k16kWindow compared with the 32k export

Dimensity 9500sSnapdragon 8 EliteTensor G5Exynos 2400Same file run twice× fewer prompts than the full set

Qwen3 at 32k on the 12 GB phones

Samsung's and Xiaomi's logs both name a 6 GB limit for their memory guards (the reruns quote them). Those cells are marked incomplete and carry no grade or timing.

Every number

The full matrix, as rendered from the graded reports by window_report.py. Capped counts replies that stopped at the reply cap or at the edge of the window. Prefill ms is the engine's part of the time to first token, not the user's whole wait. ms/token is the time to write each reply token; replies differ per cell, so it is not a paired comparison. tok/s is tokens a second. Ran at is the window the file was loaded with. RSS, the resident set size, is the memory the process held right after load and at the end of the run.

LFM2.5 1.2B14 cells, LFM2.5-1.2B-Instruct-8da4wShow

Swipe the table sideways for more columns.

Phone and windowFileGSM8KIFEvalBFCLCappedPrefill msms/tokenPrefill tok/sDecode tok/sRan atRSS after load MBRSS at end MB
D9500s, 2k796 MB17/3015/3026/3010/9036025.925438.72048not logged1186
D9500s, 4k798 MB16/3017/3026/3012/9036326.725337.5409610991218
8 Elite, 4k798 MB13/3018/3028/3011/9037417.722756.4409611041207
Tensor G5, 4k798 MB13/3018/3027/3014/9081764.212915.6409611131225
Exynos 2400, 4k798 MB13/3017/3026/3011/9046034.019529.4409611261213
Exynos 2400 repeat, 4k798 MB15/3021/3027/3010/9051637.518026.7409611261217
D9500s, 8k802 MB17/3018/3026/3011/9035326.125938.3819212261333
D9500s, 16k810 MB13/3020/3027/3012/9035425.926238.616384not logged993
D9500s repeat, 16k810 MB14/3016/3028/3012/9036826.225938.21638414161528
D9500s, 32k827 MB12/3018/3027/3016/9036626.325738.032768not logged1903
D9500s repeat, 32k827 MB12/3015/3027/3012/9039228.823734.83276817981901
8 Elite, 32k827 MB16/3013/3026/3011/9032416.326161.232768not logged1880
Tensor G5, 32k827 MB16/3018/3027/3013/9086279.59812.632768not logged1896
Exynos 2400, 32k827 MB14/3020/3025/3011/9046237.118427.032768not logged1883

Two runs of one file: replies byte-identical.

Phone, windowRaw tokensTool callsShown text
Exynos 2400, 4k7/9023/3011/90
D9500s, 16k13/9023/3020/90
D9500s, 32k15/9025/3018/90

Replies identical to the 32k export: raw tokens and shown text over the prompts both runs completed, tool calls over the BFCL prompts among them.

Phone, windowRaw tokensTool callsShown text
D9500s, 2k12/9025/3017/90
D9500s, 4k17/9026/3018/90
D9500s, 8k18/9028/3019/90
D9500s, 16k12/9024/3016/90
D9500s repeat, 16k14/9025/3017/90
8 Elite, 4k13/9026/3015/90
Tensor G5, 4k10/9024/3014/90
Exynos 2400, 4k16/9028/3016/90
LFM2.5 2.6B, 640 cap9 cells, LFM2.5-2.6B-8da4wShow

Swipe the table sideways for more columns.

Phone and windowFileGSM8KIFEvalBFCLCappedPrefill msms/tokenPrefill tok/sDecode tok/sRan atRSS after load MBRSS at end MB
D9500s, 2k1783 MB15/304/3024/3042/9088260.310816.6204819791958
D9500s repeat, 2k1783 MB13/306/3024/3043/9087259.611016.8204819841871
8 Elite, 4k1786 MB13/305/3022/3044/90119755.47218.0409620582194
Tensor G5, 4k1786 MB17/306/3024/3038/90106692.28810.8409620542221
Exynos 2400, 4k1786 MB10/305/3023/3046/90114283.58112.0409621362189
D9500s, 32k1815 MB13/305/3024/3045/9088259.710916.83276829372185
8 Elite, 32k1815 MB13/305/3025/3042/90109649.78120.13276829503082
Tensor G5, 32k1815 MB19/304/3025/3037/9096881.110112.33276829623120
Exynos 2400, 32k1815 MB18/303/3025/3039/90108584.58011.83276830323084

Two runs of one file: replies byte-identical.

Phone, windowRaw tokensTool callsShown text
D9500s, 2k0/9024/3029/90

Replies identical to the 32k export: raw tokens and shown text over the prompts both runs completed, tool calls over the BFCL prompts among them.

Phone, windowRaw tokensTool callsShown text
D9500s, 2k0/9024/3029/90
8 Elite, 4k0/9025/3029/90
Tensor G5, 4k0/9027/3030/90
Exynos 2400, 4k0/9025/3030/90
LFM2.5 2.6B, 2048 cap8 cells, LFM2.5-2.6B-8da4w (cap 2048)Show

Swipe the table sideways for more columns.

Phone and windowFileGSM8KIFEvalBFCLCappedPrefill msms/tokenPrefill tok/sDecode tok/sRan atRSS after load MBRSS at end MB
D9500s, 2k1783 MB24/3021/30-14/6069362.810515.9204819591783
8 Elite, 4k1786 MB25/3019/30-11/6086651.18219.6409620552139
Tensor G5, 4k1786 MB23/3021/30-13/6077681.910612.2409620552188
Exynos 2400, 4k1786 MB25/3021/30-13/6089387.18411.5409621362187
D9500s, 32k1815 MB26/3021/30-10/6062159.511316.83276829222262
8 Elite, 32k1815 MB24/3021/30-15/6098254.58018.43276829502626
Tensor G5, 32k1815 MB28/3018/30-12/60842102.4809.83276829623123
Exynos 2400, 32k1815 MB27/3019/30-10/6092487.88211.43276830283080

Replies identical to the 32k export: raw tokens and shown text over the prompts both runs completed, tool calls over the BFCL prompts among them.

Phone, windowRaw tokensTool callsShown text
D9500s, 2k0/60-0/60
8 Elite, 4k0/60-0/60
Tensor G5, 4k0/60-0/60
Exynos 2400, 4k0/60-0/60
Qwen3 1.7B9 cells, Qwen3-1.7B-8da4wShow

Swipe the table sideways for more columns.

Phone and windowFileGSM8KIFEvalBFCLCappedPrefill msms/tokenPrefill tok/sDecode tok/sRan atRSS after load MBRSS at end MB
D9500s, 2k1285 MB20/3015/3024/308/9053245.117422.2204817581833
D9500s repeat, 2k1285 MB17/3018/3024/307/9053245.717421.9204817661900
8 Elite, 2k1285 MB18/3013/3025/3012/9067341.914123.9204817711887
Tensor G5, 2k1285 MB23/3013/3024/308/9081489.312111.2204817721892
Exynos 2400, 2k1285 MB17/3012/3023/3010/9073465.912515.2204818381886
D9500s, 32k1348 MBINCOMPLETE: process ended after 6/90 prompts3276861885426 (last observed)
8 Elite, 32k1348 MBINCOMPLETE: process ended after 12/90 prompts3276861274836 (last observed)
Tensor G5, 32k1348 MB16/3014/3025/308/9084494.013910.63276884998602
Exynos 2400, 32k1348 MBINCOMPLETE: process ended after 7/90 prompts3276863966380 (last observed)

Two runs of one file: replies byte-identical.

Phone, windowRaw tokensTool callsShown text
D9500s, 2k31/9030/3031/90

Replies identical to the 32k export: raw tokens and shown text over the prompts both runs completed, tool calls over the BFCL prompts among them.

Phone, windowRaw tokensTool callsShown text
D9500s, 2k0/6-0/6
8 Elite, 2k0/12-0/12
Tensor G5, 2k29/9027/3031/90
Exynos 2400, 2k0/7-0/7
Fixed-prompt speed probeDimensity 9500s, 12 files, 929-token prompt, 160-token cap, three turns per load, two interleaved passesShow

Swipe the table sideways for more columns.

FileTurnsPrefill tok/s (median, min to max)Decode tok/s (median, min to max)Prefill ms, 929 tokensResident after load MB
LFM2.5-1.2B-Instruct-8da4w-2k6332 (288 to 344)40.2 (33.7 to 41.0)28041050
LFM2.5-1.2B-Instruct-8da4w-4k6340 (330 to 344)40.4 (36.9 to 41.0)27381098
LFM2.5-1.2B-Instruct-8da4w-8k6343 (327 to 345)40.8 (40.0 to 41.2)27121194
LFM2.5-1.2B-Instruct-8da4w-16k6342 (326 to 345)40.5 (39.8 to 41.2)27181386
LFM2.5-1.2B-Instruct-8da4w-32k6343 (329 to 346)40.5 (39.9 to 40.9)27121768
LFM2.5-2.6B-8da4w-2k6149 (142 to 153)19.0 (16.7 to 19.5)62541984
LFM2.5-2.6B-8da4w-4k6148 (135 to 153)18.1 (16.5 to 19.5)62642046
LFM2.5-2.6B-8da4w-8k6149 (140 to 153)18.2 (16.7 to 19.5)62342172
LFM2.5-2.6B-8da4w-16k6149 (138 to 153)18.4 (16.6 to 19.5)62262427
LFM2.5-2.6B-8da4w-32k6149 (139 to 152)18.1 (16.2 to 19.5)62402936
Qwen3-1.7B-8da4w-2k6200 (193 to 206)18.0 (16.1 to 18.2)46801758
Qwen3-1.7B-8da4w-32k6184 (162 to 203)16.6 (15.1 to 17.6)50646153
FilePrefill vs smallest window (median ratio, min to max)Decode vs smallest windowPaired turns
LFM2.5-1.2B-Instruct-8da4w-2k1.000 (1.000 to 1.000)1.000 (1.000 to 1.000)6
LFM2.5-1.2B-Instruct-8da4w-4k1.007 (0.987 to 1.181)0.999 (0.927 to 1.190)6
LFM2.5-1.2B-Instruct-8da4w-8k1.003 (0.995 to 1.198)1.011 (0.995 to 1.187)6
LFM2.5-1.2B-Instruct-8da4w-16k1.008 (0.992 to 1.190)1.009 (0.988 to 1.187)6
LFM2.5-1.2B-Instruct-8da4w-32k1.013 (0.999 to 1.202)1.006 (0.993 to 1.184)6
LFM2.5-2.6B-8da4w-2k1.000 (1.000 to 1.000)1.000 (1.000 to 1.000)6
LFM2.5-2.6B-8da4w-4k0.995 (0.947 to 1.002)0.985 (0.946 to 1.005)6
LFM2.5-2.6B-8da4w-8k0.997 (0.983 to 1.005)0.991 (0.943 to 1.000)6
LFM2.5-2.6B-8da4w-16k1.003 (0.971 to 1.005)0.997 (0.938 to 1.005)6
LFM2.5-2.6B-8da4w-32k0.997 (0.975 to 1.003)0.976 (0.943 to 1.005)6
Qwen3-1.7B-8da4w-2k1.000 (1.000 to 1.000)1.000 (1.000 to 1.000)6
Qwen3-1.7B-8da4w-32k0.941 (0.793 to 0.982)0.953 (0.835 to 1.012)6

How we ran it

Why
To decide whether a full sweep of five windows, five models and four chips (about 50 device hours) was worth running.
The size of it
The same weights exported once per window. 3 models, 4 phones, 23.7 hours of generation.
Grading
90 prompts per cell, one model at one window on one phone: 30 GSM8K (the last number in the reply must equal the reference), 30 IFEval (every instruction must be met, checked by the benchmark's own code), 30 BFCL (exactly one call to the right function with the right arguments). Thinking was off, but LFM2.5-2.6B's chat template opens a thinking block before every answer.
Two runs of one file
Raw token streams matched on 0 to 31 of 90, with the same prompts and settings both times. The ExecuTorch runtime was not deterministic run to run on these phones, for a reason not yet found.
A missing start marker
The OpenWeights app never gave these compiled models the marker that opens a text (the BOS token); the ExecuTorch 1.4.0 runtime adds it only when asked. Without it LFM2.5-2.6B scored 0 of 30 on maths on every phone, so its results here come from a build that adds the marker. LFM2.5-1.2B coped without it and ran as the app then shipped.
The 2.6B under two reply caps
At the suite's 640-token cap, 16 of 30 maths and 26 of 30 instruction replies were cut (Dimensity 9500s, 2k), 37 of those 42 before the thinking block closed. Those rows are kept for its BFCL calls, which reached their own 384-token cap at most once in 30, and for memory and speed. Rerun at a 2048-token cap, maths and instructions only, it scored 23 to 28 and 18 to 21 of 30 on every phone and window.
A sleeping phone
With its screen off, the POCO slowed test runs two to five times, unevenly, so the runner now wakes it and keeps it awake.
Review
OpenAI's Codex reviewed the method before and after the data. What it asked for is here: same-file repeats, a speed test paired turn by turn, memory after load, a second model family, and incomplete runs shown as such.
What was run, cell by cellWindows and repeats per model, the export recipe, and how long each tookShow
LFM2.5-1.2B
Five windows on the Dimensity 9500s, 16k and 32k twice; 4k and 32k on the cloud phones, 4k twice on the Exynos.
LFM2.5-2.6B
2k and 32k on the Dimensity, 2k twice; 4k and 32k on the cloud phones; then GSM8K and IFEval again at a 2048 cap on every one of those cells.
Qwen3-1.7B
2k and 32k everywhere, 2k twice on the Dimensity, 32k twice on the Dimensity to catch the kill.
Exports
Every file loaded at its own exported window. Exports use ExecuTorch 1.4.0's recipes, the 8da4w in the file names: 8-bit dynamic activations, 4-bit weights in groups of 32, 8-bit embeddings, fp32 KV cache, prefill chunk 2048.

How long it ran

Minutes the model spent generating, summed over every run in that cell. Loading, cooling and Test Lab queueing came on top. Run on 2026-09-07.

ModelD9500s8 EliteG5Exynos
LFM2.5 1.2B63124335
2.6B, 640 cap12975128117
2.6B, 2048 cap146130213195
Qwen3 1.7B33195725

Limits

Not matched conditions
The Dimensity 9500s ran in hand, cooled below 42 C before each probe load. The 8 Elite, Tensor G5 and Exynos 2400 ran racked on Firebase Test Lab, where they slow themselves within about 40 seconds to keep cool, and had no paired probe: their timings are medians over different replies and do not support a speed claim either way.
Short prompts
The median prompt was 88 tokens, and no prompt and reply together passed 2,238 tokens. No test came near filling a 16k or 32k window, so whether long inputs fare the same at every window was not tested.
Thirty prompts a set
A score out of 30 is uncertain by about 5 prompts either way, and the gap between two such scores by about 8 (95% intervals at a 50% pass rate), so differences between windows like the up to 7 here cannot be told from chance.
Follow-up
The reruns checked every cell of this matrix the same day.

Sources

The LFM2.5-1.2B and LFM2.5-2.6B exports were also published on Hugging Face, each window a file.

Keep reading

All experiments
  • About 4×

    the median score on IFEval, an instruction-following test, once the reply cap rose to 2048 tokens: 18 to 21 of 30, up from 3 to 6

    OpenWeights, 7 September 2026

    A 640-token reply cap was cutting off the LFM2.5 2.6B

    The model reasons before it answers, so a 640-token cap cut it off. Raising only the cap lifted its scores on every phone. The same day's reruns also tested repeats of one file and a run that had died.

    Alpha Romer Coma

  • 18 of 25

    model and chip pairs where ExecuTorch beat llama.cpp at prompt reading

    OpenWeights, 3 and 4 September 2026

    Five chips, two runtimes

    How fast five small models answer on five phone chips, in llama.cpp and in ExecuTorch.

    Alpha Romer Coma

  • 9 of 9

    were fastest with NPU prefill: eight models, Qwen3 1.7B in two formats

    OpenWeights, 2 to 10 November 2026

    Prefill and decode on CPU, GPU and NPU

    A model reads the prompt (prefill), then writes the reply a token at a time (decode). Eight models, one of them in two formats, on a Snapdragon 8 Elite Gen 5, with each phase on the CPU, the GPU or the NPU, the part of the chip built for AI.

    Alpha Romer Coma