How to Choose Lightweight LLMs: An Evaluation Checklist from Performance to Cost

    As lightweight Large Language Models (LLMs) become increasingly common, selecting the right one requires looking beyond basic capabilities. This article provides a practical evaluation checklist covering six quantifiable dimensions—from response latency to ecosystem compatibility—and outlines a comprehensive method for calculating the actual cost of LLM calls in real-world business scenarios.

    1. Converging Base Capabilities Demand New Selection Criteria

    Over the past year or two, the number of lightweight LLMs prioritizing high speed and low cost has significantly increased. For general Q&A, text summarization, and daily translation tasks, the output quality of most models is nearly identical. However, this conclusion comes with prerequisites. Most public comparisons use test samples consisting of short texts, brief contexts, and standardized prompts. When switching to long documents, domain-specific texts dense with professional jargon, or complex instructions with multiple constraints, the performance gaps between models become distinctly apparent.

    Public benchmarks offer reference value, but they reflect the upper limits of a model’s capability under specific data distributions. In real-world business scenarios, prompt phrasing, context length, and input data quality will all affect the final outcome. Therefore, teams should conduct blind tests using their own business samples: randomly extract 100 to 300 real requests, hide the model names, and have two or more reviewers score them according to a unified standard. Finally, compare the average scores and any discrepancies across the models.

    2. Six Quantifiable Evaluation Dimensions

    During the selection process, it is recommended to map each dimension to measurable metrics. The table below outlines the measurement methods and reference standards. Note that the standard values should be set by your team based on your specific experience goals and budget.

    Evaluation Dimension Core Metric Measurement Method Reference Pass Standard (Example)
    Response Latency Time to First Token (TTFT), Output Tokens per Second Use a streaming API, group by input length, and measure P50 and P95 P95 TTFT for interactive scenarios remains under the team’s defined experience limit
    Concurrency Performance P99 Latency under concurrency, Error Rate Apply incremental load (e.g., 5, 20, 50 concurrent requests), maintaining each level for several minutes Error rate below 1%, P99 latency increase remains within acceptable limits
    Single Task Cost Comprehensive cost (see calculation below) Sample token usage and retry counts from real requests At equivalent quality, cost is lower than the current solution
    Instruction Following Format compliance rate (e.g., JSON parseability rate) Auto-validate output formats using a fixed sample set Compliance rate meets business launch requirements
    Long Context Capability Key information retrieval accuracy, latency increase under long inputs Embed key information at varying lengths and positions for retrieval testing Accuracy remains stable within the target context length
    Ecosystem Compatibility API format, framework adaptability, logging and monitoring integration Conduct a replacement test using the team’s existing codebase Required code changes are manageable, no need to rewrite business logic

    2.1 Calculating the Cost of Calls

    Cost evaluation should not rely solely on the price per 1,000 tokens. Some models offer a low unit price but have weaker instruction following, often requiring longer prompts or multiple retries, which can ultimately lead to higher total consumption. Therefore, it is recommended to use a “comprehensive single-task cost” metric:

    Comprehensive Single-Task Cost = (Number of Input Tokens × Input Price + Number of Output Tokens × Output Price) × Average Number of Calls

    The average number of calls should account for retries and multi-turn prompts. Since different service providers use varying billing units, you must first standardize them to the price per 1,000 tokens before calculating.

    Take a hypothetical example. Model