With CPU RAM and NVMe offloading, storage capacity alone lets you load almost any open-weight model on almost any machine. What matters in practice is the prefill (prompt reading) and decode (token generation) comfort you accept. On a smartphone, a Mixture of Experts (MoE) architecture like Inkling-2-Mini reaches 25.48 tok/s inside 12 GB of RAM, faster than human reading speed, with zero thermal throttling and zero cloud calls.
Why "which model fits on which AI box?" is the wrong question
After publishing my articles on the DGX Spark and Asus GX10, local AI boxes, the Mac Studio M5 Ultra and the Xiaomi AI Cube, readers repeatedly asked for a strict matrix mapping each model to each box.
After contributing to Strata, Project Maya and building my own engine Tarkh, my answer is straightforward. Almost any model can now run on almost any hardware that has enough storage. Simple offloading mechanisms to system RAM and NVMe drives have removed the binary wall between running and failing.
What actually separates hardware tiers is the comfort threshold you are willing to tolerate. That comfort comes down to two numbers, prompt prefill time and token decode speed, both governed by memory bandwidth, CPU throughput and transfer latency.
From an RTX 3090 (64 to 128 GB RAM) to a smartphone
On my own workstation, I run DeepSeek V4.1 Flash and GLM-5.3 on an NVIDIA RTX 3090. Even when I only had 64 GB of system RAM, combining CPU offloading with occasional NVMe reads kept those models genuinely usable, as long as I accepted short waits on heavier prompts.
Upgrading to 128 GB of RAM brought a clear jump in comfort and speed by keeping more experts resident in memory. That hands-on work also led directly to my upstream inference optimisations on Strata (+10% tokens/s) and Project Maya (about 2× DeepSeek decode at 64k context).
Once that was proven on desktops and AI boxes, I wanted to test the extreme end of the spectrum. How far can you push a regular smartphone? On a stock Samsung Galaxy S24 Ultra with 12 GB of RAM, I managed to run a 27-billion-parameter model (Inkling-2-Mini) at 25.48 tokens/s in decode.
At 25 tokens per second, text streams as fast as, or faster than, a human can read. Google has already built mobile runtimes for smaller models such as Gemma 4, yet they often feel less fluid or more constrained in capability. Combining a 27B MoE model with a purpose-built engine changes the feel of on-device AI completely.
How Inkling-2-Mini (27B looped MoE) works
Fitting a 27B model into a phone without losing intelligence is not luck. Inkling-2-Mini combines two architecture choices that shine on memory-constrained devices: a looped core and sparse MoE (Mixture of Experts) routing.
The model stores only 24 physical layers in RAM, yet executes 48 logical layers. The first 6 layers process input, the 12 core layers (6 through 17) run 3 times in a loop controlled by rank-64 gates (loop_gain and loop_forget), and the final 6 layers produce the output. You get 48 layers of reasoning depth for half the memory footprint.
| Property | Base Inkling-2-Mini | Tarkh Mobile optimisation |
|---|---|---|
| Total parameters | ~27 billion (MoE) | 128 intact experts (5.60 to 7.26 GiB) or 80 REAP experts (4.27 GiB) |
| Physical / logical layers | 24 physical → 48 logical (core 6–17 × 3) | Specialized rank-64 loop-gate kernels |
| Active experts per token | 128 experts, K=8 active by default |
K=6 (speed/quality balance) or K=4 (peak speed) |
| Attention & context | GQA 24Q / 8KV (dim 128), SWA 1,024 + global (1M) | 128k Turbo mode with Q4 cold KV cache (−47% memory) |
| Vocabulary & output head | 200,058 tokens (full lm_head every token) |
Two-stage Hot-16k lm_head (−228 MiB RAM, 7.1 → 1.5 ms) |
The decisive factor on mobile is how few experts are read per token. Out of 128 experts per layer, only 4 to 6 are activated for a given token, roughly 3% to 5% of MoE weights. You get the knowledge capacity of a 27B model while paying the memory bandwidth cost of a tiny model.
Smartphone architecture: processors and real memory bandwidth
Getting peak throughput out of a Samsung Galaxy S24 Ultra (Snapdragon 8 Gen 3, 12 GB LPDDR5X RAM, UFS 4.0 storage) requires respecting the silicon layout. The CPU combines 1 Cortex-X4 Prime core, 5 Cortex-A720 performance cores and 2 Cortex-A520 efficiency cores.
In quanta_core, Tarkh's C++ runtime, token-by-token decode is pinned strictly to the 6 performance cores [7,2,3,4,5,6] running hand-tuned ARMv8.2 NEON SDOT kernels for Q2_0, Q4_0 and IQ1_XS. The 2 small A520 cores stay free for Android. During prefill, where matrix multiplication dominates, the Adreno 750 Vulkan GPU runs simultaneously alongside the CPU to read prompts at 19.23 to 27.8 tokens/s.
Snapdragon 8 Gen 3 LPDDR5X memory has a theoretical ceiling around 76.8 GB/s. Under real MoE inference, with scattered expert reads and attention, exploited bandwidth sits closer to 35–48 GB/s. Just as importantly, a 12 GB Android phone hits a hard resident RAM cliff around 6.5 GiB.
Once a GGUF file crosses that cliff, Android triggers heavy major page faults (majflt) to UFS 4.0 storage (3–4 GB/s) or kills the app via LMK OOM. That is what happens to Unsloth's smallest public quant (7.23 GiB), which prefills at 4.50 tok/s before Android terminates it on 12 GB RAM, whereas Tarkh's sub-6.5 GiB tiers stay 100% resident at majflt = 0.
Quantizing on Dual RTX 3090 + 128 GB RAM and testing over USB
Building truly mobile-grade quantizations takes rapid iteration. To produce the 10-tier lineup hosted on Hugging Face (RTorney/Inkling-2-Mini-Tarkh-Mobile), I used my dual RTX 3090 (48 GB VRAM) + 128 GB RAM workstation with the Galaxy S24 Ultra plugged in over USB.
Every candidate followed the same four-stage loop: compute an importance matrix (imatrix) from the official BF16/NVFP4 checkpoint, build mixed quantizations (fast NEON SDOT Q2_0 on sensitive layers, IQ1_XS on tolerant layers, plus REAP pruning down to 80 experts for the 4.27 GiB tier), run blind 100-chunk (102,400-token) KL-Divergence evaluation, and push the model over ADB/USB to profile real latency on the phone.
Stage-by-stage profiling, Hot-16k and MTP (Multi-Token Prediction)
Jumping from 10–12 tok/s to more than 25 tok/s did not come from one silver bullet. I profiled every millisecond of a token inside quanta_core (attention projections, Q2_0 MoE, IQ1_XS MoE, down projection, lm_head and router) and attacked each bottleneck in order.
- Replacing expensive
IQ1_XSlayers with native NEONSDOTQ2_0: unpackingIQ1_XSlookup tables costs 21.6 ms/tok in a 100%IQ1_XSbuild. Moving sensitive layers toQ2_0immediately recovers several milliseconds per token. - Accelerating the 200,058-token vocabulary with
Hot-16k lm_head: scoring all 200,058 logits every token took 7.1 ms/tok. A two-stage shortlist covering the 16,384 hottest tokens (27.3 MiB inQ4_0) drops output-head latency to 1.5 ms/tok and saves 228 MiB of RAM, with an exact fallback to the full 200k table whenever confidence is below threshold. - Keeping 128k context usable: in opt-in Turbo mode, compressing the cold KV cache to
Q4cuts memory by 47% and drops 128k attention latency from 219.4 ms to 24.9 ms (−88.7%), sustaining 10.65–10.73 tok/s with over 5 GiB of free RAM. - Adding speculative decoding and MTP (Multi-Token Prediction):
quanta_core/speculate.hppships a dual lossless path. First, a zero-RAM Prompt Lookup Drafter (PLD) delivering +30% to +120% speedups on code, JSON and RAG. Second, a lightweight 1-layer Quanta-EAGLE-3 / MTP draft head (~27 MiB inQ4_0with a 16k shortlist) that shares Inkling-2-Mini's existingtoken_embdandoutput.weightwith zero vocabulary duplication and strict gating so uncertain drafts never waste MoE reads.
Real Galaxy S24 Ultra benchmarks: is local AI on a phone viable?
All numbers below were measured on a stock Samsung Galaxy S24 Ultra (12 GB RAM, clean RAM reset before each run) and documented in Tarkh's benchmark report.
| GGUF model | Size | Experts / K | Top-1 match | S24 Ultra (12 GB) decode | Best fit |
|---|---|---|---|---|---|
REAP-80E-K4 |
4.27 GiB | 80E / K=4 | 82.75% | 25.48 tok/s (majflt=0) | 8–12 GB phones, peak speed |
Apex-Speed-K6 |
6.39 GiB | 128E / K=6 | 87.41% | 22.65 tok/s (majflt=0) | Best balance on 12 GB phones |
128E-K4-Apex |
6.43 GiB | 128E / K=4 | 85.85% | 23.65 tok/s (majflt=0) | Fastest intact 128-expert tier |
Prism-K6 |
6.47 GiB | 128E / K=6 | 88.47% | 9.63 tok/s @ 2k (majflt=0) | Highest quality under 6.5 GiB |
Prism-Max-K6 |
7.26 GiB | 128E / K=6 (K=8) | 89.62% (90.54%) | 16 GB+ recommended | 16 GB phones, Pi 5 16 GB, Desktop |
| Unsloth UD-IQ1_S | 7.23 GiB | 128E / K=8 | 91.44% | OOM / LMK on 12 GB (pp 4.50 t/s) | Desktop / GPU / 16 GB+ |



