Open-Source LLM Model Selection Across Sizes: From Workstations to Edge Devices

    This article covers how to choose among four sizes of an open-source model family: a 31B dense model, a 26B MoE model, and two small models around 4B and 2B parameters. It explains the difference between dense and mixture-of-experts architectures, how to estimate VRAM and memory requirements at different quantization levels, multimodal capabilities including native audio input, and how to properly evaluate benchmark scores and end-to-end latency for on-device deployment.

    1. Introduction: Why Bring Open-Source Models to Edge Devices

    Open-source LLM development follows two main paths. One pushes parameter counts higher for stronger reasoning. The other uses quantization, mixture-of-experts (MoE), and similar architectural optimizations to make models run on servers, phones, and embedded devices. The model family discussed here covers both paths with four variants: a 31B dense model, a 26B MoE model, and two small models of roughly 4B and 2B parameters.

    The three most common questions when selecting a model size are: which variant fits your existing hardware, how large the performance gap is between sizes, and how to budget resources. We address each in turn below.

    All parameter counts in this article are nominal values. For specific model names, version numbers, and licenses, refer to the publisher’s official model cards.

    2. Specification Matrix: Dense vs. Mixture-of-Experts

    A dense model uses all of its parameters in every inference pass. The 31B dense model has a straightforward architecture and predictable inference behavior. It suits scenarios that demand high output quality and have ample hardware resources, such as code generation, long-document understanding, and complex reasoning on workstations.

    A mixture-of-experts model splits the network into multiple expert subnetworks, activating only a subset of experts per token. The 26B MoE model’s total parameter count determines how many parameters it stores. The number of activated parameters per computation is much smaller than the total; the exact figure depends on the number of experts and the routing configuration, so check the official documentation. As a result, its per-token compute cost is typically lower than a dense model of equivalent total size.

    Keep two things in mind with MoE models. First, even though only some experts are activated, all expert weights usually must remain resident in VRAM or memory, so your memory budget should be based on total parameters. Second, total parameters represent a capacity ceiling only. Actual capability also depends on training data, activation paths, and routing quality — you cannot assume it matches a 26B dense model. MoE models are better suited to backend services that handle multiple concurrent requests and need to balance throughput against memory footprint.

    The ~4B and ~2B small models target power- and memory-constrained devices such as phones, Raspberry Pi boards, and smart home gateways. Their value lies in whether they can complete speech and multimodal tasks within limited memory; benchmark rankings are a secondary concern.

    3. Estimating VRAM and Memory Budgets

    Model weight size can be roughly estimated as parameter count multiplied by bytes per parameter:

    • FP32: 4 bytes per parameter
    • FP16 or BF16: 2 bytes per parameter
    • INT8: 1 byte per parameter
    • INT4: 0.5 bytes per parameter

    Taking the 31B dense model as an example: FP32 weights are about 124GB, FP16 about 62GB, INT8 about 31GB, and INT4 about 16GB. These figures cover only the weights. Inference also requires KV cache, activations, and framework runtime overhead, and memory usage grows noticeably in long-context scenarios. Before deploying, actually load the model on the target hardware and verify the headroom with real measurements.

    This lets you judge fit for common hardware. A single 24GB GPU cannot reliably run the INT8 version of the 31B model, since the weights alone are about 31GB. The 24GB card is better suited to the 4-bit version, though headroom is limited — for long contexts you will need to shorten the context length or use CPU offloading, the latter of which significantly slows inference.

    For the 2B-class model, INT4 weights are on the order of 1GB. Audio encoders, vision encoders, and embedding layers also consume space, so actual memory usage exceeds the pure weight estimate.

    4. Multimodal Capabilities: Images, Video, and Native Audio

    All models in this family support text and image input; video input support varies by size. The variable-resolution input approach mentioned above reduces detail loss from image rescaling, which is useful for content like spreadsheet screenshots, receipts, and charts. For the specific supported resolution range, refer to the official documentation and validate with your own samples.

    The smaller variants support native audio input. A traditional on-device voice assistant typically consists of three stages: voice activity detection (VAD), automatic speech recognition (ASR), and natural language understanding (NLU). Each stage can introduce errors, and those errors compound across stages. A native-audio model accepts audio directly, eliminating the standalone ASR module. This reduces both component count and memory footprint, and cuts the error accumulation across intermediate stages.

    Two caveats apply. First, the per-segment audio length limit is about 30 seconds; longer audio must be split into segments. Second, whether the model can interpret paralinguistic cues such as tone and speaking rate depends on the training data. Do not treat this as a guaranteed capability — verify it with your own speech samples.

    5. Performance Evaluation: How to Read Benchmark Scores

    Public benchmark scores should only serve as a reference. In some public comparisons, this model family scores slightly below certain popular peer models. But benchmark scores can diverge from real-world task performance, so when evaluating you should:

    1. Test with your own task set rather than relying solely on aggregate leaderboards.
    2. Track instruction-following behavior, such as whether constraints like “output only the final answer” are respected.
    3. For multi-step reasoning tasks, distinguish between different error types, such as wrong final answers versus redundant intermediate steps.

    Intent recognition accuracy for voice commands must be measured against a fixed command set. Prepare a labeled set of speech samples covering different accents, background noise levels, and speaking rates, then compute accuracy, missed-detection rate, and false-trigger rate. Only numbers obtained this way are suitable for comparison.

    End-to-end latency should be measured from the moment the user finishes speaking a command to the moment the action completes.