Glossary/O/open-weight model
Models Also called: open-weights model, open weights, open model, open-source LLM, downloadable weights, self-hosted model

What is an open-weight model?

An open-weight model is a language model whose trained parameters you can download and run on your own hardware, under a license the publisher chooses. Downloadable weights do not make it open source by the Open Source Initiative's definition, which also requires the training code and enough information about the training data to build a substantially equivalent system. Most releases called "open source" ship weights only, and some licenses add conditions on use, so read the license before you build on one.

What does an open-weight release contain?

An open-weight release is a model repository you can download: the weight files, a config that describes the architecture, the tokenizer and a license. You load those files with a runtime such as Hugging Face Transformers, vLLM or llama.cpp, and inference runs on your machine or in your cloud account. The provider never receives your prompts, and no provider can retire the model while you still depend on it.

A weights-only release usually leaves out the training dataset and the code that filtered the data and trained the model. With the weights you can run the model, fine-tune it and quantize it. You cannot rebuild it from scratch or check exactly what went into it.

Open weights vs open source: who uses which word?

Model publishers and the press often call any downloadable model "open source". The Open Source Initiative sets a higher bar in its Open Source AI Definition 1.0. It asks for four freedoms, to use, study, modify and share the system, and it defines the preferred form for making modifications as three parts: the parameters, the complete source code used to train and run the system, and data information detailed enough that a skilled person could build a substantially equivalent system. OSI's open weights page lists what a weights-only release lacks next to that bar, starting with the training code and the training dataset.

US policy writing uses the narrower wording. The NTIA's July 2024 report on dual-use foundation models talks about models with widely available model weights, meaning weights the public can download, and it recommended that the government monitor the risks of those models instead of restricting them at that point. When you write code, contracts or a procurement checklist, "open weights" is the precise term, and "open source" is a claim about freedoms that you should check against the repository and the license.

What does the license let you do?

The license decides commercial use, redistribution and naming, and licenses differ more than the label suggests. OpenAI publishes gpt-oss-120b under Apache 2.0, a permissive license that allows commercial use without copyleft conditions. Meta's Llama 3.1 Community License allows commercial use with conditions: a licensee whose products had more than 700 million monthly active users in the month before the Llama 3.1 release must request a separate license from Meta, products must display "Built with Llama", and any model you create, train or fine-tune with Llama materials or outputs and then distribute must start its name with "Llama".

Review the license file the way you review a dependency license: before the model reaches production, and again on every upgrade. Llama 3.1 ships its own license version, so a newer model family can come with different terms.

What changes in your code?

  • You run the serving stack. vLLM's server starts at http://localhost:8000 by default and exposes /v1/chat/completions, so a client written for that request shape switches over by changing its base URL.
  • You choose precision and hardware. gpt-oss-120b has 117B parameters, 5.1B of them active per token, and fits on a single 80 GB GPU such as an H100 because its mixture-of-experts weights are quantized to MXFP4.
  • You own the limits. There is no provider rate limit to hit; throughput, scaling and uptime depend on the hardware and configuration you run.
  • You can change the weights. Fine-tuning, quantization and distillation work on the files directly, within whatever the license allows for derived models.

Serving gpt-oss-120b with vLLM and calling it like a hosted API

# gpt-oss-120b: Apache 2.0, 117B total / 5.1B active parameters,
# MXFP4 mixture-of-experts weights, fits on one 80 GB GPU

$ vllm serve openai/gpt-oss-120b
# weights download from the Hugging Face repo, server listens on http://localhost:8000

$ curl http://localhost:8000/v1/chat/completions \
    -H "Content-Type: application/json" \
    -d '{
          "model": "openai/gpt-oss-120b",
          "messages": [{"role": "user", "content": "Summarise the Apache 2.0 license in one sentence."}]
        }'

# Python, same OpenAI SDK, pointed at your own server
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
resp = client.chat.completions.create(
    model="openai/gpt-oss-120b",
    messages=[{"role": "user", "content": "Summarise the Apache 2.0 license in one sentence."}],
)
print(resp.choices[0].message.content)

The model ID is a Hugging Face repository name, and the request goes to your own server instead of a provider. Compared with a hosted call, the client changes only base_url and the api_key value; "EMPTY" is the placeholder vLLM's quickstart uses.

Common questions

Open-weight models: frequently asked

Is an open-weight model the same as an open-source model?

Not by the Open Source Initiative's definition. OSI's Open Source AI Definition requires the complete training code and detailed information about the training data alongside the weights, and most open-weight releases ship the weights only. Some publishers still call those releases open source, so check what the repository contains and what the license allows.

Can I use an open-weight model commercially?

That depends on the license. gpt-oss-120b is published under Apache 2.0, which allows commercial use. The Llama 3.1 Community License also allows it, with conditions that include a "Built with Llama" notice and a separate license from Meta for licensees above 700 million monthly active users. Read the license file in the model repository before you ship.

Do open-weight models keep my prompts private?

They can, because inference runs on infrastructure you control and no model provider receives the request. Privacy then depends on your own logging, storage and access controls. If you call the same weights through a third-party host, that host's data terms apply instead.

Can I see what an open-weight model was trained on?

Usually not. OSI's open weights page lists the training dataset and the training code among the things a weights-only release leaves out. You can still test the model's behaviour on your own tasks with an eval, which tells you how it performs but not where that behaviour came from.

Sources

Where these facts come from