Mindket

What are open-weight models? Open weights vs open source

A black banner titled "Open-weight models" over the line "Licences, sizes, quantization and how to choose".

An open-weight model publishes its trained parameters, the weights, so anyone can download and run it. Open source asks for more: the training code and details of the training data. Most models called open, including gpt-oss, Qwen, DeepSeek, Gemma, Llama and Mistral, release the weights under a license, and that license sets what you may do with them.

In this lesson

  • Find a model's weights, license and card on its Hugging Face page before you download anything.
  • Call a release open source only when it also ships training code and names its training data.
  • Read the license field as the rule for your use, whatever the headline says.
  • Compare sizes across families on their cards, and note whether a number counts all the parameters or only the active ones.
All courses
On this page
  1. Before you start
  2. Inspect a release before you download it
  3. Weights, code and data: what a release can hold
  4. The families you will meet
  5. Common mistakes
  6. Try it yourself
  7. Next: open-model licenses
  8. Check yourself
  9. Frequently asked questions
  10. Sources

Before you start

You need a browser. The model pages in this lesson open without an account, except Meta's Llama 4 page. Hugging Face gates that one: you log in and fill in a form that includes accepting Meta's license, and the Hub lists the access as manual approval.

A model's weights are the numbers it learned during training, billions of them, stored in files. They decide how the model answers. Every other file in a download, such as the tokenizer, the settings and the license, only helps your software load and use them.

Inspect a release before you download it

Open one release and look at what it holds. The example is OpenAI's gpt-oss-20b, and the steps work the same on any model page. The file names in the steps come from the list that Hugging Face's API returned on 6 November 2026.

The card also gives two commands. The first pulls the model through Ollama, which the Ollama tutorial sets up. The second downloads the weights with the Hugging Face command line tool.

# Ollama, from the model card
ollama pull gpt-oss:20b
ollama run gpt-oss:20b

# Download the weights with the Hugging Face CLI, from the model card
huggingface-cli download openai/gpt-oss-20b --include "original/*" --local-dir gpt-oss-20b/
  1. Open huggingface.co/openai/gpt-oss-20b. The page is the model card, a README.md file with a block of settings at its top.
  2. Find the license in that block. The card says license: apache-2.0.
  3. Select the Files and versions tab. The files that end in .safetensors are the weights.
  4. Open config.json. It holds the model's settings. The tokenizer files and chat_template.jinja next to it tell your software how to turn text into numbers and back.
  5. Open LICENSE and USAGE_POLICY. The first is the Apache License 2.0. The second is two sentences and asks you to follow applicable law.
  6. Look for what is missing. The repository holds no training data and no training code.
  7. Run the model if you have the memory. The card says gpt-oss-20b runs within 16GB.

Weights, code and data: what a release can hold

What you just inspected is weights plus the files that load them. Two other things go into building a model, and neither sat in that folder: the training code, the programs that ran the learning, and the training data, the text it learned from. The weights let you run a model and fine-tune it. Rebuilding it from scratch needs the other two.

That gap is the argument over open weights and open source. Wikipedia's article on open-source AI says the Open Source Initiative's definition asks for the full code to process the data, train the model and run it. It also asks for details about the training data, which need not be the data itself. A model that releases only the weights is open-weight, and the article notes critics call a weights-only release sold as open source "openwashing". It adds that Meta's description of Llama as open source has been disputed because of Llama's license.

Ai2's Olmo sits at the other end. The Olmo 3.1 32B Think card names the datasets it was trained on, Dolma 3 and Dolci, and says Ai2 is releasing all code, checkpoints and training details, with logs coming soon.

For choosing a model to run, the difference matters less than it sounds, because the download is the same. It matters when you must audit what a model learned or reproduce it, and when a company policy allows only open source.

What three releases hold, by their own cards
gpt-oss-20bLlama 4 ScoutOlmo 3.1 32B Think
Weights to downloadYesPartlyYes
Training data named on the cardNoPartlyYes
LicenseApache 2.0, plus a usage policyLlama 4 Community LicenseApache 2.0

