Glossary termConcept

Model Weights

Also known as: Model parameters, Parameters

The learned numerical values inside a machine learning model, set during training, that determine how it transforms inputs into outputs.

Model weights are the numbers a neural network learns. Each connection between units carries a weight that scales the signal passing through it, and together with bias terms these values make up the model's parameters. Training adjusts them, usually with gradient descent, until the model performs well. Once training ends, the weights encode everything the model has learned, from grammar to visual features. A model's parameter count, often in the billions for large language models, is a rough measure of its size.

In practice, weights are stored as large files of numerical arrays, often called checkpoints, in formats such as safetensors or GGUF. Their precision matters: storing each value as a 16-bit number instead of a 32-bit one halves the file size, and quantization to 8 or 4 bits shrinks it further at some cost in accuracy. Running a model requires loading its weights into memory, which is why the memory available on GPUs often limits which models can be used on a given machine.

Because weights embody the expensive product of training, control over them is a central question in AI policy and business. Companies that keep weights private offer access only through interfaces they control, while open-weight releases let anyone run, study and modify a model. Weights are therefore treated as valuable assets to be protected from theft, and policy discussions on advanced AI have considered security standards for them. Weights alone do not reveal the training data or code, which is one reason openly released weights are not necessarily open source.

Key points

  • Weights are learned numbers that, together with biases, make up a neural network's parameters.
  • Weights are distributed as checkpoint files, and their numeric precision determines memory requirements.
  • Access to weights determines whether others can run, inspect or modify a model independently.
  • Released weights without training data or code do not by themselves make a model open source.

Related entries

Glossary term

AI model whose trained weights are publicly released for download, letting others run, study and adapt it, though often under restrictive licenses.

Glossary term

Quantization

AIHardware

Technique that stores and computes a model's numbers at lower precision, such as 8 or 4 bits, to cut memory use and speed up inference.

Glossary term

Further training of a pretrained model on a smaller, task-specific dataset so that it adapts its behavior to a particular domain, style or task.

Glossary term

Computational model made of interconnected units, loosely inspired by biological neurons, whose connection strengths are learned from data.

Glossary term

Inference

AIProgramming

The stage at which a trained machine learning model is run on fresh inputs to produce predictions or generated outputs, as distinct from training.

Technology

llama.cpp

AIFOSS

Open-source C and C++ engine for running large language models locally on consumer hardware, known for its quantized GGUF model format.

Organization

Company that runs a widely used platform for sharing machine learning models, datasets and demos and maintains popular open-source AI libraries.

Technology

Family of large language models from Meta, distributed as downloadable weights that developers can run, study and adapt on their own hardware.

Featured in guides