Open-Source LLMs for Business Use: Three Things to Consider Before Choosing a Model
Before adopting an open-source LLM in your business, you need to answer three questions: whether the task involves sensitive data, how high the quality bar is, and how large the request volume will be. This article explains how to balance parameter size, inference capability, and cost across dense, MoE, and smaller models, why long-context claims need verification, and how to benchmark candidate models on your own business data with a sample evaluation script
Open-Source Models in Production: What to Clarify Before Choosing
The weights, technical reports, and inference code of open-source LLMs are now available within the scope of their licenses. Developers can deploy models on their own machines and adapt them with business data. For many teams, this is the first opportunity to put a model into core workflows. It also brings new decision-making burdens: which model to pick, where to deploy it, how to prove it works, and how to roll back when something goes wrong.
Before selecting a model, answer three questions. First, does the business task require the model to process sensitive data? This determines whether an external API is even an option. Second, how demanding is the task in terms of response quality? This determines how large the model needs to be. Third, what is the request volume? This determines whether inference cost and latency are acceptable. Different answers lead to different selection paths.
Public download counts and leaderboard scores can serve as references, but statistics vary widely across platforms and methodologies, and benchmark questions may not reflect your business scenarios. When citing such data, note the source and date, and always verify with your own samples.
Balancing Parameter Size, Inference Capability, and Cost
Parameter size reflects a model’s capacity, but it does not directly translate into business results. Common open-source models today fall roughly into three categories, each with different resource characteristics:
| Dimension | Dense large-parameter models | Mixture-of-Experts (MoE) models | Small and mid-size models |
|---|---|---|---|
| VRAM usage | High; typically requires multiple GPUs or large-memory GPUs | Large total parameter count; all weights must be loaded into VRAM | Low; may run on a single GPU or even consumer hardware |
| Latency and throughput | Slower per inference, limited concurrency | Only part of the parameters are activated per pass; throughput is usually good, but routing adds overhead | Low latency, suitable for high concurrency |
| Cost per request | High | Medium, depending on implementation and concurrency | Low |
| Suitable scenarios | Long-form writing, complex code, deep analysis, and other low-frequency or offline tasks | High-concurrency online services that need strong capability | Classification, information extraction, structured Q&A, and similar tasks |
The table shows only relative relationships. Actual numbers depend on hardware, quantization, and the inference framework, and must be measured in your own environment.
Long-context capability is another frequently overstated metric. A model accepting very long input does not mean it can reliably use the information inside it. When evaluating, focus on three things: whether positional encoding remains stable beyond the training length, whether the memory overhead of attention computation at long context is manageable, and the recall rate of key information on real long documents. Relying only on the advertised maximum context length often leads to noticeable quality drops after deployment.
How to Compare Candidate Models on Your Own Data
The most reliable way to compare models is a side-by-side test on a fixed set of business samples. There is no universal standard for sample size; starting with dozens to a few hundred cases is reasonable. Cover both high-frequency tasks and high-risk tasks, and have business stakeholders provide reference answers or scoring criteria.
The script below provides an evaluation framework. generate is a wrapper around your inference service and returns the generated text along with the output token count. Samples are stored in eval_cases.jsonl, where each line is a JSON object containing prompt and expected fields.
import jsonimport timefrom dataclasses import dataclass@dataclassclass Case:prompt: strexpected: str # Key information in the reference answer, labeled by business staffdef load_business_cases(path="eval_cases.jsonl"):# One JSON object per line: {"prompt": "...", "expected": "..."}with open(path, encoding="utf-8") as f:return [Case(**json.loads(line)) for line in f if line.strip()]def run_benchmark(generate, cases, run_cost):"""generate(prompt) -> (text, output_tokens), wrapped around your inference servicerun_cost: cost of running the full batch (billing amount, or amortized hardware rental cost)"""hits, latencies, total_tokens = 0, [], 0for case in cases:start = time.perf_counter()text, n_tokens = generate(case.prompt)latencies.append(time.perf_counter() - start)total_tokens += n_tokenshits += case.expected in text # Keyword match is only a rough scoring methodlatencies.sort()p95 = latencies[int(0.95 * (len(latencies) - 1))]return {"accuracy": hits / len(cases),"p95_latency_s": round(p95, 3),"cost_per_1k_tokens": round(run_cost / total_tokens * 1000, 4),}if __name__ == "__main__":cases = load_business_cases()# candidates: {model_name: (generate function, batch cost)}; fill in the actual candidate modelscandidates = {}results = {name: run_benchmark(gen, cases, cost)for name
