Back to stack index

AI

Hugging Face

Hub and weights used by local runners and flow builders.

Short answer

Hugging Face is the main public hub for open AI models and datasets. Local runners such as Jan, LocalAI and GPT4All download model files from it, and app builders such as Langflow and Dify call models hosted there. Hosting and downloading public models is free. The PRO account costs $9 a month and includes $2 of monthly credits for Inference Providers, its pay-as-you-go service that routes requests to partner providers at their rates without markup. Team costs $20 a user a month, and Enterprise is priced on request. Every model carries its own license, from permissive Apache 2.0 and MIT to custom terms for Llama and Gemma, so the license on the model card decides whether you can ship it in a product. Recent large open releases on the hub include Beam, a 501 billion parameter mixture-of-experts model released under Apache 2.0 on October 16, 2026.

PRO plan
$9 a month, $2 monthly inference credit
Hugging Face pricing
Team plan
$20 a user a month
Hugging Face pricing
Inference Providers
Provider rates passed through without markup
Hugging Face
Model licenses
Set per repository
Hugging Face docs

Updated October 21, 2026How we evaluate tools

Official site

Directory projects (5)

  • Jan

    Offline-first desktop client for downloading and chatting with local models.

  • LocalAI

    Self-hosted OpenAI-compatible API for text, audio, and vision models.

  • GPT4All

    Desktop runner for open weights on CPU-first hardware.

  • Langflow

    Node editor for LangChain-style flows exportable as Python or API.

  • Dify

    Visual builder for RAG apps and agents with deployable API endpoints.

Hugging Face in open-source AI tools: models, datasets and inference for self-hosted apps in 2026

What Hugging Face is

Hugging Face started as a chatbot company in New York and became the default place to publish open AI work. Its hub hosts millions of model repositories, hundreds of thousands of datasets, and Spaces, small web apps that demo models. Organizations such as Meta, Google, Mistral, Alibaba's Qwen team, Microsoft and NVIDIA publish open weights there, and community members publish quantized versions sized for laptops.

For open-source AI tools, Hugging Face plays three roles:

  1. Model source. Local runners download weights from it.
  2. Libraries. transformers, datasets, tokenizers and huggingface_hub are the standard Python libraries for loading and fine-tuning models.
  3. Hosted inference. Inference Providers and Inference Endpoints run models for you.

Which directory projects use it

ProjectHow it uses Hugging Face
JanModel hub inside the app searches and downloads GGUF files from Hugging Face
LocalAIInstalls models from Hugging Face URLs and its gallery
GPT4AllModel list includes GGUF files hosted on Hugging Face
LangflowHugging Face components for hosted models and embeddings
DifyHugging Face model provider for inference and embeddings

Picking a model file

A model repository often contains many files. For local use you want one GGUF file at a quantization level that fits your memory.

QuantizationSize vs full 16-bitQualityUse it when
Q8_0About 50%Near originalYou have memory to spare
Q6_KAbout 40%Very closeGood default on 32 GB+ machines
Q5_K_MAbout 35%CloseBalanced choice
Q4_K_MAbout 30%Slight lossMost common choice for laptops
Q3 and lowerUnder 25%Noticeable lossOnly to squeeze a large model in

A 7B model in 16-bit takes about 14 GB; at Q4_K_M it is about 4.5 GB. Larger models lose less from quantization than small ones, so a 4-bit 14B model usually beats an 8-bit 7B model of the same family.

Inference Providers and plans

Inference Providers lets you call thousands of hosted models through one API and one bill. Requests route to partner providers, and Hugging Face states it passes their rates through without markup. The API accepts the OpenAI chat format at https://router.huggingface.co/v1, so apps that support custom OpenAI endpoints can use it.

PlanPriceIncluded inference credit
Free$0None, pay as you go after buying credits
PRO$9 a month$2 a month
Team$20 a user a month$2 a seat a month
EnterpriseCustom$2 a seat a month

Inference Endpoints, a separate product, rents a dedicated GPU running a model you choose, billed by the hour. It suits steady production traffic where you want a fixed model version and no shared queues.

Licenses

LicenseCommercial useCommon models
Apache 2.0Yes, with noticeMistral small models, Qwen (many), Beam, OLMo
MITYes, with noticePhi models, DeepSeek (recent)
Llama community licenseYes, with limits for very large companies and an acceptable use policyLlama 3 and 4
Gemma termsYes, with a prohibited use policyGemma 3
OpenRAIL variantsYes, with use restrictionsSome image and code models
Non-commercialNoMany research releases

