back to blog
EXPLAINERNovember 19, 2026·8 min read

Open-source LLM models: open weights, the main families and their licenses

What 'open source' means for LLM models, how open weights differ from open source, the main model families, and what their licenses let you do.

By Unrestricted team · Editorial standards

Open-source LLMs are language models whose weights you can download and run yourself, but the label covers two things. Fully open models such as OLMo release their training data and code,[1] while open-weights models such as Llama 4 and Gemma 4 release the weights but not the data.[2][3] Licenses range from Apache 2.0 and MIT to custom terms with conditions.

Open weights still matter: they let anyone fine-tune, adapt or deploy a model for their own projects,[4] which is how the models in our guide to uncensored LLMs and how they're made are built. This guide covers what separates open weights from open source, the main model families and their licenses as of November 2026, and what those licenses let you do.

Open weights vs open source

The Open Source Initiative (OSI) released version 1.0 of its Open Source AI Definition on October 28, 2024, after a year-long co-design process.[5] It says an open-source AI system must let you use it for any purpose without asking permission, study how it works, modify it for any purpose (including to change its output) and share it, with or without changes. To make that possible, it has to come with three things: detailed information about the training data, the complete source code used to train and run it, and the parameters, such as the weights.[6]

The definition doesn't require every piece of training data to be published. The data information has to describe all of it, including data that can't be shared, and say where to get the public and third-party data.[6]The OSI's FAQ says it allows this so that open-source AI can exist in fields such as medical AI, where data can't legally be shared.[7]

Open weights, in the OSI's words, are "the final weights and biases of a trained neural network." Without the training code, the dataset and the intermediate checkpoints, outsiders can use and adapt the model but can't replicate how it was built.[4]

From the OSI's Open Source AI Definition 1.0 and its explainer on open weights.
Open weightsOpen Source AI (OSI definition)
WeightsReleasedReleased under OSI-approved terms[6]
Training codeNot included[4]The complete code used to train and run the system[6]
Training dataNot included[4]Detailed information about all of it, including where to get the public data; data that can't be shared must still be described[6]
UseWhatever the license allowsAny purpose, without asking permission[6]

When OSI volunteers tested the definition on real models during its validation phase, OLMo passed, while Llama 2, Grok, Phi-2 and Mixtral did not, because they lacked required components, had legal terms that conflict with open-source principles, or both. The OSI notes these results are part of writing the definition and are not certifications.[7]On Llama in particular, it argued in 2023 that the license isn't open source because it restricts commercial use for some users and limits fields of use,[8] and repeated the point for the Llama 3.x licenses in February 2025.[9]

The major open model families

The table lists a current general-purpose release from each major family, taken from its model card and the maker's own pages when we checked in November 2026. Licenses can differ between models in the same family, so read the card for the exact model you use.

