What are model weights?
What are model weights? The numbers a trained AI model stores, why they decide its behavior, and why owning them matters for production inference.
Updated
Model weights are the numbers a trained model stores. A neural network is built from many connections, and each connection carries a number that sets how strongly one value pushes on the next. Once training ends, those numbers are what the model is.
How weights get their values
Training starts with random numbers. The model reads an example, makes a prediction, and measures how far off it was. It then nudges each weight a small amount in the direction that shrinks that error. Repeat this over a large dataset and the weights settle into values that make useful predictions.
Here is a toy version with three weights. It scores whether a contract clause is a termination clause, and each signal is multiplied by its weight:
- The word “terminate” appears, weight 0.9
- The clause sits under a heading that says “Term”, weight 0.6
- The clause mentions a notice period, weight 0.4
For a clause with the first two signals and no notice period, the score is 0.9 + 0.6 = 1.5. Suppose training finds that headings mislead on this data and lowers the heading weight to 0.2. The same clause now scores 1.1. The layout did not change. One number did, and the output moved with it. A real model holds far more values than anyone could check by hand, so you judge it by test results.
Weights are the model
A model’s behavior comes from two parts. The architecture is the layout of layers and connections. The weights are the values that fill that layout. Two networks with the same architecture and different weights can behave very differently. A base model and a version tuned to follow instructions often share a layout and differ only in their weights.
Copying a published architecture gives you an untrained network of the right shape. The trained values hold the data and compute that produced them. Our guide on owning your model weights covers why that matters for a business.
Running a model needs more than the weights file. You also need:
- A config file that describes the layout and sizes
- The tokenizer, which turns text into the numbers the model reads and turns numbers back into text
- The numeric precision the weights were saved in, since the same values stored at lower precision can give different answers. The quantization explainer covers that trade-off.
Open weights versus hosted APIs
When you call a hosted model through an API, you send text in and get text back. You never see the weights. The provider can change the model, retire the version you use, or change its price, and you have no copy to fall back on. Teams usually learn this when a version they rely on is retired. The model deprecation risk guide covers planning for it.
An open-weight model publishes its weights so you can download and run them. The license sets what you may do with them, so read it before you ship. Once you run the weights yourself, you choose the hardware, the serving setup, and the day you change versions. A nightly extraction job that works can stay on one version for as long as the product needs it.
Open-weight does not mean free to run. The download costs nothing, but serving the model takes hardware, memory, and engineering time. The weights are free. The infrastructure is not.
Hosted APIs still make sense for many teams. A general assistant used now and then for drafting does not need its own copy. Owning weights matters most when one narrow task runs at high volume.
Fine-tuning changes the weights
Fine-tuning starts from an existing set of weights and keeps training on your own examples. The weights move toward your task. The output is a new set of weights, saved as a new version, and the base model stays unchanged.
Prompting does not touch the weights. A prompt tells the model what to do for one request, and every request starts from the same numbers. A fine-tuned model carries the behavior inside the weights, so the prompt can be shorter and the output more consistent. Fine-tuning is the wrong tool for facts that change every week, because you would retrain each time. The fine-tuning versus RAG guide explains where retrieval fits better.
Our fine-tuning works this way. We start from an open-weight model, train it on one task a company now sends to a frontier API, and test it against the current model on that company’s own data. The customer owns the resulting weights.
Common mistakes to avoid
- Treating the weights file as the whole model. Without the config and tokenizer, the file alone often will not run.
- Trusting a file name. A re-uploaded file can keep its name and hold different values. Store a checksum with each version.
- Testing on examples the model trained on. A score on training data measures memory, not skill. Split the test set by contract, not by chunk.
- Skipping the license. Terms can differ between releases, so check the exact version you downloaded.
- Retraining for facts that change. Weights change only when you retrain. Keep fast-moving facts in a retrieval store. The LoRA explainer covers a cheaper way to produce a new set of weights.
What to check if you want to own your weights
- Read the license for your exact use, including commercial use.
- Confirm the file format loads in the serving setup you plan to run.
- Store the weights somewhere you control, with a checksum and a record of the test each version passed.
- Keep the test set split by contract, and record the random seed and data version used for training.
- Compare each new version against the one in production before you switch traffic over.
If you want to see which of your AI calls could move to weights you own, start with the free AI cost audit. It reads your code and lists the calls, the models they use, and the estimated cost. To go further, book a call and we will walk through the results with you on Own Weights.
Questions
Are model weights the same thing as the model?
Close to it. The weights are the trained values, and the architecture is the layout they fill. Without the weights you have a blank network with the right shape, and nothing in it has learned anything yet.
Can I download model weights and run them myself?
Yes, if the model is open-weight and its license allows your use. You also need hardware with enough memory and the engineering to serve it reliably. Read the license terms before you build a product on the download.
Do I need to own model weights to use AI in production?
No. Many teams call a hosted API and never handle weights, and that works well for many tasks. Owning weights matters most when one task runs at high volume or when you need a model version that stays fixed.