Thermally, a continuous 3-minute stress test moves battery temperature from 31.9°C to 34.5°C at roughly 5.7 W active draw (about 3.4 hours of continuous generation on a 5,000 mAh battery, with zero thermal throttling). The app also ships offline PDF, PowerPoint and Markdown exports, optional zero-API-key web search, and a USB Compute Server mode that turns a phone into a compact, 100% sovereign remote inference workstation for Claude Code, OpenCode or Continue.dev.
The engine is still fairly experimental, yet it opens a very practical angle. You can repurpose older smartphones sitting in a drawer, many of which already pack plenty of ARM64 cores and RAM, into dedicated local inference nodes over USB. For private offline workflows (notes, PDF summaries, drafting, light coding on the move), it is already genuinely usable. Still, while 25 tok/s at short context feels smooth, long contexts remain the main weak spot even with 128k Turbo mode. For autonomous multi-file coding agents or 100B+ frontier models, a well-maintained GPU workstation (see my RTX 3090 thermal maintenance guide) or a dedicated AI box remains the better tool.
What this means next: frontier AI tooling and the rise of MoE
Two lessons stand out from this project. First, with today's frontier coding AI models, a single engineer can build a full C++/ARM64/Vulkan inference engine, write custom NEON kernels, quantize a 27B model and publish reproducible benchmarks in days. Next, I plan to push long-context throughput further, test additional models and keep adding research-driven optimisations to the engine. There are still extra tokens per second left to unlock, and likely more ideas under the hood that will push local AI even further.
Second, Mixture of Experts (MoE) is set to become the default architecture for local, mobile and edge inference. Decoupling total stored knowledge (27B, 100B or more) from the small slice of parameters actually read per token directly solves the number-one bottleneck of consumer hardware: memory bandwidth.
Sources and methodology
Ruben Torney, Tarkh open-source repository (v1.0.0), published December 1, 2026. Source code for
quanta_core(inkling2.hpp,speculate.hpp,kernels.hpp), Android appquanta_appand full protocol.Hugging Face, RTorney/Inkling-2-Mini-Tarkh-Mobile (Apache-2.0), published December 1, 2026. 10 mobile and edge GGUF tiers from 4.27 to 7.26 GiB and
Hot-16k lm_headshortlist accelerators.RTorney Hugging Face profile, accessed December 1, 2026. Hosts the Tarkh mobile models and
Inkling-2-Mini-Pi-GGUFfor Raspberry Pi and ARM64.Tarkh Samsung Galaxy S24 Ultra benchmark report, accessed December 1, 2026. Blind 100-chunk KL-Divergence (102,400 tokens) against BF16/NVFP4 on Dual RTX 3090, Android RAM hygiene, 2k to 128k scaling and thermal telemetry.
Previous open-source local inference contributions: Strata (PR #1904 and #1905) and Project Maya (PR #476).


