Multi-Size Open-Source LLMs at the Edge: Selection, Architecture, and Cloud-Edge Collaboration

    This article examines how multi-size open-source LLM families—dense models, mixture-of-experts models, and lightweight edge variants—are selected and deployed. It covers native multimodal input and edge agents, dual RoPE for long context, PLE for embedding bottlenecks, and a practical cloud-edge split, including distribution, authorization, privacy, and cost considerations.

    In recent years, competition among open-source large models has shifted from simply increasing parameter count toward overall capabilities across multiple sizes, multiple architectures, and cloud-edge collaboration. A leading technology company recently released a family of open-source models whose specifications range from large models to lightweight edge models. This article does not discuss brands. It explains, from a technical perspective, the architecture choices of such models, their multimodal capabilities, long-context handling, and deployment approaches for cloud-edge collaboration. For parameter counts and performance data mentioned here, refer to the publisher’s official documentation.

    1. How Model Specifications Are Divided

    This model family includes an approximately 31B dense model, an approximately 26B mixture-of-experts model, and two lightweight edge specifications, E4B and E2B. Different specifications correspond to different hardware tiers, from phones and single-board computers to home workstations and servers. When selecting a model, first confirm the target device’s memory and compute capacity, then decide which specification to use.

    A dense model activates all parameters when generating each token. Its inference structure is straightforward, and it is often more stable on tasks that require high-precision output, but its compute load and memory footprint are also higher.

    A mixture-of-experts (MoE) model splits the network into multiple expert sub-networks and activates only a subset at a time. This allows the total parameter count to be large while keeping the compute load per inference relatively small. However, it has two costs: first, enough memory is required to store all expert weights; second, the routing mechanism may cause uneven expert load. Therefore, the actual benefit of an MoE model depends on the deployment environment and task type, and it cannot be judged by parameter scale alone.

    2. Native Multimodal Input and Edge Agents

    The full model family supports text, image, and video input, with variable-resolution support for images. The significance of variable resolution is that the model can process images at their original aspect ratio, reducing detail loss caused by cropping or scaling. However, the higher the resolution, the more visual tokens are produced, and edge memory usage and inference latency increase accordingly. During deployment, set the maximum resolution and video frame extraction rate based on device capability.

    The E2B and E4B specifications support audio input of up to 30 seconds. The model can directly receive short speech clips and complete simple voice commands, such as setting a reminder, checking a schedule, or providing step-by-step cooking guidance. This capability is not equivalent to a full speech recognition system. It is suitable for short utterances and single-command scenarios. For long conversations, multiple simultaneous speakers, noisy environments, or tasks that require precise transcription, a dedicated ASR module or cloud service is still needed.

    Deployment should consider the following points:

    • Microphone permission and user authorization need to be designed separately, and users should be clearly informed of how audio is processed.
    • When audio is too long or recognition fails, a fallback strategy should be defined, such as prompting the user to repeat or handing the request to the cloud.
    • Local processing can reduce audio leaving the device, but regional privacy and data protection regulations still apply.

    3. How Dual RoPE Supports Long Context

    Long context is a technical challenge for large models. Position encoding determines how a model perceives the relative positions of tokens. If position information is handled poorly, the ability to extract information from long texts degrades.

    This model family uses an alternating structure of local attention and global attention. Sliding-window layers focus only on a nearby segment of context, mainly maintaining local coherence, and use standard RoPE. Global attention layers handle dependencies across longer distances; the source describes them as using a proportional RoPE (p-RoPE) configuration. The exact layer ratios, window lengths, and p-RoPE parameter settings should be confirmed in the official technical documentation, and this article does not infer them.

    From a design perspective, this hybrid structure lets local layers carry most of the computation and lets global layers handle long-distance relationships when needed, balancing computational cost and long-range modeling capability. This conclusion needs to be verified through testing, such as long-document question answering and cross-paragraph summarization tasks.

    The following code only illustrates the mapping between layer types and position encoding. It is not an official implementation and cannot be run directly.

    1. def apply_position_encoding(hidden_states, layer_type):
    2. # Illustration: select position encoding based on attention layer type
    3. if layer_type == "sliding_window":
    4. return standard_rope(hidden_states)
    5. if layer_type == "global_attention":
    6. return proportional_rope(hidden_states)
    7. return hidden_states

    4. How PLE Alleviates the Embedding Bottleneck

    In a standard Transformer, each token receives only one embedding vector at the input layer, and both identity information and context-related information must be compressed into that single vector. As the number of layers increases, this initial information may be diluted.

    The mechanism called PLE, a parallel low-dimensional conditioning pathway, adds a parallel low-dimensional pathway outside the main network. Each token can obtain a dedicated low-dimensional vector at each decoder layer, and each layer reads it as needed. Information therefore changes from being packaged all at once to being accessed layer by layer.

    This design can reduce the burden on the input embedding layer and provide additional token-specific information to deep layers. The cost is increased parameter storage and memory access overhead. Whether it is worthwhile needs to be measured on the target device in terms of memory usage and latency. The source notes that this mechanism is inherited from the previous-generation architecture; this statement should be checked against the official technical report.

    5. How to Implement Cloud-Edge Collaborative Deployment

    Edge models are suitable for low-latency, privacy-sensitive tasks, while the cloud is suitable for complex reasoning and long-document processing. One feasible division of work is as follows:

    1. The edge handles short voice commands, image pre-screening, and simple question answering.
    2. A gateway decides whether a request should go to the cloud based on task complexity, input length, or device state.
    3. The cloud uses 31B dense model or 26B MoE model instances to handle long-document summarization and complex reasoning.

    On a cloud platform, object storage can be used to store model weights, and a CDN can distribute updates to edge devices. Where available and applicable, Baidu AI Cloud’s object storage, CDN, container platform, and elastic compute capabilities can cover part of this work. Deployment also needs the following additions:

    • Perform integrity checks during distribution, such as hash comparison of weight files, to prevent corrupted or tampered models from being loaded.
    • Edge downloads and updates require authentication, and device access tokens should have expiration times.
    • Before uploading data to the cloud, users must be clearly informed and give consent, and the storage region must be confirmed to meet compliance requirements.
    • When launching cloud instances on demand, estimate peak concurrency, instance startup time, and per-inference cost, then compare them with always-on instances.

    Cloud-edge collaboration may reduce overall cost, but whether it does depends on three factors: the proportion of traffic offloaded to the edge, cloud instance startup and idle costs, and network transfer fees. Before launch, run calculations based on real traffic before drawing conclusions.

    6. Conclusion

    The value of multi-size open-source models is that they let developers choose based on device and task. During selection, use the following order: first confirm the device’s memory and latency requirements; then confirm whether the task needs audio, video, or long-context capabilities; finally assess the cost and compliance requirements of cloud supplementation. Before launch, test with your own task set and verify specifications and technical details against the official documentation.