Sources: Hugging Face: openai/gpt-oss-20b (read November 6, 2026), Meta: Llama 4 model card (read November 6, 2026), Hugging Face: meta-llama/Llama-4-Scout-17B-16E-Instruct (read November 6, 2026), Hugging Face: allenai/Olmo-3.1-32B-Think (read November 6, 2026)

Partly means with a condition. Llama 4 Scout's files on Hugging Face are gated behind a login, a form and manual approval. Its card describes the training data in words, as "a mix of publicly available, licensed data and information from Meta's products and services".

The families you will meet

This course follows six families: gpt-oss from OpenAI, Qwen, DeepSeek, Llama from Meta, Gemma from Google DeepMind and Mistral. Some publish a ladder of sizes. Gemma 4's card lists five, E2B, E4B, 12B, 26B A4B and 31B. Others publish two: the gpt-oss cards describe a 21B and a 117B model, and Meta's Llama 4 card lists Scout at 109B and Maverick at 400B total.

The table shows one current model per family. Families ship new versions every few months, so read the names as examples and check the publisher's page for the newest. Parameters are the weights counted in billions, so 21B means 21 billion. Where a model is a mixture of experts, the table also gives its active share, a term that lesson 3 explains.

From the model cards for gpt-oss-20b, Qwen3.8-27B, DeepSeek-V4.1-Flash, Llama 4, Gemma 4 12B and Mistral Large 4, read on 6 November 2026.
FamilyPublished byModel read on 6 Nov 2026ParametersWhat its card calls it
gpt-ossOpenAIgpt-oss-20b21B, 3.6B activeFor lower latency, and local or specialized use cases
QwenQwenQwen3.8-27B27BA native vision-language model
DeepSeekDeepSeekDeepSeek-V4.1-Flash552B backboneA multimodal mixture-of-experts model
LlamaMetaLlama 4 Scout109B, 17B activeMultilingual text and image input
GemmaGoogle DeepMindGemma 4 12B11.95BText, image and audio input
MistralMistralMistral Large 4About 1T, 49B activeA natively multimodal mixture-of-experts model

Common mistakes

  • Treating "open" in a headline as permission. The license on the card says what you may do, and lesson 2 shows how to read it.
  • Calling a weights-only release open source in your own writing. Say open-weight and name the license.
  • Downloading before checking size. In llama.cpp's table a 405B model is 1,625.1 GB before quantization.
  • Skipping the access request on a gated model. Meta's Llama 4 page asks for a login and a form, and the files stay locked until the request is approved.
  • Copying a model name from a tutorial. Names such as Qwen3.8 or Gemma 4 stop being current as new versions arrive, so read the publisher's page.

Try it yourself

  • Open the pages for gpt-oss-20b and Olmo 3.1 32B Think and list what each repository holds that the other does not.
  • Find the license field on the Qwen3.8-27B and DeepSeek-V4.1-Flash cards and write both down.
  • Run ollama run gpt-oss:20b if you have 16GB of memory free, after the Ollama tutorial.
  • Pick one family above and write down the first three things you would check before using it at work.

Next: open-model licenses

Every card carries a license field, and the six models above hold four different kinds. Lesson 2 reads them line by line.

Check yourself

  1. What do the weights of a model contain?

    Show answer

    C. The numbers it learned in training The weights are the numbers learned during training, stored in files such as the .safetensors ones.

  2. Which of these makes a release more than open-weight?

    Show answer

    D. Released training code and named training datasets Open source adds the training code and details of the data to the weights, as the Olmo 3.1 card does by naming Dolma 3 and Dolci.

  3. Where do you read the license a maker chose for a model?

    Show answer

    B. In the card's license field and the LICENSE file The card's settings block holds a license field, and the repository usually carries the full text in a LICENSE file.

  4. Which files in a model repository are the weights?

    Show answer

    A. Files ending in .safetensors On gpt-oss-20b the .safetensors files hold the weights. The others are the license, the tokenizer and the card.

