Edge Deployment and Evaluation of Multi-Scale Open-Source LLMs

    Evaluating an open-source LLM family for on-device use requires more than benchmark scores. This article presents a four-dimensional evaluation framework covering scenario fit, resource constraints, modality coverage, and task deliverability. It maps dense models, Mixture-of-Experts models, and efficient small models to different hardware tiers, discusses on-device multimodal inputs, and defines reproducible metrics and layered test suites for quality, latency, memory, power, and task success. It also covers model routing and agent engineering patterns, and concludes with a tiered deployment strategy for edge products.

    Evaluation Approach: From Single-Model Benchmarks to a Scenario–Resource–Modality–Task Loop

    An open-source LLM family with multiple parameter sizes and architectures cannot be evaluated by simply asking whether it is good. A more useful evaluation loop checks four dimensions:

    • Scenario fit: Does the model match the intended use case?
    • Resource affordability: Can the target hardware tolerate the cost?
    • Modality coverage: Do the input and output modalities form a complete loop for the task?
    • Task deliverability: Can the task actually be completed with the available models and resources?

    Within the same model family, dense models, Mixture-of-Experts (MoE) models, and efficient small models target different hardware tiers. User experience also changes significantly with quantization strategy, inference framework, input modality, and task complexity.

    Experience should therefore be broken into observable metrics: first-token latency, P50/P95 end-to-end latency, peak memory, energy per task, task success rate, multi-turn stability, hallucination and safety behavior, and offline availability. Only when these metrics are placed into concrete scenarios can evaluation avoid relying on leaderboard rankings or small-sample tests as engineering conclusions.

    Spec Matrix and Deployment Positioning: Resource Tiers First, Capability Later

    A multi-scale model family is valuable because it covers a continuous range from mobile phones and embedded devices to edge boxes and professional workstations. The models can be understood in three resource classes.

    Model class Resource profile Typical deployment target Evaluation focus
    Dense large models Large parameter count, high memory/VRAM usage, stable inference Professional workstations, edge servers Complex-task quality, long context, throughput
    Mixture-of-Experts models Total parameters and activated parameters are separated; computation is routed by activation Mid-to-high compute edge devices, workstations Routing stability, memory residency, tail latency
    Efficient small models Small parameter count, suitable for quantization and low-power inference Mobile devices, embedded systems, single-board computers Cold start, power, memory peak, offline tasks

    MoE models should not be judged by total parameter count alone. Deployment must separate total parameter residency, activated parameters, KV cache, and runtime buffers. A general estimate is:

    1. Memory/VRAM requirement ≈ weight storage + KV cache + activations and temporary buffers
    2. Weight storage ≈ parameter count × bytes per parameter

    For example, 16-bit weights use about 2 bytes per parameter, while 4-bit weights use about 0.5 bytes per parameter.

    Small models are not valuable only because they are inexpensive. They enable privacy, offline, and low-latency closed loops on the device. However, running a simple task is not the same as production readiness. Long-duration operation, thermal throttling, memory fragmentation, abnormal inputs, and permission boundaries must all be validated.

    On-Device Multimodal: Combining Text, Image, Video, and Short Audio

    Multimodal input is a key capability for on-device agents. Text handles instructions and tool calls. Image input handles interface understanding, document recognition, and scene description. Video input handles temporal event reasoning. Short audio input reduces dependence on an external speech recognition module.

    Native audio input is especially useful on mobile devices because it shortens the pipeline, improves privacy, and reduces end-to-end latency. It fits simple voice commands, status announcements, and offline task triggers.

    Multimodal experience evaluation should not only check which input types are supported. It must also cover preprocessing, resolution adaptation, frame sampling strategy, audio front-end processing, streaming capability, and failure degradation. For images, evaluation should include small objects, blur, rotation, and lighting changes. For video, frame-sampling density and memory growth matter. For audio, noise, echo, accents, and truncated short commands matter.

    An on-device deployment should define a clear degradation path: reduce resolution or frame-sampling density when memory is constrained, switch to text confirmation when audio quality is poor, and ask the user for confirmation when model confidence is low.

    Performance and User Experience: Turning Subjective Impressions into Reproducible Experiments

    Statements like “the experience is better than expected” or “it is slightly worse than the comparison model” are provisional subjective judgments. They are not engineering conclusions. A more reliable approach is to build a layered evaluation suite.

    1. Basic capability set: instruction following, question answering, summarization, extraction, code generation, and structured output.
    2. Multimodal set: image question answering, document understanding, video event description, and short audio instructions.
    3. Edge task set: offline question answering, UI understanding, simple tool calls, local notifications, and status queries.
    4. Robustness set: noise, low resolution, long input, repeated instructions, conflicting instructions, and unauthorized requests.
    5. Resource set: cold start, first token, P95 latency, peak memory, power consumption, and thermal stability.

    An evaluation pipeline can be organized as follows:

    1. def evaluate(model, suite, resource_probe):
    2. metrics = []
    3. for case in suite:
    4. start = now_ms()
    5. output = model.generate(case.inputs)
    6. latency = now_ms() - start
    7. metrics.append({
    8. "case_id": case.id,
    9. "score": score_output(output, case.reference),
    10. "latency_ms": latency,
    11. "peak_mem_mb": resource_probe.peak_memory(),
    12. "power_mw": resource_probe.avg_power()
    13. })
    14. return summarize(metrics)

    Small-sample tests are directional only. Comparison charts cannot replace real scenarios. On-device experience is strongly influenced by quantization, thread count, thermal control, and background load. Therefore, record the full configuration and compare models under the same inputs and the same resource budget. For interim tests, state clearly that a full evaluation has not yet been completed, rather than projecting partial experience into general conclusions.

    Edge Agent Engineering: Model Routing Matters More Than Model Stacking

    A practical use of a multi-scale model family is model routing. Simple tasks can run on efficient small models, complex multimodal tasks can run on larger models, and the system can downgrade when resources are constrained. Routing should be based on task type, modalities, latency budget, memory budget, and privacy requirements, not just the model name.

    1. profile = {
    2. "task": "image_qa",
    3. "latency_budget_ms": 800,
    4. "memory_budget_mb": 4096,
    5. "modalities": ["text", "image"],
    6. "privacy": "on_device"
    7. }
    8. def select_model(profile, candidates):
    9. feasible = [
    10. c for c in candidates
    11. if c.memory_mb <= profile["memory_budget_mb"]
    12. and set(profile["modalities"]).issubset(set(c.modalities))
    13. ]
    14. return min(feasible, key=lambda c: c.expected_latency(profile))

    At the agent layer, additional engineering is needed: tool permissions, call auditing, timeout and retry, result validation, and human confirmation. Simple local tasks can complete on-device, but high-risk actions such as payment, deletion, or sending messages should require confirmation and an allowlist. Multimodal inputs are privacy-sensitive, so they should be processed locally by default, retained minimally, and desensitized when audio or image data is stored.

    Deployment Practice and Conclusions: Tiered Evaluation Drives Model Selection

    Engineering deployment should begin with resource tiering and then move to capability tiering. For mobile and embedded devices, verify efficient small-model cold start, memory peak, and power consumption. For edge devices, verify MoE tail latency and routing stability. For workstations, verify dense-model quality and throughput on complex tasks.

    Quantization, operator fusion, KV cache management, batching, and heterogeneous scheduling all affect user experience. They must be measured under the same evaluation standard.

    If a cloud-based batch evaluation and regression pipeline is needed, a generic container platform, object storage, and logging and monitoring services can be used to organize tasks, store samples, and track metrics. For example, on Baidu AI Cloud, general-purpose service categories can be used to build a reproducible evaluation environment. However, cloud benchmark results should not be treated as equivalent to on-device experience.

    Overall, a multi-scale open-source LLM matrix is a reasonable direction. It lets developers choose capability and resource cost by scenario instead of relying on one model for everything. Still, there is no single answer to the question “how is the user experience?” More reliable conclusions come from a layered evaluation process: compare quality, latency, memory, power consumption, and task success rate on the same hardware, with the same quantization strategy, and on the same task set. Establish a measurable, reproducible, and iterative evaluation loop before final model selection and rollout. That is how partial experience becomes a sustainable engineering decision.