Checked November 2026. Sizes are total parameters (Gemma's E2B and E4B are effective parameters), with active parameters per token in parentheses for mixture-of-experts models.
Family and makerModel checkedSizesLicenseCommercial useReleased
Llama (Meta)Llama 4 Scout and Maverick[2]109B (17B active); 400B (17B active)Llama 4 Community License, plus an Acceptable Use Policy[10][11]Yes, with conditions: the use policy, a "Built with Llama" notice, a separate license from Meta above 700 million monthly active users, and no license rights for individuals domiciled in, or companies with their principal place of business in, the EU (end users of products built with it are exempt)[10][11][2]April 2025[2]
Gemma (Google DeepMind)Gemma 4[3]E2B, E4B, 12B, 26B (4B active), 31BApache 2.0 (Gemma 3 and earlier: Gemma Terms of Use)[12][13]YesApril 2026[12]
Qwen (Qwen team)Qwen3.8-27B and Qwen3.8-2.4T-A95B, plus Qwen3.8-Flash-Next (an experimental preview of the Qwen4 architecture)[14][15][16]27B; 2.4T (95B active); Flash-Next: 125B (6B active), plus 51B of n-gram embedding and 4B of MTP parameters27B: Apache 2.0. 2.4T: Qwen3.8-Max License. Flash-Next: Qwen Community License 1.0[14][17][18]27B: yes. The others: yes, but model-as-a-service and AI work-assistant businesses need a separate license (for the 2.4T model, only above a revenue threshold)[17][18]August 2026 (from the cards' citation entries)[14][15][16]
Mistral (Mistral AI)Mistral Small 4 and Mistral Large 4[19][20]Small 4: 119B (6B active); Large 4: 1T (49B active per token, 52B counting embeddings and output layers)Small 4: Apache 2.0. Large 4: Mistral Ecosystem Open-Weight License, a modified MIT license[19][21]Small 4: yes. Large 4: yes, but model-as-a-service businesses need a separate commercial license[21]Small 4: March 2026; Large 4: October 2026[22]
DeepSeek (DeepSeek)DeepSeek V4 Pro and Flash (preview)[23]1.6T (49B active); 284B (13B active)MIT[23]YesApril 2026[24]
gpt-oss (OpenAI)gpt-oss-120b and gpt-oss-20b[25]117B (5.1B active); 21B (3.6B active)Apache 2.0, plus a short usage policy[25][26]YesAugust 2025[27]
Phi (Microsoft)Phi-4[28]14BMIT[28]YesDecember 2024[28]
OLMo (Ai2)Olmo 3 and 3.1[1]7B, 32BApache 2.0, with the training data published separately[1][29]Apache 2.0 allows it; the card says the models are intended for research and education under Ai2's Responsible Use Guidelines[1]No release date on the card; the Olmo 3 technical report is dated December 2025[30]

Of the cards in the table, OLMo's is the only one that names published training data: it says the models were pre-trained on Dolma 3, which Ai2 publishes on Hugging Face under the ODC-BY license, and it links the Dolci datasets used for post-training.[1][29] The Llama 4 and Gemma 4 cards describe their training data without releasing it, and the DeepSeek V4 card gives only a token count.[2][3][23]

Licenses: what you can and can't do

The license, not the "open" label, decides what you can do with a model. The families above use three kinds.

Standard open-source licenses: Apache 2.0 and MIT. Apache 2.0 gives you a perpetual, worldwide, royalty-free license to reproduce the work, make derivative works and distribute them, plus a patent license. If you redistribute it, you include a copy of the license, mark the files you changed and keep the original notices, and it grants no trademark rights beyond describing where the work came from.[31] The MIT license lets you use, copy, modify, merge, publish, distribute, sublicense and sell copies, as long as the copyright and permission notice come with them.[32] Gemma 4, Mistral Small 4, Qwen3.8-27B, gpt-oss and OLMo use Apache 2.0, and DeepSeek V4 and Phi-4 use MIT. gpt-oss also ships a short usage policy: by using the model, you agree to comply with all applicable law.[26]

Custom licenses with use rules: Llama and older Gemma. The Llama 4 Community License is a limited, royalty-free license. If you distribute the model or a product that contains it, you include a copy of the agreement and prominently display "Built with Llama", and a model you train or fine-tune with it and then distribute has to start its name with "Llama". A company whose products had more than 700 million monthly active users when Llama 4 was released must ask Meta for a separate license.[10]Use has to follow Meta's Acceptable Use Policy, which bars illegal activity, activities that risk death or bodily harm, and deceiving others. The same policy withholds the license rights for the multimodal models in Llama 4 from individuals domiciled in the European Union and companies with their principal place of business there, though not from end users of a product or service built with them.[11]Meta's model card describes the whole Llama 4 collection, Scout and Maverick included, as natively multimodal.[2]Gemma 3, Gemma 3n and earlier Gemma models stay under the Gemma Terms of Use, which reach fine-tuned and derived models, make you pass on the Gemma Prohibited Use Policy as an enforceable term, and let Google, to the extent the law allows, restrict "remotely or otherwise" use it reasonably believes breaks the terms.[13] Gemma 4 moved to Apache 2.0.[12]

Permissive licenses with business conditions: Qwen and Mistral Large 4. The Qwen3.8-Max License and the Qwen Community License 1.0 both let you use, fine-tune, host and sell the model free of charge, and both require the model's name on products with more than 100 million monthly active users or US$20 million in monthly revenue. The community license requires a separate license from Qwen before any commercial use by a model-as-a-service or AI work-assistant business; the Max license does so only above US$50 million in revenue over twelve months. Internal use that doesn't expose the model to anyone else is exempt in both.[17][18]Mistral Large 4's license is similar: it lets you use, modify and sell the model free of charge, but a model-as-a-service business, one that gives third parties access to the model for inference or post-training (through an API, for example), needs a separate commercial license from Mistral before any commercial use. Internal use and use through Mistral's own products are exempt, and the license has no rule about displaying the model's name.[21]

Before you build on a model, check these five things in its license:

  1. 01

    Which license applies

    Read the card for the exact model and size. One family can use several licenses: the Qwen3.8 models and the Qwen3.8-Flash-Next preview use three between them.

  2. 02

    Commercial conditions

    Look for user or revenue thresholds and model-as-a-service clauses, which can require a separate agreement with the maker.

  3. 03

    Use rules

    Some licenses come with an acceptable use or prohibited use policy that you agree to follow and, for Gemma's older terms, pass on to anyone you share the model with.

  4. 04

    Redistribution duties

    Apache 2.0 and MIT ask you to include the license or its notice when you share the weights, and Llama adds a naming rule and a 'Built with Llama' notice.

  5. 05

    Derivatives

    Check whether the terms reach fine-tunes and edits. Llama's license and Gemma's older terms cover models built from them, and Apache 2.0's conditions apply to derivative works you distribute.

This is a summary of the license texts, not legal advice. Read the license for the exact model you use, and talk to a lawyer before you ship a product built on one.

Running one

Open weights mean you can run a model on your own hardware if it fits: the gpt-oss card says gpt-oss-20b runs within 16GB of memory, while gpt-oss-120b fits on a single 80GB GPU.[25] Our guide to running an LLM locally covers runners, memory and local vs hosted.

Uncensored variants

Uncensored models are built from open-weights models like these: Dolphin 3.0 Mistral 24B, for example, is trained on Mistral AI's Mistral-Small-24B-Base-2501, an Apache 2.0 model, and when Eric Hartford announced Dolphin he wrote that each release would be subject to the license of its base model.[33][34][35] Our comparison of the best uncensored LLMs sorts them by size, license and method, and the Dolphin Mistral explainer traces one lineage from base model to fine-tune.

Frequently asked

  • What is an open-source LLM?

    An open-source LLM is a large language model you can download, run and modify yourself. Under the Open Source Initiative's definition, it must also come with its training code and detailed information about its training data, under terms that allow any use. Models that publish only their weights, such as Llama 4, are what the OSI calls open weights.

  • Is Llama open source?

    Not by the Open Source Initiative's standard. Meta publishes Llama's weights under its own Llama Community License, and the OSI has said that license isn't open source because it restricts some users and fields of use. The weights are free to download and commercial use is allowed, with conditions such as a separate license from Meta for products above 700 million monthly active users.

  • Which open models allow commercial use?

    Models under Apache 2.0 or MIT allow it as long as you follow their notice requirements, including Gemma 4, Mistral Small 4, Qwen3.8-27B, gpt-oss, DeepSeek V4 and Phi-4. Llama 4 allows it with conditions, and some custom licenses, such as the Qwen Community License and Mistral Large 4's license, require a separate agreement for model-as-a-service businesses. Check the license for the exact model, since one family can use several.

  • Are uncensored models still licensed?

    Yes. An uncensored model is a fine-tune or edit of an existing open-weights model, and the base license's conditions for derivatives still apply: Apache 2.0 asks anyone who redistributes a modified model to include the license and mark changed files, and Llama's license requires a derivative that you distribute or make available to include its agreement and start its name with 'Llama', while all use must follow Meta's Acceptable Use Policy. This is a summary of the license texts, not legal advice.

Sources

Checked November 2026.

  1. Olmo-3.1-32B-Instruct model card, Ai2 on Hugging Face
  2. Llama-4-Scout-17B-16E-Instruct model card, Meta on Hugging Face
  3. gemma-4-31B-it model card, Google on Hugging Face
  4. Open Weights: not quite what you've been told, Open Source Initiative
  5. The Open Source Initiative Announces the Release of the Industry's First Open Source AI Definition (October 2024), Open Source Initiative
  6. The Open Source AI Definition 1.0, Open Source Initiative
  7. Open Source AI Definition FAQ, Open Source Initiative
  8. Meta's LLaMa license is not Open Source (July 2023), Open Source Initiative
  9. Meta's LLaMa license is still not Open Source (February 2025), Open Source Initiative
  10. Llama 4 Community License Agreement, Meta
  11. Llama 4 Acceptable Use Policy, Meta
  12. Gemma 4: Expanding the Gemmaverse with Apache 2.0 (April 2026), Google Open Source Blog
  13. Gemma Terms of Use, Google AI for Developers
  14. Qwen3.8-27B model card, Qwen on Hugging Face
  15. Qwen3.8-2.4T-A95B model card, Qwen on Hugging Face
  16. Qwen3.8-Flash-Next model card, Qwen on Hugging Face
  17. Qwen3.8-Max License (Qwen3.8-2.4T-A95B), Qwen on Hugging Face
  18. Qwen Community License 1.0 (Qwen3.8-Flash-Next), Qwen on Hugging Face
  19. Introducing Mistral Small 4 (March 2026), Mistral AI
  20. Mistral-Large-4-1T-A52B model card, Mistral AI on Hugging Face
  21. Mistral Ecosystem Open-Weight License (Mistral Large 4), Mistral AI on Hugging Face
  22. News (post dates for Mistral Small 4 and Mistral Large 4), Mistral AI
  23. DeepSeek-V4-Pro model card, DeepSeek on Hugging Face
  24. DeepSeek V4 Preview Release (April 2026), DeepSeek API Docs
  25. gpt-oss-120b model card, OpenAI on Hugging Face
  26. gpt-oss usage policy, OpenAI on Hugging Face
  27. gpt-oss-120b & gpt-oss-20b Model Card (arXiv 2508.10925, August 2025), arXiv
  28. phi-4 model card, Microsoft on Hugging Face
  29. Dolma 3 Mix dataset card, Ai2 on Hugging Face
  30. Olmo 3 (arXiv 2512.13961, December 2025), arXiv
  31. Apache License, Version 2.0, The Apache Software Foundation
  32. The MIT License, Open Source Initiative
  33. Dolphin 3.0 Mistral 24B model card, dphn on Hugging Face
  34. Mistral-Small-24B-Base-2501 model card, Mistral AI on Hugging Face
  35. Dolphin (announcement), Eric Hartford