Case & CodeA FIELD GUIDE TO AI
Start learning
Intermediate

Safetensors

Also: .safetensors

In plain words

A file format for stored model numbers. Some local apps use another format called GGUF. Check which format your app accepts.

The fuller definition

Safetensors is a file format for storing model weights safely and quickly. Original model releases on Hugging Face are usually published in it.

How it fits together
  1. Release

    Original weights

  2. Format

    Safetensors

  3. Local apps

    Often convert to GGUF

A simplified relationship, not a screenshot or a complete design.

A concrete example

A model's main repository holds safetensors files; GGUF versions for local apps are often in separate repositories.

The distinction that matters

Safetensors files are usually the full-precision originals, much larger than a 4-bit GGUF.

Related terms

Where it is taught

APIs and JSON: connect a model to a small program

Source and further reading

MDN · Web technology glossary

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC