An open-weight AI model is one whose trained parameters (the weights) you can download and run yourself, under whatever license the publisher chose. Open-source AI, as the Open Source Initiative defines it, goes further: the weights, the training code and detailed information about the training data must all be available under terms that let anyone use, study, modify and share the system for any purpose.
Most models people call "open source" are open-weight. That isn't a pedantic distinction: it decides whether you can use a model commercially, rename a fine-tune, or find out what it was trained on.
Open weight vs open source vs closed at a glance
| Closed (API-only) | Open-weight | Open source (OSAID 1.0) | |
|---|---|---|---|
| Download and run locally | No | Yes | Yes |
| Fine-tune the weights | Only through the vendor, if offered | Yes, within the license | Yes |
| Training code published | No | Usually not | Required |
| Training data described | No | Usually a sentence or two | Required in detail |
| License | Terms of service | Anything from Apache 2.0 to custom restrictive terms | OSI-approved terms, no field-of-use limits |
What the Open Source AI Definition requires
The OSI, which maintains the Open Source Definition for software, published the Open Source AI Definition 1.0 in October 2024. It carries over the four freedoms from free software: use the system for any purpose without asking permission, study how it works, modify it, and share it with or without changes. To make those freedoms practical it requires the "preferred form for making modifications", which it splits into three parts:
- Data information: "sufficiently detailed information about the data used to train the system so that a skilled person can build a substantially equivalent system". That includes provenance, how data was obtained, selected, processed and filtered, a list of publicly available training data and where to get it, and where to obtain third-party data, including any fee.
- Code: the source code used to train and run the system, under OSI-approved licenses.
- Parameters: the weights, under OSI-approved terms.
Note what it does not require: the training data itself. A model can qualify while describing, rather than publishing, data that can't legally be redistributed. It is a deliberate compromise: a description is accepted where the data itself can't be shared, so "open source AI" under this definition does not guarantee you can download the dataset.
Real models, compared (as of October 2026)
The license is the quickest thing to check. Hugging Face exposes each model's declared license through its public API; this is the actual output for four well-known models:
curl -s https://huggingface.co/api/models/meta-llama/Llama-3.1-8B
openai/gpt-oss-20b: license apache-2.0 gated: False
mistralai/Mixtral-8x7B-v0.1: license apache-2.0 gated: False
allenai/OLMo-2-1124-7B: license apache-2.0 gated: False
meta-llama/Llama-3.1-8B: license llama3.1 gated: manual
(Summarised from the cardData.license and gated fields of the JSON each request returns.) "Gated: manual" means you must accept Meta's terms and be approved before the download is allowed.
| Model | Weights | License | Training data | OSI view |
|---|---|---|---|---|
| Llama 3.1 (Meta) | Downloadable after accepting terms | Llama 3.1 Community License | Not published | Not open source |
| Mixtral 8x7B (Mistral AI) | Downloadable | Apache 2.0 | "Data extracted from the open Web", no detail | Fell short of OSAID |
| gpt-oss-20b (OpenAI) | Downloadable | Apache 2.0 | Not published | Not reviewed in the sources here |
| OLMo (Ai2) | Downloadable | Apache 2.0 | Pretraining data, training code and evaluation tools published | Met the requirements |
The OSI column comes from the OSI's own end-of-year review, which named OLMo, Pythia, CrystalCoder and T5 as meeting the definition during validation, and Llama 2, Phi-2, Mixtral and Grok as falling short. Mixtral is the instructive case: its weights are under Apache 2.0, a fully open software license, and it still isn't open-source AI, because the training code and data information aren't there. OpenAI uses the term itself: its model card calls gpt-oss "OpenAI's open-weight models".
What the Llama license actually restricts
Llama is the model most often called open source, so its license (Llama 3.1 Community License, release date July 23, 2024) is worth reading in the original. The key clauses:
- The 700 million user clause. If your products had more than 700 million monthly active users in the month before the Llama 3.1 release date, you must request a license from Meta, "which Meta may grant to you in its sole discretion".
- Attribution. If you distribute the model or a product containing it, you must include the license and "prominently display 'Built with Llama'".
- Naming. If you use Llama or its outputs to create, train or fine-tune a model that you distribute, you must put "Llama" at the beginning of that model's name.
- Acceptable use policy. Use must follow Meta's separate policy, which is incorporated into the license.
The OSI's 2023 statement on Llama 2 gave its reasons: the Open Source Definition forbids discrimination against persons, groups or fields of endeavour, and the commercial limitation plus the use restrictions do exactly that. For most individuals and small companies none of these clauses get in the way of running or fine-tuning the model. They matter if you are very large, redistribute derived models, or need terms a lawyer can compare with standard licenses.
Does the difference matter for you?
For running a model on your own computer, no: open-weight is enough. Tools like Ollama work the same whatever the license, and the article on running an LLM locally with Ollama covers that. The VRAM guide covers the hardware side.
It starts to matter in four situations:
- Shipping a product. Apache 2.0 asks you to keep the license and notices with what you distribute; custom licenses such as Llama's add conditions you must track.
- Publishing a fine-tune. The base model's license follows the weights. A Llama fine-tune must carry the Llama name; an Apache 2.0 fine-tune can be renamed freely. See fine-tuning vs RAG for whether you need a fine-tune at all.
- Auditing. If you need to know whether a model saw copyrighted, private or benchmark data, only models that document their data, such as OLMo, let you check. Weights alone can't answer that.
- Reproducing or modifying training. Retraining from scratch, changing the data mix or studying how behaviour emerged needs the training code and data, which open-weight releases usually don't include.
How to check any model before you use it
- Open the
LICENSEfile in the model repository, not just the tag on the listing page. Tags are declared by the uploader. - Look for a separate acceptable use policy referenced from the license.
- Check whether the repository is gated, which usually means extra terms.
- Look for a data card or technical report that names the training datasets. If all you find is "trained on publicly available data", treat the data as undisclosed.
- For quantised re-uploads (GGUF files from third parties), the original model's license still applies; the article on quantization and GGUF explains what those files are.
Frequently asked questions
- Is Llama open source?
- Not under the Open Source Initiative's definitions. Llama's weights are downloadable, so it is an open-weight model, but its license limits use by companies above 700 million monthly active users, requires an acceptable use policy and attaches naming conditions to derived models. The OSI has said since 2023 that these terms fail the Open Source Definition.
- Can I use an open-weight model commercially?
- It depends entirely on the license, not on the label. Models under Apache 2.0, such as Mixtral 8x7B or gpt-oss, allow commercial use with attribution. Custom licenses such as Llama's allow most commercial use but add conditions, such as attribution, naming rules and an acceptable use policy. Read the license file in the model repository before you ship anything.
- Does open source AI mean the training data is public?
- Not necessarily. The OSI's Open Source AI Definition 1.0 requires detailed information about the training data, including its provenance and how it was selected and processed, and a list of public data with where to get it. It does not require publishing data that cannot legally be shared, which is one of the more debated parts of the definition.
- What does a gated model mean on Hugging Face?
- A gated repository makes you log in and accept the publisher's terms before the files can be downloaded; with manual gating, the publisher also has to approve the request. Meta's Llama 3.1 repositories are gated this way, while Apache 2.0 models such as Mixtral 8x7B and gpt-oss-20b download without any approval step.
Sources
- Open Source Initiative: The Open Source AI Definition 1.0
- Open Source Initiative: 2024 end-of-year review, Open Source AI Definition v1.0
- Open Source Initiative: Meta's LLaMa license is not Open Source
- Meta: Llama 3.1 Community License Agreement (GitHub)
- Mistral AI: Mixtral of experts
- Hugging Face: openai/gpt-oss-20b model card
- Ai2: Olmo
- Hugging Face Hub docs: Gated models