On-Device LLM Inference: Local AI Appliance Architecture and Fast-Slow Dual-Model Design

    A technical breakdown of a desktop-scale on-device LLM inference prototype: a three-chip layered compute stack, near-memory computing that breaks the memory bandwidth wall, and a fast-slow dual-model architecture that routes requests between a small model and a large model for efficient local deployment.

    On-Device LLM Inference Moves Into the Deep Water: What a Desktop AI Inference Prototype Reveals About Local Deployment

    A notable signal has emerged recently in the on-device AI space: a vendor unveiled a desktop-scale engineering prototype for local LLM inference, built around three chips with distinct roles, and demonstrated fully local execution of a tens-of-billions-parameter model. Setting aside the brand, the technical路线 demonstrated by this prototype represents an important evolution in on-device LLM deployment. This article strips away the product-specific details and examines the architecture logic behind this “fully in-house on-device AI compute stack” from a general technical perspective.

    1. Three-Chip Collaboration: A Layered On-Device AI Compute Stack

    The core idea of this prototype is to assign different compute demands to chips with different roles, forming a layered compute stack. It can be roughly divided into three tiers:

    Tier 1: Flagship mobile SoC — main control and general-purpose compute. Built on an advanced process node, this chip features a multi-core all-big-core CPU, a large GPU, and an NPU in the hundreds-of-TOPS range, with the NPU typically optimized for the vendor’s own on-device small models. It acts as the system’s “front desk,” handling OS scheduling, lightweight inference tasks, and high-frequency, low-latency interactive responses.

    Tier 2: Near-memory computing AI accelerator — targeting the memory bandwidth bottleneck. This is the most technically interesting piece of the system. It uses wafer-level vertical stacking (Wafer-on-Wafer) and hybrid bonding with sub-micron-scale bonding pitch to achieve TB/s-class near-memory bandwidth. This tier serves high-speed inference for small-to-mid-sized models.

    Tier 3: High-compute inference chip — for large-parameter models. Equipped with multi-core CPUs and multi-core high-compute NPUs, it supports unified memory in the hundreds-of-GB range, with the goal of fully loading models above tens of billions of parameters into memory for local inference. The whole system achieves local LLM deployment at roughly 150W of sustained power output.

    Together, these three tiers form a “compute pyramid”: higher tiers offer lower latency and faster response, while lower tiers offer greater capacity and stronger capability.

    2. The Memory Wall: The Core Tension in On-Device LLM Inference

    Why design a dedicated near-memory accelerator on top of a traditional SoC? The answer lies in the fundamental nature of LLM inference: it is a memory-bandwidth-bound workload.

    During autoregressive decoding, generating each token theoretically requires reading the entire model weights from memory once. Take an INT8-quantized 3B model: the weights are roughly 3GB. With 100GB/s of memory bandwidth, the theoretical inference ceiling is about 33 tokens/s; raise the bandwidth to the 1.2TB/s class, and the theoretical ceiling jumps to several hundred tokens/s. Compute (TOPS) has little to do with this. Traditional mobile SoCs rely on LPDDR memory with bandwidth typically in the low hundreds of GB/s — the fundamental reason on-device models “can run but can’t run fast.”

    Near-memory computing attacks the problem by changing the physical structure of data movement: instead of fetching data across a traditional memory bus over a distance, the memory wafer and the compute logic wafer are bonded face-to-face like two sheets of paper, connected by a massive array of copper contacts at micron-scale pitch. This face-to-face metal-layer interconnect dramatically shortens data travel distance, cuts data-movement energy, and — thanks to extremely high interconnect density — moves far more data in parallel. Publicly demonstrated results show this class of solution running a 3B dense model at several hundred tokens per second. For local interactive use cases, that already exceeds human reading speed and is genuinely practical.

    Developers can reason about this bottleneck with a simple estimation model:

    1. # Estimate the theoretical speed ceiling for autoregressive decoding
    2. def max_tokens_per_sec(bandwidth_gbps, model_params_b, bytes_per_param):
    3. weight_size_gb = model_params_b * bytes_per_param
    4. return bandwidth_gbps / weight_size_gb
    5. # Traditional LPDDR vs near-memory computing (INT8 3B model example)
    6. print(max_tokens_per_sec(114, 3, 1)) # ~38 tokens/s
    7. print(max_tokens_per_sec(1220, 3, 1)) # ~400+ tokens/s

    3. Fast and Slow Systems: A Dual-Model Collaboration Paradigm

    Another intriguing design choice in this prototype is the dual-model architecture combining a tens-of-billions-parameter large model with a small model — described in the official demo as fast-slow system switching. The idea echoes the classic analogy of dual cognitive systems: the fast system handles intuitive, low-latency immediate responses, while the slow system handles deliberate, in-depth complex reasoning.

    A reasonable engineering reconstruction looks like this:

    • Fast system (small model): Resides permanently on the near-memory accelerator, handling high-frequency everyday requests such as instruction understanding, simple Q&A, intent classification, and text continuation. Its millisecond-level first-token latency keeps interactions fluid.
    • Slow system (large model): Deployed in the large unified memory of the high-compute chip. Only when the fast system judges that a task exceeds its capability is the request routed to the large model for deep reasoning — complex code generation, multi-step logical derivation, long-document analysis, and so on.
    • Routing and scheduling: The main SoC acts as the request dispatcher, deciding whether to “escalate” to the slow system based on rules (keywords, task types) or on confidence scores from the small model.

    This architecture is in the same lineage as “model routing” and “speculative decoding” common in cloud inference: use a low-cost path for most requests and reserve expensive compute for cases that truly need it. On-device, it also delivers two advantages the cloud cannot match: privacy data never leaves the device, and stable availability without network dependency.

    4. Takeaways for Developers and Enterprises

    From engineering prototypes like this, we can extract a few general lessons for putting on-device AI into production:

    1. Diagnose the bottleneck before choosing hardware. The bottleneck in LLM inference is usually bandwidth, not compute. Piling up TOPS won’t improve decoding speed; when evaluating hardware, prioritize memory bandwidth and capacity.
    2. Quantization matters as much as model selection. INT8 and even INT4 quantization can cut memory footprint several-fold — a prerequisite for fitting large models on-device — but the impact of accuracy loss on your business must be assessed.
    3. Hybrid model architectures are the best cost-performance trade-off. A single very large model can neither fit on-device nor run fast. A layered “small model gatekeeper + large model for hard tasks” architecture balances user experience and cost.
    4. Watch ecosystem compatibility. Hardware at the prototype stage is usually deeply optimized only for the vendor’s own models. When selecting hardware, check support for mainstream open-source model formats and inference frameworks to avoid being locked into a single model ecosystem.

    Conclusion

    The emergence of desktop-scale AI inference prototypes marks a shift for on-device LLMs from “running demos” to “supporting real workloads.” Near-memory computing breaking the memory wall, fast-slow dual systems optimizing compute efficiency, and unified memory architectures expanding model capacity are three technical threads worth tracking for anyone following AI infrastructure. Going forward, a complementary model of on-device inference and cloud LLM services (such as model training and cloud inference capabilities offered by providers like Baidu AI Cloud) may become the mainstream form of enterprise AI architecture.