Choosing an LLM: Open-Weight Models vs. Truly Open-Source Models

    Model selection now affects system availability, compliance, and cost, so it works as an architecture decision rather than a one-time purchase. This article separates three questions: what a model can do, how it is delivered, and how much control you keep after delivery. It covers a five-dimension selection framework, the licensing differences between open-weight and truly open-source models, a cost comparison of cloud APIs and self-hosting, a reusable evaluation process, and a model access layer that keeps models replaceable.

    1. Why Model Selection Has Become an Architecture Decision

    For a long time, choosing a model meant picking the one with the highest leaderboard score. That approach works early in a project, but problems appear once the system reaches production. API version changes can cause output format drift. Call costs grow linearly with business volume. Sensitive data cannot leave the internal network. A provider may change its terms of service, and migrating away from it can be expensive. As a result, model selection moves from a one-time purchase decision to an architecture decision that affects system availability, compliance, and financial planning.

    Understanding this requires separating three questions: what the model can do, how the model is delivered, and how much control you keep after delivery. These three are related, but they are not the same thing.

    2. A Framework for Understanding Model Capabilities

    Current large language models can generally be grouped by capability: general text understanding and generation, code writing and repair, math and logical reasoning, multimodal input (images, audio, and video), long-context processing, and tool calling and agent orchestration. Models differ in how strong they are across these areas. A model that excels at coding may not suit long-document retrieval or multilingual customer support.

    By delivery form, there are three common options:

    • Cloud API calls: The provider hosts the model, and you get results through network requests. Integration is fast, and you do not need to run compute infrastructure. However, data must leave your local environment, and the provider controls the model version.
    • Private deployment: Model weights run on your own servers or dedicated cloud resources. Data stays within your domain, and you control the upgrade schedule. However, you bear the costs of GPU procurement, inference optimization, and operations.
    • On-device inference: The model runs on the end-user device. Latency is low and privacy is strong, but memory and compute limit the model to relatively small sizes.

    Benchmark results require caution. Vendor-reported scores, third-party leaderboards, and internal test sets often differ in prompt templates, sampling parameters, scoring rules, and question versions. Comparing scores across different leaderboards usually produces unreliable conclusions. A more useful approach is to evaluate models on real samples from your own business.

    3. Five Key Dimensions of Selection

    When selecting a model, evaluate it on at least these five dimensions.

    1. Task fit: Measure output quality on real business inputs. Focus on accuracy, format stability, and refusal rate, not only on general benchmarks.
    2. Data and compliance: Determine whether data may be sent to an external service, whether it includes personal information or trade secrets, and whether it falls under industry regulation. Also check the terms on data retention and use for training.
    3. Cost structure: Separate variable costs billed per call from fixed costs billed per resource use. Calculate total cost of ownership at different business volumes.
    4. Latency and throughput: Assess time to first token, total response time, and concurrency limits. Decide whether they meet the needs of interactive or batch workloads.
    5. Replaceability and long-term risk: Estimate the effort required to migrate to another model. Plan how you would respond to service outages, price changes, or license changes.

    4. Open Weights and Open Source: Separating the Concepts

    The industry often uses “open-source model” and “open-weight model” interchangeably, but their rights differ.

    Open-weight means the publisher has made the model parameter files public, so users can download them and run inference in their own environment. However, the license may restrict commercial use, cap the number of users, prohibit use in certain fields, or require keeping notices. Training data, training code, and the full training pipeline may not be public.

    A truly open-source model is one whose release meets the broadly accepted open-source definition. Its license permits use, study, modification, and redistribution, and it does not impose discriminatory restrictions on specific uses. Under these conditions, users can build on the code and weights, and they can reproduce and redistribute the model in different environments.

    The following table summarizes how these differences affect selection:

    Dimension Open-weight Truly open-source
    Local deployment Usually possible Possible
    Modification and retraining Depends on the license Usually allowed
    Reproducibility of training Often low Relatively high
    License compliance risk Requires reading each clause Relatively clear
    Long-term autonomy Depends on continued availability of the weights Depends on the license and community maintenance

    In practice, do not rely on the model label alone. Open the license file, check each clause on commercial use, redistribution of derivative models, and user-count limits. Then have legal or compliance staff confirm your reading.

    5. Cloud APIs vs. Self-Hosting: The Cost of Control

    Cloud APIs let you start quickly, typically with access to a leading model, and they remove the operations workload. The trade-offs are that data leaves your local environment, you do not decide when the model is updated, and costs rise with call volume.

    Self-hosting gives you control over data and lets you pin the model version. It can also lower unit cost under high load. The trade-offs are that you need compute resources, an inference framework, performance tuning, monitoring, and incident handling. You also need to reserve a testing window for each model version upgrade.

    Comparing costs requires more than unit prices. You also need to find the break-even point. The script below estimates monthly costs for both options at different average daily call volumes. The figures are illustrative assumptions. Replace them with your own quotes and resource data.

    1. def monthly_cost_api(daily_calls, tokens_per_call, price_per_million_tokens):
    2. """Cloud API: billed per token."""
    3. monthly_tokens = daily_calls * tokens_per_call * 30
    4. return monthly_tokens / 1_000_000 * price_per_million_tokens
    5. def monthly_cost_self_hosted(gpu_count, price_per_gpu_month, ops_cost_month):
    6. """Self-hosted: billed by resource usage plus operations cost."""
    7. return gpu_count * price_per_gpu_month + ops_cost_month
    8. # Assumed values for demonstration only
    9. for daily_calls in [1_000, 10_000, 100_000]:
    10. api = monthly_cost_api(daily_calls, tokens_per_call=1_500,
    11. price_per_million_tokens=10)
    12. self_hosted = monthly_cost_self_hosted(gpu_count=2,
    13. price_per_gpu_month=5_000,
    14. ops_cost_month=8_000)
    15. print(f"{daily_calls:>7} calls/day: API {api:>10.0f} Self-hosted {self_hosted:>10.0f}")

    The results show that at low call volumes, the API option is usually cheaper. Once volume rises past a certain threshold, fixed costs are spread over more calls, and self-hosting becomes the better option. The threshold depends on model size, tokens per call, hardware utilization, and labor costs, so you must measure it with actual data.

    6. Building a Reusable Evaluation Process

    Whichever option you choose, build an evaluation set based on your own use case. A practical approach includes these steps:

    1. Extract representative inputs from production logs or business scenarios. Cover frequent questions, edge cases, and known failure cases.
    2. Define a scoring standard for each sample. Use rules wherever possible, such as format validation or key field extraction. For cases that rules cannot judge, bring in human review or a review model.
    3. Fix the prompt template, sampling parameters, and random seed so that all models are compared fairly on the same samples.
    4. Record the model version, date, and configuration for each evaluation so the results can be traced.

    The following sketch shows an evaluation framework. The model call function is an abstract interface, and its implementation depends on the option you choose.

    1. from dataclasses import dataclass
    2. from typing import Callable, List
    3. @dataclass
    4. class Sample:
    5. prompt: str
    6. check: Callable[[str], bool] # Rule-based check function
    7. def evaluate(model_call: Callable[[str], str], samples: List[Sample]) -> float:
    8. passed = 0
    9. for s in samples:
    10. output = model_call(s.prompt)
    11. if s.check(output):
    12. passed += 1
    13. return passed / len(samples) if samples else 0.0

    Evaluation results