On-Device Multimodal Large Models: Architecture Choices and Deployment Practices

    This article examines the engineering constraints of running multimodal large models on mobile devices, single-board computers, and workstations. It breaks down tiered model sizes, explains the tradeoffs between dense and MoE architectures, and shows how multimodal input (with native audio support) reduces on-device resource and integration costs. It also covers key mechanisms, including dual RoPE configuration and per-layer embeddings (PLE), and offers practical deployment advice on hardware selection, memory planning, quantization, and long-context validation.

    1. On-Device AI Today and Its Core Constraints

    Large models have grown more capable over the past two years, yet most of the strongest ones still run in the cloud. Several forces are now pushing them onto devices. Terminal chip compute keeps increasing, and quantization and distillation have matured. As a result, more and more large models are moving from the cloud to on-device environments such as phones, single-board computers, and even home workstations.

    User expectations are rising as well. On-device models are no longer expected to handle text conversation alone. Users also want them to understand images, videos, and audio, and to handle real-time tasks such as voice interaction and image recognition locally.

    These expectations create several engineering constraints that are hard to avoid:

    • Limited memory and VRAM
    • Power and thermal limits
    • Unreliable network bandwidth

    The key to successful on-device deployment is designing a model that covers multimodal input and still runs smoothly on memory-constrained devices. The sections below look at this from four angles: tiered model sizes, architecture choices, multimodal encoding, and positional encoding.

    2. Tiered Model Sizes for Different Compute Scenarios

    A mature on-device model family usually offers several sizes, from an efficient, low-resource version of roughly two billion parameters to flagship variants of tens of billions of parameters. The point of these tiers is a tradeoff between quality and compute:

    • Small (roughly one to two billion parameters): designed for memory-constrained, power-sensitive phones, embedded systems, and single-board computers. The goal is to run smoothly and respond quickly.
    • Medium to large (roughly three billion parameters): designed for desktop workstations or edge servers with ample memory and VRAM. These models aim to push the quality ceiling higher.

    Parameter count alone should not drive model selection. You also need to weigh active parameters and VRAM or memory footprint. A dense model activates all of its weights on every forward pass, so its compute cost stays steady. An MoE model activates only a subset of its experts for each inference, which often gives it an edge in decoding speed. Even so, loading an MoE model still requires room for all of its experts. Choose models based on the memory capacity and memory bandwidth of the target hardware. “Smaller parameter count” does not automatically mean “faster.”

    3. Dense vs. MoE: Cost Efficiency vs. Quality Ceiling

    A detail that is easy to miss is that, by common industry practice, MoE models usually need more resources than dense models of equal quality at the same scale, because they have to store multiple experts. The latest generation of on-device model families flips this pattern: the MoE version uses fewer parameters, while the dense version uses more. This reflects a clear division of labor:

    • MoE aims for cost efficiency: sparse activation invokes only some experts during inference. This gets results close to a larger dense model at a lower activation cost. It suits compute-constrained, throughput-oriented on-device use.
    • Dense aims for the ceiling: every parameter takes part in every computation. Training and inference are therefore more predictable, and output quality can go higher. Dense models fit tasks with strict accuracy requirements.

    Combining the two lets one model family cover both entry-level devices that can “run” the model and high-end devices that can “run it well,” forming a complete lineup.

    4. Multimodal Input: Text, Images, Video, and Audio in One Model

    A major step forward for on-device models is full multimodal input support. Ideally, the same model can take text, images (at varying resolutions), and video as input. It then maps them into a single representation space for inference. To do this, the model needs a multimodal encoder that turns each modality into a common token sequence before passing it to the backbone network.

    4.1 The Engineering Value of Native Audio Input

    Supporting audio input natively (clips up to tens of seconds long) in smaller models has significant engineering value.

    Traditionally, on-device voice processing depends on a separate speech recognition (ASR) model whose output is passed to the LLM. This creates a two-stage “ASR + LLM” pipeline. It adds memory overhead, increases latency, and makes integration more complex.

    When the large model can understand audio directly, the device no longer needs a separate ASR module. A single model can handle the entire “listen, understand, decide” loop. This matters especially for phone voice assistants, offline voice agents, and simple task-oriented smart devices. It cuts both resource usage and integration complexity on the device.

    5. Key Technical Mechanisms

    5.1 Dual RoPE Configuration for Long Context

    Long context is a must-have for on-device models. Rotary position embeddings (RoPE), widely used across the industry, can lose accuracy on very long sequences because positions fall outside the range they were tuned for. One improvement is a dual RoPE setup:

    • Sliding-window attention layers use standard RoPE. They focus on nearby context and limit how much each layer has to compute.
    • Global attention layers use scaled RoPE (p-RoPE). Adjusting the rotation frequencies lets the model reliably encode and retrieve information at distant positions, even across very long contexts.

    Pairing a standard RoPE for local attention with a scaled RoPE for global attention balances fine-grained local detail with broad context coverage. This makes large models more reliable on long documents, multi-turn conversations, and long-video understanding.

    5.2 Per-Layer Embeddings (PLE): Injecting Token Information on Demand

    In a standard transformer, each token gets one embedding vector before entering the network. That vector must carry all the information later layers might need, right from the start. But different layers, and different stages of a task, often need different information. Packing everything into the initial embedding creates redundancy and limits how well the model can represent the input.

    Per-Layer Embeddings (PLE) add a separate, low-dimensional conditioning path alongside the main embedding. It produces a small dedicated vector for each token at every decoding layer. This separates the “token identity signal” from the “context-aware signal.” Each layer then receives only the token-specific information it needs, rather than relying on the initial embedding as a bottleneck. Illustrative pseudocode:

    1. # Conceptual illustration, not a real interface
    2. def forward(token_ids, context):
    3. base_emb = token_embedding(token_ids) # Main embedding: carries token identity
    4. cond_vecs = per_layer_encoder(context) # PLE: builds a dedicated small vector for each layer
    5. hidden = base_emb
    6. for layer_idx, layer in enumerate(layers):
    7. # Each layer gets only its own conditioning vector on demand,
    8. # instead of receiving all information packed into the initial embedding
    9. hidden = layer(hidden, cond=cond_vecs[layer_idx])
    10. return output_head(hidden)

    Smaller on-device models can inherit and refine this design. It helps them make better use of context with limited parameters and represent information more efficiently.

    6. Deployment Recommendations

    The following practices can help when deploying on-device multimodal large models:

    1. Choose models by hardware tier: use small models on low-memory devices. On workstation-class hardware, larger models buy a higher quality ceiling.
    2. Check memory and bandwidth first: MoE models have fewer active parameters, but all experts still have to fit in memory. Confirm that the target device has enough before committing.
    3. Make use of native audio: in voice scenarios, choose models with native audio support. This removes the need for a separate ASR model and lowers latency and integration effort.
    4. Combine quantization and distillation: shrinking models with INT8/INT4 quantization and knowledge distillation is essential for on-device deployment.
    5. Validate long-context handling: for long documents, long conversations, or long videos, first verify that the model handles long contexts reliably.

    General cloud products, such as object storage, container platforms, and monitoring and alerting (offered by Baidu AI Cloud, for example), can also help. They make it easier to manage model versions, roll out canary releases, and monitor models in production. Together, they improve engineering efficiency from training to launch.

    7. Conclusion

    Next-generation on-device multimodal large models are fundamentally about striking the best balance between limited compute and rich capabilities. Tiered model sizes cover everything from phones to workstations. The division of labor between dense and MoE models balances cost efficiency with the quality ceiling. Multimodal input, especially native audio, expands what on-device AI can do. Dual RoPE and per-layer embeddings, meanwhile, make long context and efficient representation more reliable. Understanding these tradeoffs is what lets developers choose and deploy the right model for each device. It is also what makes it possible to bring multimodal AI to devices both effectively and efficiently.