A 16 GB phone runs a 35B MoE, and 14.179 tok/s is a flash bandwidth number

Three numbers: a 10.9 GB model package, about 5 GiB peak runtime memory, 14.179 tok/s decode. The first two say it fits. The third says it is still usable once it fits. The third is the one worth taking apart, because it is not a compute score. It is a flash random-read score.

LuxiTech released LuxiInfer Android v1.0.0 on 2026-11-10 with four models in the lineup: LuxiLLM-1.7B, Qwen3.5-0.8B, Qwen3.5-2B and Qwen3.6-35B-A3B. Support is currently limited to Snapdragon 8 Elite Gen 5 devices with 16 GiB of RAM, and the project README carries the full numbers. For Qwen3.6-35B-A3B, text only, 1024 tokens in and 1024 out: prefill 470.661 tok/s, decode 14.179 tok/s, peak memory around 5 GiB. Add an image and prefill drops to 370.344 while decode creeps up to 14.262. That last decimal matters later.

Fitting 35B into 16 GB: 2-bit expert weights, loaded on demand

35B-A3B means 35 billion total parameters with roughly 3 billion active per token. The compute arithmetic looks great. The storage arithmetic does not: compute only touches the selected experts, but every expert has to live somewhere. At 2 bits, 35 times 2 divided by 8 gives 8.75 GB. The published package is 10.9 GB. The remaining 2.1 GB is, I suspect, non-expert layers (attention, embeddings, output head) kept at higher precision plus the vision tower and tokenizer assets. The project does not say so, so treat that as my inference rather than fact, but the magnitude lines up with a design that quantizes experts hard and keeps everything else sane.

A 16 GiB phone gives the OS most of that memory. Inference usually gets 5 to 7 GiB. There is no arrangement where 8.75 GB of weights sits in RAM. So the load-bearing idea is that expert weights stay in flash and page in on demand: read the experts a layer selected, keep them under some cache policy, let the hit rate carry the average. Two engineering details in the README do the heavy lifting. Expert weights are quantized to 2 bits. And across consecutive tokens within the same layer, the selected experts overlap 82 percent of the time. It runs on ExecuTorch with Qualcomm's native AI stack and uses Hexagon vectorization, so this is not llama.cpp compiled for Android. Operator fusion and state reuse were rewritten.

14.179 is a flash number

Start with a roofline estimate. Decode reads the active weights once per token: 3B at 2 bits is 0.75 GB. Whatever sits in cache comes from LPDDR5X, the rest comes from UFS. Peak LPDDR5X bandwidth on Snapdragon 8 Elite Gen 5 is in the 76.8 GB/s range; UFS 4.x sequential reads are quoted around 4 GB/s.

Feed 14.179 tok/s back into that two-tier model and you can solve for effective random read bandwidth: about 2.16 GB/s, roughly half the quoted sequential figure. Nobody is hiding anything. That is just what random small reads cost. Expert weights are stored per layer and per expert, so you are pulling multi-megabyte fragments, not contiguous gigabytes.

The sensitivity to hit rate is the interesting part. Same 2.16 GB/s flash, hit rate 0 gives 2.9 tok/s, 50 percent gives 5.6, 82 percent gives 14.2, which lands on the measured 14.179, and 95 percent gives 37.5. Every bit of headroom in this design is riding on cache hit rate, and 82 percent is not a tuning result. It is a statistical property of MoE routing. Put differently: half the credit for getting 35B-A3B onto a phone belongs to routing stability, not to quantization.

Prefill 470 versus decode 14, and what a 33x gap is good for

Prefill runs one forward pass over the whole input, so a single read of the weights is amortized across hundreds or thousands of tokens. That is how you reach 470. Decode rereads the weights for every token and falls back onto bandwidth. The 33x gap is not a bug. It is what autoregressive decoding costs.

That fact should drive the product design: long input, short output. Hand a 5,000-word document to an on-device model and prefill takes about ten seconds, then 200 words of output costs another fourteen, which feels like two separate stalls. Change the task to five bullets, twenty words each, and prefill is unchanged while output time falls to seven seconds. Same model, usable interaction. Streaming does not fix this by going faster either. Time to first token is set by prefill plus one expert load, and it has nothing to do with decode rate.

The multimodal decimal makes sense for the same reason. Image encoding pushes prefill from 470 to 370 because the vision tower has work to do, while decode rises slightly from 14.179 to 14.262. The visual tokens are already handled during prefill, so decode routing ends up a little more concentrated and the hit rate improves a touch. Differences in the third decimal are exactly what a cache hit rate looks like when it is working.

Take it apart: rerun the published numbers

The script below needs no phone and downloads nothing. It rebuilds speed and bandwidth from public parameters. My local output follows.

def decode_rate(total_b, active_b, bits, dram_gbps, ufs_gbps, overlap):
    per_tok = active_b * 1e9 * bits / 8 / 1e9          # GB of expert weights read per token
    miss = per_tok * (1 - overlap)                       # share that must come from flash
    t = (per_tok - miss) / dram_gbps + miss / ufs_gbps   # seconds per token
    return per_tok, t, 1 / t

TOTAL, ACTIVE, BITS = 35.0, 3.0, 2
DRAM = 76.8          # LPDDR5X peak GB/s
MEASURED = 14.179    # official decode tokens/s

