“Open weights” does not mean one set of rules. Qwen3, Gemma 4 and gpt-oss ship under the permissive Apache 2.0 license and DeepSeek-R1 under MIT, while Meta’s Llama models and Gemma 1 to 3 use custom terms with user caps (700 million monthly users for Llama), naming rules or use policies that pass on to anything you build. This cheat sheet compares the license families developers meet most often, based only on the license texts, with a worked example of inherited terms. It is a reading aid, not legal advice.

The one-page comparison

License Example models Commercial use User cap Notices Naming rule Use policy Law
Apache 2.0 Qwen3, Gemma 4, gpt-oss, Mistral Small 3.1 Yes None License copy, mark changes, keep NOTICE None None Not specified
MIT DeepSeek-R1, Phi-4 Yes None Keep copyright notice None None Not specified
Llama Community License (3.3, 4) Llama 3.3 70B, Llama 4 Yes, under cap 700M monthly users “Built with Llama”, Notice file Name starts with “Llama” Acceptable Use Policy California
Gemma Terms of Use Gemma 1 to 3, PaliGemma Yes None Terms copy, Notice file, mark changes None Prohibited Use Policy, passed on California
Qwen License Agreement Qwen2.5-72B Yes, under cap 100M monthly users Notice file, “Built with Qwen” None Export-control clause China
Qwen Research License Qwen2.5-3B No n/a Notice file, “Built with Qwen” None Export-control clause China

Licenses change between generations (Gemma 4 moved to Apache 2.0; Gemma 3 did not) and even between sizes (two Qwen2.5 sizes are not Apache 2.0), so check the exact checkpoint, not the family name.

Permissive licenses: Apache 2.0 and MIT

Both are standard open source licenses: commercial use, modification and redistribution, with no user caps or field-of-use limits. The differences:

  • Apache 2.0 contains an explicit patent grant from every contributor (Section 3), which ends for anyone who sues claiming the work infringes their patents. Section 4 asks redistributors to include the license, mark modified files, keep existing copyright and attribution notices, and carry over the contents of any NOTICE file. Section 6 says the license gives no trademark rights.
  • MIT is a few sentences long. Its main condition is keeping the copyright and permission notice in all copies or substantial portions. It has no explicit patent clause.
Diagram of open source license compatibility, with permissive licenses such as MIT, BSD-3-Clause and Apache-2.0 on the left and arrows leading to MPL, LGPL, GPL and AGPL on the right
Apache 2.0 and MIT sit in the permissive group of software licenses; the arrows show that code under them can be reused in projects under the more protective licenses to the right. Diagram: David A. Wheeler, et al. / Wikimedia Commons, CC BY-SA 3.0

Both texts were written for software and say nothing about model outputs, so model cards sometimes clarify: DeepSeek’s states that the R1 series allows commercial use and derivative works, including distillation into other models. A permissive license also does not lift other duties; the gpt-oss card pairs Apache 2.0 with a short usage policy asking users to comply with applicable law.

Custom licenses: Llama, Gemma and Qwen

Llama Community License. Section 2 requires companies whose products had more than 700 million monthly active users in the month before the model’s release date to request a separate license, which Meta may grant at its sole discretion. Distributors must display “Built with Llama”, ship the agreement and include a Notice file. If you use Llama, or its outputs, to train or improve a model you distribute, that model’s name must begin with “Llama”. The Acceptable Use Policy applies, and the Llama 3.2 and Llama 4 policies withhold the grant for multimodal models from people and companies based in the European Union (end users of products built on them are exempt).

Gemma Terms of Use. No user cap, but “Model Derivatives” is defined widely, including models trained to perform like Gemma through distillation or synthetic Gemma output. Anyone distributing Gemma or a derivative must make the Prohibited Use Policy an enforceable term for their own users, and Google reserves the right to restrict usage it reasonably believes breaches the terms. Outputs themselves are not derivatives, and Google claims no rights in them. Gemma 4 is outside these terms and points to an Apache 2.0 page.

Qwen License Agreement. Same structure as Llama, lower threshold: commercial users above 100 million monthly active users must request a license. A model created, trained or improved with Qwen materials or outputs must say “Built with Qwen” or “Improved using Qwen” in its documentation. Disputes go to courts in Hangzhou under Chinese law. The separate Qwen Research License limits use to non-commercial purposes unless you obtain a commercial license.

Worked example: fine-tuning DeepSeek-R1-Distill-Llama-70B

Inherited terms are where most mistakes happen. DeepSeek-R1 is MIT-licensed, and the Hugging Face repository of DeepSeek-R1-Distill-Llama-70B is also tagged MIT. But the R1 model card says that distill was derived from Llama 3.3 70B Instruct, “originally licensed” under the Llama 3.3 license, while the Qwen-based distills come from Qwen2.5 models under Apache 2.0 (see our DeepSeek-R1 Distill model page). The Llama license attaches its conditions to “derivative works”, so the cautious reading is that they still apply.

Suppose a startup fine-tunes the Llama-based distill on its support tickets and publishes it. Under the Llama 3.3 text:

  1. Name. Section 1.b.i requires the model name to begin with “Llama”: “Llama-Acme-Support-70B” fits, “AcmeSupport-70B” does not.
  2. Attribution. The model page must prominently say “Built with Llama” and ship a copy of the agreement.
  3. Notice file. It must carry the exact text “Llama 3.3 is licensed under the Llama 3.3 Community License, Copyright © Meta Platforms, Inc. All Rights Reserved.”
  4. Use policy. The startup’s terms must not permit uses the Llama 3.3 Acceptable Use Policy forbids.
  5. User cap. Relevant only above 700 million monthly active users, company and affiliates combined.

Had it picked DeepSeek-R1-Distill-Qwen-32B, the base would be Apache 2.0: keep the license and notices, mark changed files, no naming rule or cap. Same family, very different paperwork.

Quick checklist before you ship

  • Read the LICENSE file in the exact repository you download, and trace the base model of any fine-tune.
  • Look for use policies incorporated by reference, and location limits such as the Llama EU clause.
  • Check user caps against your company and its affiliates, not one product.
  • Note whether training on outputs creates obligations (Llama, Qwen and Gemma terms say so; Apache and MIT do not mention outputs).
  • Record the version you accepted: texts change, and the Gemma terms page shows a last-modified date of April 1, 2026.

For the wider trade-offs, see our comparison of open-weight and closed AI models and our guide on how to evaluate an open source AI project.

What to watch next

  • Whether more labs follow Gemma 4 and Qwen3 in moving new generations to Apache 2.0.
  • Changes to Meta’s Llama license or acceptable use policy in future releases, including the EU multimodal clause.
  • How the EU AI Act’s open source exemptions are applied to models under custom licenses.
  • Model cards that state explicitly whether outputs may be used for distillation.

Key takeaways

  • Apache 2.0 and MIT allow commercial use with no user caps; Apache adds an explicit patent grant.
  • Llama licenses require a separate license above 700 million monthly users, plus “Built with Llama” and a “Llama” name prefix on derived models.
  • Gemma 1 to 3 terms pass the Prohibited Use Policy on to every downstream user; Gemma 4 uses Apache 2.0.
  • The Qwen License sets a 100 million monthly user threshold; the Qwen Research License bars commercial use.
  • Fine-tunes and distills inherit their base model’s license, which can differ from the family name.

Frequently asked questions

Can I use Llama models commercially?

Yes, the Llama Community License allows commercial use unless your company and affiliates had more than 700 million monthly active users in the month before the model’s release date. You must still follow the attribution, naming and acceptable use rules.

Is Gemma open source?

Gemma 4 is released under Apache 2.0, a standard open source license. Earlier Gemma models use the custom Gemma Terms of Use, which allow commercial use but add a prohibited use policy that passes to downstream users.

Does a fine-tuned model keep the original license?

Usually yes. Apache 2.0 and MIT require you to keep their notices, and the Llama, Gemma and Qwen terms attach further conditions to derivative works, so a fine-tune must meet the base model’s license as well as any terms you add.