Sub topic 4
Open-weight is not always open-source: reading licenses
This chapter assumes you know what a model's weights are and have used a hosted API or downloaded a model before. It covers what a model license can restrict and how to check one before you build on a model. It is not legal advice. For a commercial product, have counsel read the actual license text.
Open-weight and open-source are different things
An open-weight model is one whose trained parameters (the weights) you can download. That says nothing about the terms under which you may use them. Open-source software, by contrast, has a settled meaning: the license lets anyone use, study, modify, and redistribute the software for any purpose, with no discrimination against people or fields of use.
Many popular open-weight models fail that test. Their licenses are custom documents that allow broad use but add conditions. A model can be free to download and still forbid certain uses, require a separate agreement past a size threshold, or demand a specific name on your product.
Three things can be released separately, and each can carry its own license:
- The weights, which are the files you download and run.
- The code for inference or training, such as a Python package.
- The training data, which is rarely released at all.
A repository may ship permissively licensed code next to weights under a restrictive license. Check each part.
Common license families
Licenses for open-weight models fall into rough groups. The table gives the general pattern. The names are examples of each pattern, and the terms of a specific model can change between versions.
| Pattern | Typical terms | What to check |
|---|---|---|
| Permissive (for example Apache 2.0, MIT) | Commercial use, modification, and redistribution allowed. Requires keeping notices. | Whether the license covers the weights and not only the code. |
| Custom community license | Broad use allowed, with extra conditions such as user-count limits, attribution, or an acceptable-use policy. | Each condition against your product and your growth plans. |
| Research or non-commercial | Use allowed for study and experiments only. | Whether your project is commercial in any way. |
| Gated access | You must accept terms or request access before downloading. | Whether the approval can be revoked and who is allowed to apply. |
Conditions to look for
Read the license for these clauses. Each one can change whether a model is usable for you.
- Commercial use. Is selling a product or service built on the model allowed? Non-commercial licenses often also exclude internal business use, so read the definition of "commercial."
- Scale thresholds. Some licenses require you to ask for a separate license once your product passes a number of monthly users or a revenue level. A model that is fine for a prototype may need a new agreement at scale.
- Acceptable-use policy. Many licenses forbid listed uses, such as generating certain content or operating in certain domains. A policy referenced by link can be updated after you adopt the model.
- Attribution and naming. You may have to display a notice, include the license text with redistribution, or put the model name at the start of a derived model's name.
- Derivative models. Fine-tuning produces a derivative. Check whether your fine-tuned weights must carry the same license, and whether you may publish them.
- Using outputs. Some licenses restrict using the model's outputs to train other models. This matters if you plan to distill a large model into a smaller one.
- Geography and entities. Some terms exclude particular regions or company types. Others exclude competitors of the licensor.
- Termination. Many licenses end automatically if you break a term. Check whether you get a chance to fix the violation.
Where to find the license
Do not rely on a model's marketing page. Use the files that travel with the weights.
- The
LICENSEfile in the model repository. - The model card, which usually names the license in its metadata and often links the acceptable-use policy.
- Any file named like
USE_POLICYorNOTICE.
When you download from a model hub, the license name appears in the repository metadata. That label is a summary. A label such as "other" or "custom" means you must read the text yourself.
Record the license in your project
A license check done once and forgotten is a common source of trouble. When you later swap models (see the chapter on keeping the model swappable), the new model may carry different terms. A small record next to your model configuration makes the check repeatable.
The script below reads a hosted model hub's local metadata file format, which is simply a JSON file you maintain, and flags models whose license is not on your approved list. It runs as shown.
import json
APPROVED = {"apache-2.0", "mit"}
REGISTRY = json.loads("""
[
{"model": "model-a-7b", "license": "apache-2.0", "reviewed": "2026-10-02"},
{"model": "model-b-13b", "license": "custom-community", "reviewed": "2026-09-15"},
{"model": "model-c-3b", "license": "non-commercial", "reviewed": "2026-08-20"}
]
""")
def needs_review(entry: dict) -> bool:
return entry["license"].lower() not in APPROVED
for entry in REGISTRY:
status = "NEEDS LEGAL REVIEW" if needs_review(entry) else "approved"
print(f"{entry['model']:<14} {entry['license']:<18} {status}")Running it prints:
model-a-7b apache-2.0 approved
model-b-13b custom-community NEEDS LEGAL REVIEW
model-c-3b non-commercial NEEDS LEGAL REVIEWThe list only gates the decision. A model marked for review is not banned. It means a person must read its terms against your use.
Where the license check sits in the decision
The license is a filter that runs early, before you spend effort on evaluation or hardware.
Filtering first saves work. There is no value in benchmarking a model you cannot ship.
Edge cases
- Hosted access to a restricted model. If a provider serves a model for you, the provider's terms govern your use of the API. The model's original license may still impose conditions on the provider, but your obligations come from your contract with them. Read that contract for data handling and permitted uses.
- Quantized or converted copies. A community member may republish a quantized version. The original license normally still applies, and the republisher cannot grant broader rights than they received. Trace the copy back to the original release.
- Fine-tuned models from third parties. A fine-tune inherits the terms of its base model, plus whatever the fine-tuner added. You must satisfy both.
- License changes. A license applies to the version you received. Future releases may use new terms, so pin the version you reviewed and record the date.
- Training data. Even with a permissive weight license, questions about the data used in training can affect your risk. A license tells you what the licensor allows. It does not guarantee the licensor had every right to the training data.
Practical checklist
- Identify the exact model, size, and version you plan to use.
- Open the
LICENSEfile and the acceptable-use policy shipped with that version. - Check commercial use, scale thresholds, and attribution requirements against your product plan.
- If you will fine-tune or distill, check the derivative and output-use clauses.
- Record the license, version, and review date in your model registry.
- Re-check whenever you upgrade or swap the model.
Exercise
Your team wants to fine-tune an open-weight model and later use its outputs to train a smaller model for a paid product. The repository's metadata shows the license as "other." List three clauses you would look for before starting, and say why "other" is not enough information.
Show answer
Look for (1) the commercial use clause, because a paid product must be allowed; (2) the derivative-models clause, to see what license your fine-tuned weights must carry and whether you may redistribute them; and (3) the clause on using outputs to train other models, because the smaller model is trained on the larger one's outputs. Scale thresholds, acceptable-use rules, and attribution requirements are also acceptable answers. "Other" is only a placeholder label. It tells you the license is not a standard one, so the terms can only be learned by reading the license text that ships with the exact version you plan to use.
Exercise
In the registry script, what would the output be if model-a-7b were changed to the license "llama-community"? Explain what the team should do next.
Show answer
model-a-7b would print the status "NEEDS LEGAL REVIEW", because "llama-community" is not in the APPROVED set. The team should read that license's text against their use, covering commercial use, scale thresholds, and the acceptable-use policy. If the terms fit, they can either add the license to a reviewed list with a note about its conditions or record a per-model approval with the review date.