Two artifacts, two license questions
A repository can contain software and model weights without placing both under one set of terms. That distinction sounds obvious until a model card shows one license badge and users assume it answers every question. It may not.
A code license does not automatically determine the terms that apply to parameters produced by running that code, and a weights license does not automatically govern the training framework. These are distinct artifacts, but that distinction alone does not settle the legal status of the weights. The applicable terms may depend on factors such as the base model, training data, ownership, and whether the weights are treated as a derivative work. In an OpenChat discussion, participants describe the project’s stated distinction: code under Apache 2.0, while weights for particular models follow their corresponding base-model terms. This reports the project’s stated terms; it is not a general legal conclusion. (https://huggingface.co/openchat/openchat/discussions/2)
What a license badge can miss
A model page may bring together source code, configuration, tokenizer files, training scripts, datasets, and learned parameters. Those materials can have different terms, so a single repository-level label may not explain the rights for each artifact. In the discussion, OpenChat quotes its explanation that its code is released under Apache License 2.0, while OpenChat and OpenChat-8192 weights follow LLaMA terms for non-commercial use, and OpenCoderPlus follows StarCoder’s license. These are the project’s stated terms for those models, not a universal rule. Verify the terms for the specific version and files you intend to use. (https://huggingface.co/openchat/openchat/discussions/2)
That is a practical warning, not a legal shortcut. An “Apache” label on a repository does not prove every included file is Apache-licensed. Nor does calling weights “open” settle whether commercial use, redistribution, or modification is permitted. Check the terms that attach to the specific files and model variant you plan to use.
OpenLLaMA shows why the distinction matters
The OpenLLaMA repository describes the project as a reproduction of Meta AI’s LLaMA and presents model series at 3B, 7B, and 13B scales. The project’s repository and license file are the relevant sources for its description and stated licensing terms. Those materials should not be read as establishing that every artifact, including weights, has permissive terms or resolving questions about the weights’ relationship to base models and other inputs. (https://github.com/openlm-research/open_llama) (https://github.com/openlm-research/open_llama/blob/main/LICENSE)
The point is not that one popular model settles the law for every project. It doesn’t. Projects can present code and weights as distinct deliverables, and users should read the terms stated for each instead of inferring them from a repository name or adjacent badge. The OpenChat exchange illustrates this practical confusion: participants discuss whether the weights are Apache-licensed and describe different terms stated by the project for code and weights. (https://huggingface.co/openchat/openchat/discussions/2)
Training from code does not erase obligations
If you use a training framework to build a model, the framework’s license is relevant to your use of that software. But it does not, by itself, answer the licensing status of the resulting weights. Conversely, permission to use or redistribute weights does not automatically grant permission to copy, modify, or distribute the training code. Treat these as distinct questions, while recognizing that their legal answers may be connected.
“Separate” does not mean “unconnected” or “anything goes.” A base model, training dataset, tokenizer, or other included component may carry its own terms. Whether weights are subject to obligations from those components can depend on the relevant terms and applicable law; do not assume the answer from the training code’s license. OpenChat’s discussion quotes the project’s explanation tying certain weights to their corresponding base-model terms and separately mentions privacy practices for ShareGPT. A fresh training run should not be treated as a guaranteed license reset: inspect the inputs and terms relevant to the particular output and intended use. (https://huggingface.co/openchat/openchat/discussions/2)
A careful release checklist
Before publishing a model, make an inventory. Identify the code repository, checkpoint files, tokenizer, configuration, and datasets you are distributing or relying on. For each, locate the terms stated by the responsible project or rights holder. Don’t assume a README badge covers files whose terms are stated elsewhere.
Then check the intended activities. Are you using the model commercially? Redistributing weights? Offering a hosted service? Modifying code? The answer may differ by artifact, model variant, and applicable terms. OpenChat’s discussion provides an example of the project stating different weight terms for different model families while assigning Apache 2.0 to its code. Verify the stated terms directly for the version you plan to use. (https://huggingface.co/openchat/openchat/discussions/2)
Keep the evidence with the release. Record the source URL, license version or terms, and the exact files or model revision reviewed. If the page is ambiguous, ask the rights holder or obtain legal advice rather than guessing from a repository-level label. A short, explicit inventory can help identify issues before release, but it is not a substitute for resolving uncertain rights.
The practical takeaway
You can’t determine a model’s rights from the training code’s license alone. You also can’t assume that weights inherit the code license, or that newly produced weights are automatically free of constraints connected to a base model, data, ownership, or other applicable obligations. Read the code terms and the model terms separately, then assess the components and intended uses relevant to your release. Questions about whether weights are derivative works or what obligations apply can be legally uncertain and should not be treated as settled by a repository label.
That’s the dependable approach: distinguish the artifacts, inspect the terms actually stated for them, and avoid treating a project’s licensing position as a universal legal rule. The OpenLLaMA repository and license file are sources for that project’s description and stated terms, not a basis for generalizing about other projects or assuming permissive weight terms. (https://github.com/openlm-research/open_llama) (https://github.com/openlm-research/open_llama/blob/main/LICENSE)
For related context, see Building Free Foundations: How OpenLLaMA and OpenLM Reshaped Open-Source AI. See also Keeping Open AI Models Usable: The Case for Preserving the Master Weights.
two artifacts, two license questions