Fine-tuned models inherit the base model's license, and datasets have their own licenses, which matter if you train on them.

Security

Older PyTorch files use Python's pickle format, which can execute code when loaded. Hugging Face scans uploads and flags unsafe files, and the safetensors format avoids the problem. GGUF files used by local runners do not execute code. Still, stick to models from known organizations or established quantizers, check the download counts and community discussion, and avoid repositories that copy a famous model's name with small spelling changes.

Downloading at scale

Large models take time to fetch. The hf command-line tool resumes interrupted downloads and supports a faster transfer backend. Set HF_HOME to a disk with space, since a few large models can fill hundreds of gigabytes. Gated models such as Llama require accepting the license on the website and using an access token. In Docker deployments, mount the cache folder as a volume so containers do not re-download models after every restart.

Datasets, Spaces and fine-tuning

Beyond models, the hub hosts datasets that open-source projects use for evaluation and fine-tuning, loaded with one line of Python through the datasets library. Spaces are small hosted apps, often built with Gradio or Streamlit, where you can try a model in the browser before downloading it; free Spaces run on CPU, and GPU Spaces are billed by the hour. If you want to adapt a model to your own data, the transformers, peft and trl libraries handle LoRA fine-tuning on a single GPU, and the result can be pushed back to a private repository, converted to GGUF, and served by Ollama or LocalAI like any other model.

Private models for teams

Companies use private repositories on the hub to share fine-tuned models and internal datasets without public release. Team at $20 a user adds organization-level access controls, audit logs and single sign-on options, and Enterprise adds storage regions and stricter governance. Storage limits apply to each plan, so teams with many large checkpoints should check the pricing page before uploading.

Reading a model card

Before downloading, check four things on the model card: the license, the context length the model was trained for, the chat template it expects, and the evaluation results the publisher reports. Local runners read the chat template from GGUF metadata, but a wrong or missing template is the most common reason a downloaded model gives strange, run-on answers. Community quantizers usually note which template and settings they tested.

Hosting your own copy

Companies that cannot depend on an outside site at deploy time mirror the models they use. Download the exact files once, record the commit hash of the repository, and store them in your own object storage or a local registry. Point Ollama, LocalAI or vLLM at that copy. This protects you if a repository is deleted, renamed or changed, and makes deployments repeatable.

Hugging Face compared with other model sources

Ollama's own library is simpler for a quick start, with curated tags like llama3.1:8b, but it carries fewer models and fewer quantization choices. Ollama can pull directly from Hugging Face with ollama run hf.co/<user>/<repo>:<quant>, so you get both. Model providers' own sites, such as Mistral's, link back to Hugging Face for weights. Kaggle and ModelScope host some models too, the latter mostly for Chinese releases.

Related: Ollama stack, LocalAI stack, Python stack, Jan, Stack index.

Frequently asked questions

Is Hugging Face free?

Browsing, downloading public models and datasets, and hosting public repositories are free. Free accounts do not include Inference Providers credit but can buy credits and pay as they go. PRO at $9 a month adds $2 of monthly credit, more storage and higher limits.

How do I run a Hugging Face model locally?

Look for a GGUF version of the model, which is the format llama.cpp, Ollama, Jan, LM Studio and LocalAI read. Ollama can pull GGUF files directly with ollama run hf.co/<user>/<repo>. For full-precision weights, use the transformers library or a server such as vLLM.

Can I use any model on Hugging Face commercially?

No. Each repository sets its own license. Apache 2.0 and MIT models can be used commercially with few conditions. Llama, Gemma and some Qwen models use custom licenses with use restrictions. Some models are research-only. Read the model card before building a product on one.

What is a GGUF file?

GGUF is a single-file format for quantized models created by the llama.cpp project. A quantized model stores weights at lower precision, commonly 4 or 5 bits, which cuts file size and memory use by roughly 70% with modest quality loss.

Are models on Hugging Face safe to download?

Most are, but anyone can upload. Prefer the safetensors format over older pickle-based files, which can run code when loaded. Download from the original organization or a well-known quantizer, and check the security scan results shown on each file.

Sources

  1. Hugging Face pricing
  2. Inference Providers docs
  3. Model licenses
  4. GGUF on the Hub