Model hub

A model hub is an online repository where developers publish, version and download trained AI models, usually alongside datasets and documentation, much as GitHub works for source code.

When a lab or a developer releases an open-weight model, it usually uploads the weight files, the configuration, the tokenizer and a documentation page to a model hub. Anyone can then browse models by task, language or licence and download one with a line of code. The best known is the Hugging Face Hub. As of December 2026 its documentation says it hosts more than 3 million models, 1 million datasets and 2 million demo apps, which it calls Spaces.

On Hugging Face, each model lives in a Git-based repository: a version-controlled folder with commit history, diffs and branches. That lets a developer pin an application to an exact revision of a model rather than whatever was uploaded last. Each repository carries a model card, a README file with structured metadata at the top recording things such as the licence, the training datasets and the intended task. A base_model field names the model or models it was derived from, whether as a fine-tune, an adapter, a quantised copy or a merge, so users can trace a model back to where it came from.

Not everything on a hub is open to all. Authors can make a model gated, so users must request access and usually share their username and email first, with approval granted automatically or by hand. Hugging Face's documentation cites Meta's initial Llama 2 release, where users had to request access on Meta's own website. The licence shown on the page, not the fact that a file can be downloaded, decides what a user may legally do with it.

Downloading a model also carries security risk. Pickle, the default format for PyTorch weights, can run arbitrary code when a file is loaded. Hugging Face scans every file pushed to the Hub with the ClamAV antivirus and with a scan that lists the imports inside pickle files, flagging suspicious ones. It describes these checks as best-effort, advises loading models from publishers you trust, and developed safetensors, a simpler format for storing weights.

In practice, a model hub is where most open models enter a business, so it deserves the checks any software supply chain gets: who published the model, what the licence allows, what the model card says about training data and limitations, and which file format the weights use. Download counts and likes measure popularity, not quality or safety.

Common questions

What is the Hugging Face Hub?

It is the largest public model hub, where companies, researchers and individuals publish models, datasets and demo apps. Each model sits in a version-controlled repository with a model card, and many libraries can download models from it directly by name.

Is it safe to download models from Hugging Face?

Models from well-known publishers are generally used safely, but files in the pickle format can run code when loaded. Hugging Face scans uploads for malware and suspicious pickle imports and says these checks are best-effort. Prefer trusted publishers and weights in the safetensors format.

What is a gated model?

A gated model is one whose files can only be downloaded after the user requests access, usually sharing their username and email and accepting conditions set by the author. Access can be granted automatically or approved by hand, and authors can revoke it.

What is a model card?

A model card is the documentation page attached to a model. On Hugging Face it is a README file with metadata such as the licence, training datasets and base model, followed by a description of the model's intended uses, limitations, training and evaluation results.

Finding more

Search for "Hugging Face Hub documentation", "model card", "gated models" or "safetensors vs pickle" to understand how hubs work and how to use them safely. The hub operators' own documentation is the most reliable source for features and policies, while security advisories and research on model supply-chain attacks explain the risks. Check a model's licence on its own page rather than relying on a summary.

  • Hugging Face Hub documentationOfficialDescribes the Hub, its Git-based repositories and the number of models, datasets and Spaces it hosts.
  • Model CardsOfficialExplains model card metadata, including licence, datasets and the base_model field.
  • Gated modelsOfficialHow access requests work, with the Llama 2 example.
  • Pickle ScanningOfficialWhy pickle files can run code and what the Hub's security scanner checks.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.