Frequently asked questions

What is the difference between open weights and open source?

Open weights means the trained parameters are published for download. Open source adds the full training code and a description of the data, under terms that let you study, change and share the system. Some models called open source only meet the first half.

Is Llama open source?

Meta calls it open source, but open-weight is the accurate word. The weights come under the Llama 4 Community License, which asks for a "Built with Llama" notice and a license from Meta above 700 million monthly users. The Open Source Initiative and others have contested the label because the license carries an acceptable use policy that bars some uses.

Can I run an open-weight model on my own computer?

Yes, if it fits in memory. The gpt-oss-20b card says it runs within 16GB, while the larger gpt-oss-120b targets a single 80GB GPU. The local hardware lesson shows how to size a model, and lesson 4 covers the quantization that shrinks it.

Are open-weight models free to use in a business?

Often yes, under terms that differ by license. Apache 2.0 and MIT allow commercial use with a notice. Meta's license adds a condition above 700 million monthly users, and Mistral's limits hosting the model for others as a service. Lesson 2 compares them.

What file format are the weights in?

Hugging Face lists safetensors as a recommended model format, and gpt-oss-20b's weights are .safetensors files. GGUF files hold the weights and extra metadata in one file for llama.cpp, Ollama and LM Studio, and lesson 4 covers them.

Sources

  1. GitHub: openai/gpt-oss README (read November 6, 2026)https://github.com/openai/gpt-oss
  2. Hugging Face: openai/gpt-oss-20b model card (read November 6, 2026)https://huggingface.co/openai/gpt-oss-20b
  3. Hugging Face API: openai/gpt-oss-20b (file list) (read November 6, 2026)https://huggingface.co/api/models/openai/gpt-oss-20b
  4. Hugging Face: allenai/Olmo-3.1-32B-Think model card (read November 6, 2026)https://huggingface.co/allenai/Olmo-3.1-32B-Think
  5. GitHub: Meta Llama 4 model card (read November 6, 2026)https://github.com/meta-llama/llama-models/blob/main/models/llama4/MODEL_CARD.md
  6. Hugging Face: meta-llama/Llama-4-Scout-17B-16E-Instruct model page (gated) (read November 6, 2026)https://huggingface.co/meta-llama/Llama-4-Scout-17B-16E-Instruct
  7. Hugging Face Docs: Gated models (read November 6, 2026)https://huggingface.co/docs/hub/models-gated
  8. Hugging Face: Qwen/Qwen3.8-27B model card (read November 6, 2026)https://huggingface.co/Qwen/Qwen3.8-27B
  9. Hugging Face: deepseek-ai/DeepSeek-V4.1-Flash model card (read November 6, 2026)https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash
  10. Hugging Face: google/gemma-4-12B-it model card (read November 6, 2026)https://huggingface.co/google/gemma-4-12B-it
  11. Hugging Face: google/gemma-4-26B-A4B-it model card (read November 6, 2026)https://huggingface.co/google/gemma-4-26B-A4B-it
  12. Hugging Face: mistralai/Mistral-Large-4-1T-A52B model card (read November 6, 2026)https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B
  13. Wikipedia: Open-source artificial intelligence (read November 6, 2026)https://en.wikipedia.org/wiki/Open-source_artificial_intelligence
  14. Hugging Face Docs: Model Cards (read November 6, 2026)https://huggingface.co/docs/hub/model-cards
  15. Hugging Face Docs: Licenses (read November 6, 2026)https://huggingface.co/docs/hub/repositories-licenses
  16. Hugging Face Docs: GGUF (read November 6, 2026)https://huggingface.co/docs/hub/gguf
  17. llama.cpp: quantize README (read November 6, 2026)https://github.com/ggml-org/llama.cpp/blob/master/tools/quantize/README.md

Share this lesson

Find a project that runs on an open model

Kits on Mindket list GitHub projects with their setup notes, so you can see what a project needs before you install it.

Browse kits

This lesson as Markdown · Open-weight models: licences, sizes and how to choose one · All courses