AI GLOSSARY · AI CONCEPTS

Model weights

Markdown version · Wikidata Q138819465

Definition

Model weights are the numbers inside a trained AI model that store what it learned. Training adjusts them to reduce errors, and they are saved as files that a program loads to run the model.

Also called: weights in neural network, AI weights, neural network weights, model weight files.

In plain language

Model weights are the long list of numbers a model has learned from its training. Each one is like a dial that makes some connection inside the model stronger or weaker; training turns the dials until the model's answers improve. The weights are the model in a practical sense: they are the files you download or load to run it. A company that publishes them lets others run the model on their own machines, which is the idea behind an open-weights model. Check checkpoint storage and the runtime's host/device memory needs separately. A runtime may keep weights resident or offload layers through CPU memory and disk, so the whole checkpoint need not fit in device memory at once.

Technical definition

In a neural network each connection carries weights, the numbers, alongside bias terms, that the network adjusts during training (IBM). Backpropagation computes loss gradients; the optimizer applies parameter updates. PyTorch's tutorial separates loss.backward() from optimizer.step(). After training, the weights are saved to files; Hugging Face's safetensors format stores them as tensors. The Hugging Face safetensors format is described as a simple format for storing tensors safely, as opposed to pickle, that is still fast, and the Transformers library implements methods for loading and saving a model from a local file or directory or from the Hugging Face Hub.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    local-model-sizing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A calculation of whether an open-weight language model will run on a given GPU, Mac or PC, with a script that computes weight, KV-cache and overhead memory per quantization.
    Why it exercises the concept
    Hypothetical preparation: supply a checkpoint size, precision and hardware budget to estimate resident-weight, KV-cache and overhead memory. This sizing estimate does not model every CPU/disk offload runtime or prove that inference will fit; check those runtime requirements separately.
  2. Skill by Hugging Face · Illustrative, not executed

    hf-cli 21/100 · grade FScored · Method v0.2 · How we score

    What you see
    A command-line tool for the Hugging Face Hub (the catalogue carries no description of its own).
    Why it exercises the concept
    Weights are usually distributed as files on a model hub, and this skill is a command-line tool for the Hugging Face Hub, listed without a description in this catalogue.
  3. Coding tool · Illustrative, not executed

    Claude Code

    What to try
    /model
    What you see
    Claude Code's commands reference says /model switches the AI model, with no weight files for you to download or manage.
    Why it exercises the concept
    It is a contrast case: you choose a model whose weights you never hold, unlike a local model where you load the weight files yourself.

How it shows up when you use agents

When you use a hosted agent such as Claude Code, you pick a model by name with /model and do not handle weight files yourself. The weights come into view when you run a model yourself. An open-weights model is one whose weights are published, so you download the files and load them with a runtime on your own machine for inference.

What breaks when weights are misunderstood. People assume that having the weights means they can inspect the training data or reproduce the model. A weights release gives you the numbers, and the training data and code may stay private. Another failure is downloading weights that do not fit in memory. See Quantization for reduced-precision copies.

Next action: before downloading, check the licence and use the local model sizing skill to see whether the files fit. The safetensors documentation describes its format as one for storing tensors safely, as opposed to pickle.

Common confusions

  • Weights versus the model. The architecture describes how the network is laid out. The weights are the learned numbers that fill it. You need both to run a model.
  • Weights versus training data. Weights are the result of training on data. Having them does not give you the data itself.
  • Weights versus a hosted API. With an API the provider holds the weights. With open weights you hold the files.
  • Weights versus fine-tuning. Fine-tuning changes weights, or adds adapter weights, starting from an existing model.
Show all 20 related terms

Terms that mention Model weights

18 terms mention this one

More in AI concepts

Next steps

  1. local-model-sizing A skill that exercises it.
  2. Fine-tuning Related term.
  3. AI model Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft); OpenAI Codex (bounded factual repairs); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (5)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: applied verifier corrections to unsourced or over-stated claims.
  • : Bounded source repairs: Separated gradient computation from optimizer updates; distinguished checkpoint storage and host/device/disk offload from resident-weight estimates. Pending independent re-review.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.