per_tok, _, _ = decode_rate(TOTAL, ACTIVE, BITS, DRAM, 1, 0)
print(f"Weights       {TOTAL * BITS / 8:.2f} GB (2-bit)")
print(f"Per token     {per_tok:.3f} GB read ({ACTIVE}B active)")

t_meas = 1 / MEASURED
hit = per_tok * 0.82
ufs_eff = per_tok * 0.18 / (t_meas - hit / DRAM)
print(f"Implied flash read {ufs_eff:.2f} GB/s at {MEASURED} tok/s")

for ov in (0.0, 0.5, 0.82, 0.95):
    _, _, r = decode_rate(TOTAL, ACTIVE, BITS, DRAM, ufs_eff, ov)
    print(f"  expert hit {ov:>4.0%}  ->  {r:5.1f} tok/s")

print("Dense control: LuxiLLM-1.7B (4-bit, measured 49.21 tok/s)")
w = 1.7 * 4 / 8
print(f"  weights {w:.2f} GB resident, ceiling {DRAM / w:.1f} tok/s, measured {49.21 / (DRAM / w):.0%} of it")

Output:

Weights       8.75 GB (2-bit)
Per token     0.750 GB read (3.0B active)
Implied flash read 2.16 GB/s at 14.179 tok/s
  expert hit   0%  ->    2.9 tok/s
  expert hit  50%  ->    5.6 tok/s
  expert hit  82%  ->   14.2 tok/s
  expert hit  95%  ->   37.5 tok/s
Dense control: LuxiLLM-1.7B (4-bit, measured 49.21 tok/s)
  weights 0.85 GB resident, ceiling 90.4 tok/s, measured 54% of it

There is a cross-check that makes this more than numerology. Run the same roofline against the dense LuxiLLM-1.7B: 4 bits, 0.85 GB fully resident, theoretical ceiling 90.4 tok/s, measured 49.21, which is 54 percent. The other 46 percent goes to compute, dequantization and kernel efficiency. On the MoE path, an 82 percent hit rate predicts 14.2 tok/s against a measured 14.179. Two independent data points land in a plausible range, which is enough to trust the crude model: decode speed is roughly weight bytes divided by effective bandwidth.

To check your own storage you do not need the app. Read the weights from internal storage into the void:

adb shell "dd if=/sdcard/models/qwen3.6-35b-a3b.bin of=/dev/null bs=1M count=2048 iflag=direct"

iflag=direct skips the page cache, which is the only way to measure flash. A 1M block size is generous and sequential, so to estimate random reads drop to 64K blocks and use skip to scatter the offsets. Your number will come in at less than half the sequential figure, and that is where 2.16 GB/s comes from. This also answers a more practical question: if your handset returns 1 GB/s, 35B-A3B runs at 7 tok/s for you. Measure before installing instead of complaining after.

Picking a model: when 35B-A3B earns its keep, and when 2B is enough

The same support list carries 0.8B, 2B and 35B-A3B, and that lineup is the answer. On-device is not one model to rule them all. It is routing per request.

  • Classification, extraction, rewriting, routing decisions: 0.8B to 2B dense, fully resident, 40 to 50 tok/s, never touches flash. These are the bulk of daily calls and the cheapest marginal cost you will find.
  • Offline document Q&A, translation, long summarization: worth the 35B-A3B. Its quality edge shows up on long context and reasoning, and the long-input, short-output shape matches a strong prefill and a weak decode.
  • Jitter-sensitive interaction (keyboard prediction, live captions): stay away from MoE. Expert paging makes p99 ugly, and no average throughput rescues a stuttering UI.

Three engineering bills come due before launch.

Distribution. A 10.9 GB package cannot ship inside an APK, and store size limits will not save you. In-app download with resume and checksum is the only path, which means a first-run wait of ten minutes or more. Either stage it (ship the 2B, fetch the 35B in the background) or build an honest download screen. Do not leave users staring at a blank view guessing.

Heat and power. No sustained-generation power curve was published, and a 1024-token test finishes in under two minutes. Real work (transcription, long rewriting) runs for ten or fifteen minutes straight. After thermal throttling, 14 tok/s dropping below 8 is normal. Plan against the throttled number, not the launch number.

Accuracy. 2-bit expert quantization is not free. LuxiLLM-1.7B is published at CMMLU 58.83, GSM8K 63.00, HellaSwag 63.59 and ARC-C 45.82, which is a 1.7B at higher precision. Nobody published equivalent numbers for 35B-A3B at 2 bits. Before trusting it with real work, run your own dataset. Expert routing degrades in ways parameter counts do not advertise.

On-device inference spent two years stuck on does it fit, and it is now stuck on it fits but it is slow. What actually moved 35B onto a phone is not quantization. It is the structural fact that experts need not be resident, plus a routing distribution that repeats itself. Once you see that, tuning reduces to three words: raise the hit rate, shorten the output, feed it long input.

Further reading

Feedback

Diese Seite ist rein front-end: kein Backend, keine Konten. Feedback geht an GitHub Issues, Discussions oder E-Mail.

Füge dies in das Issue oder die E-Mail ein, um mir zu helfen, das Problem zu finden – es enthält nichts von dem, was du eingegeben hast

Auch:Vorhandenes Feedback ansehen · Feedback per E-Mail (ohne GitHub-Konto):278975598@qq.com