How to Choose an Open-Source LLM: Dense vs. MoE vs. PLE

    This guide helps developers select the right open-source large language model architecture for their business needs. It explains when dense, Mixture-of-Experts (MoE), and Per-Layer Embedding (PLE) models are appropriate, how to estimate VRAM requirements, how to evaluate latency and throughput, how to plan deployment from a single GPU to edge devices, and how to verify readiness with a pre-launch checklist.

    This article is for developers who need to choose an open-source large language model for their business. After reading, you will be able to determine which scenarios suit dense models, Mixture-of-Experts (MoE) models, and Per-Layer Embedding (PLE) models; learn how to estimate VRAM; judge whether latency meets your requirements; plan a deployment path from a single GPU to edge devices; and complete pre-launch verification with a checklist.

    1. Understand the Three Architectures First

    Dense models activate all parameters during every inference pass. Every token follows the same complete computation path, with no routing involved, which makes implementation and debugging relatively simple. For on-premises single-machine deployments with low concurrency, a dense model is a reliable starting point.

    Mixture-of-Experts (MoE) models split the feed-forward network into multiple expert sub-networks. A gating mechanism selects only a few experts for each token, so the number of parameters activated per pass is far smaller than the total parameter count. The advantage is low per-token computation and high throughput, making MoE well suited for online chat and batch processing. The trade-off is that all expert weights must be available at all times, and routing itself introduces additional overhead.

    Per-Layer Embedding (PLE) models equip each layer of the model with its own small embedding table. During inference, the system looks up the corresponding vector from the table based on the input token and adds it to that layer’s computation. Table lookups require very little computation, but the total volume of embedding parameters can be large. Therefore, at deployment time you can consider placing the embedding portion outside the accelerator’s VRAM to reduce resident memory usage. Refer to the official model card for the specific parameter layout and offloading approach.

    The table below summarizes the key differences among the three architectures.

    Dimension Dense MoE PLE
    Computation scope per inference All parameters Partial experts selected by gating Standard backbone computation; embeddings handled mainly via lookup
    Resident VRAM Must hold all parameters Must hold all expert weights; usage remains high Depends on whether embeddings can be offloaded out of VRAM
    Per-token computation Relatively high Relatively low Depends on backbone size
    Throughput and concurrency Relatively limited Usually more advantageous Depends on backbone and deployment method
    Typical drawbacks Concurrency costs rise sharply as scale grows Routing and inter-expert communication; potentially uneven load Need to confirm inference framework support
    Typical scenarios Single-machine on-premises, stable low-concurrency services Online chat, batch processing Memory-constrained devices, including edge devices

    Architecture alone does not determine model accuracy. Accuracy mainly depends on training data, post-training, and fine-tuning quality. At the same parameter scale, you cannot judge which model is more accurate based solely on architecture—validate with an evaluation set built from your own business data.

    2. How to Estimate VRAM

    VRAM is the resource most easily underestimated during deployment. VRAM requirements can be approximated as:

    VRAM ≈ weights + KV cache + activations + framework overhead

    Weights are calculated from parameter count and storage precision. Each parameter takes 2 bytes in FP16, 1 byte in INT8, and 0.5 bytes in INT4. Consider two example configurations:

    • A 30B dense model: roughly 60 GB in FP16, 30 GB in INT8, and 15 GB in INT4.
    • An MoE model with 26B total parameters: roughly 52 GB in FP16, 26 GB in INT8, and 13 GB in INT4.

    An MoE model may activate only about 3.8B parameters per pass, but all expert weights must still be loaded. Therefore, MoE weights must be estimated based on the total 26B parameters, not the activated parameters. The figures above cover weights only and exclude runtime overhead. Refer to the official model card for exact numbers.

    KV cache grows with context length, concurrent requests, and layer count. The formula is:

    KV cache ≈ 2 × number of layers × number of KV heads × head dimension × context length × concurrent requests × bytes per element

    Suppose an example model has 48 layers, 8 KV heads, a head dimension of 128, uses FP16 caching, and each request has a context of 8,192 tokens. The KV cache for a single request is about 1.5 GiB. Handling 10 such requests concurrently would require about 15 GiB for KV cache alone. This example is only meant to demonstrate the calculation method and does not represent the configuration of any specific model.

    Framework overhead includes the inference framework, CUDA context, and runtime buffers, which typically require reserving several more GB of VRAM, depending on the framework and configuration. Activations also increase as batch size or context length grows.

    In practice, add up weights, KV cache, and framework overhead, then reserve an additional 10% to 20% headroom. The goal is to stay within available VRAM even under peak concurrency.

    3. Latency and Throughput

    MoE is better suited for improving throughput, but the latency of a single request is not necessarily lower. There are three reasons:

    1. Gating and routing must compute expert selection at every layer, and this overhead cannot be skipped.
    2. When experts are distributed across multiple GPUs, tokens must be transferred between GPUs, and this communication adds waiting time.
    3. Requests in the same batch are routed to different experts, and the load may be uneven. A few experts can easily become bottlenecks, pushing up tail latency.

    Dense models have no routing or inter-expert communication. The computation path for a single request is fixed, so latency is easier to predict. If the model fits on a single GPU, dense models typically deliver more stable time-to-first-token (TTFT) under low concurrency. However, a dense model’s computation grows with parameter scale, so costs rise faster as concurrency increases.

    When VRAM is insufficient and you rely on CPU offloading or cross-GPU expert parallelism, latency increases significantly. Such setups are generally better suited for offline batch processing or latency-insensitive tasks.

    To evaluate latency, measure TTFT, time per output token (TPOT), and throughput on your target hardware and inference framework using realistic request lengths—do not rely on headline figures alone.