If you are interested in the topic of AI and data, then you have probably come across a service such as HuggingFace - platforms and communities for developers in the field of AI, a sort of GitHub for AI. It provides a centralized, easy-to-use hub for sharing, searching, and collaborating on open machine learning models, datasets, and applications.

But, to put it mildly, it is not the most user-friendly; it can be difficult to immediately understand how to work with a complex interface. You see 800 thousand models, and you feel about the same as a person who came to the Moscow wholesale market for the first time in the 1990s - everything is there, you can’t understand anything, everyone looks at you like prey, and where to start is not written anywhere. Twenty minutes later, you either downloaded the wrong datasets or abandoned this disastrous business.

The problem is not even that HuggingFace is complicated, there is more of a nuance that it requires you to already understand and know the platform. This article is an easy tutorial on how to use HuggingFace, and how you can work with data and weights on it without getting lost in three pines.


HuggingFace is now not exactly a platform exclusively for ML engineers. Here are models for text, pictures, audio and code, datasets, demo applications and a whole zoo of libraries. But this is not GitHub - HuggingFace grew very quickly, and the platform grew faster than its documentation for beginners.

HuggingFace for Beginners: How to Select and Launch a Model

The model cards assume that you already know what quantization is, what device_map is for, and why float16 is not the same as bfloat16. And if you don’t know, get out of the battalion of ML engineers.

But we will go a slightly different way, we will analyze what is there in general, why each tab is needed, then we will learn to read the model card so as not to download an extra 40 gigabytes. Then we’ll look at launch methods - without code and with code, plus local launch via GGUF and Ollama, if you want everything under your control.

By the way, if you don’t want to bother with a local installation and understand quantizations right now, there is a workaround: on BotHub open models are available via chat and an OpenAI-compatible API - without VPN and with payment with a Russian card. The referral link gives you 300,000 CAPS, so you can touch what will be discussed below even before you download the first gigabyte of scales.

What is there on HuggingFace: tabs

On HuggingFace, the main tabs are Models, Datasets, and Spaces.

HuggingFace for Beginners: How to Select and Launch a Model

Models (huggingface.co/models) - scales repository. Here are files that can be downloaded and launched locally or via transformers: Llama, Qwen, Stable Diffusion, Whisper and several million more checkpoints. The model in this section is a set of tensors and configuration, not a finished application. To make it work, you need code, a GPU, or at least pipeline from Python.

Datasets (huggingface.co/datasets) - Data repository for training and evaluation. Here are text corpora, images, audio and tables, which are loaded in one line load_dataset("name"). In this article, we do not touch this tab, because it is needed by those who are going to fine tune or build their own benchmarks, and not run ready-made weights.

Spaces (huggingface.co/spaces) - running demos. Each Space is a small web application on Gradio, Streamlit or Docker, which runs on the HuggingFace infrastructure and opens in the browser without installation. The model here is already loaded, the weights are downloaded, the GPU is allocated. You enter text or a picture, get the result and close the tab.

Then we work mainly in Models: that’s where they choose what to download and how to pay for hardware. Spaces will come in handy when you want to touch the model before spending gigabytes on downloading.

How to read a model card so as not to download junk

Let's look at the model card using a specific example - zai-org/GLM-5.3, one of the best among open models, released in August 2026.

At the top you see the tags: Text Generation, Transformers, Safetensors, English, Chinese, glm_moe_dsa, conversational. The first tag is Task, that is, the task for which the model was trained. Text Generation means that the model generates text: answers questions, adds code, conducts a dialogue. If you need summarization or classification, you look for other tags, and this determines which class from the transformers library you load. Safetensors is a scale storage format that replaced pytorch_model.bin and is considered safer and faster to load. glm_moe_dsa is an architectural tag, more about it below.

HuggingFace for Beginners: How to Select and Launch a Model

In GLM-5.3, the License: glm-5.3 tag leads to a separate document, that is, to Z.ai's own custom license, which allows commercial use with reservations (in particular, with a ten billion dollar revenue clause, after which the terms change).

The popularity of the model is no less important. In this example, the time the article was written was Downloads last month: 2,507,023. Two and a half million downloads in a month is a rough but working indicator that the model is not broken and there are answers to it in discussions. If the model has been downloaded five hundred times and there is silence in issues, most likely you will be the first to stumble upon a bug. But popularity says nothing about whether the model is suitable for your task.

The size of the model is also important. In the screenshot, in the Safetensors block you can see the line Model size 753B params. This is the total number of model parameters, but the model uses the MoE (Mixture of Experts) architecture, where at each generation step only a part of the weights is activated - about 40 billion parameters. This is why the 753B model can be faster in some configurations than a dense model of comparable size. But to run locally, this still means that you will need not a laptop, but a server with a large amount of memory.

HuggingFace for Beginners: How to Select and Launch a Model

The image above shows the Files and versions tab. Here you can see that the weights are divided into shards - files model-00001-of-00141.safetensors and further, each approximately 5.36 GB. There are more than a hundred such files, and the total snapshot size exceeds two hundred gigabytes. If you click “download” without looking, you will get exactly these two hundred gigabytes. To run locally, you almost always need a quantized version - one where the weights are compressed with a loss of precision. In Image 5, in the Use this model drop-down menu, there is a separate Browse Quantizations option that leads to versions for llama.cpp, Ollama, and LM Studio. A GLM-5.3 quantum in the GGUF format can no longer occupy two hundred gigabytes, but 97, or even less, depending on the compression level.

HuggingFace for Beginners: How to Select and Launch a Model

This screen above is already a modal window with the code for transformers. Two approaches are shown here. The first is high-level pipeline: two lines, and the model is ready to accept messages in chat format. The second is more manual, with AutoTokenizer and AutoModelForCausalLM, where you manage tokenization and generation yourself. To get started, pipeline is enough, because it itself pulls up the required model class and tokenizer. But before running this code, you need to answer the previous questions: will the model fit into your memory, do you have a GPU and are you satisfied with the license.

HuggingFace for Beginners: How to Select and Launch a Model

The next image (above) is the Community tab. This is an optional, but useful signal, because if there are dozens of threads in discussions with questions about model behavior, oddities in tool-calling, or problems with long context, you get a free list of mistakes that others have already stepped on. GLM-5.3 has threads in the community about behavior, about its use as a “tool of war” and about prices from different providers. You don't need to read everything, but it's worth skimming the titles.

HuggingFace for Beginners: How to Select and Launch a Model

Well, there is a menu Use this model. It shows that the same model can be run via Transformers, via Inference Providers (cloud APIs), via Google Colab or Kaggle, locally via vLLM, SGLang, Docker Model Runner, or via quantized assemblies for Ollama and llama.cpp.

A simple rule that saves the first evening is to first filter the models by task, then sort by downloads, then check the license and size. If the model has more than seven billion parameters, and you do not have the most powerful machine, look towards quantized versions or cloud providers.

Fork one: run without code

But if you want to launch it without code, two things solve this problem on HuggingFace. The first is Spaces, the second is Inference API. Both eliminate the need for installing dependencies and fiddling with virtual environments, but they are designed completely differently.

HuggingFace for Beginners: How to Select and Launch a Model

The screenshot shows the Spaces directory. There are more than one and a half million applications, and they are divided into categories, some generating images, videos, text, speech synthesis, 3D modeling, code analysis. Each Space is a Git repository with an application on Gradio, Docker or Static SDK. The weights are already loaded inside, the GPU or CPU is allocated, and all this runs on the HuggingFace infrastructure. You open a page in your browser, enter a query and get the result.

HuggingFace for Beginners: How to Select and Launch a Model

Let's take a specific example - Phonon. This is a family of speech synthesis models from the French company Gradium, which was released in October 2026. At the top there are three model options: Phonon 31M (English, 65 MB, Apache 2.0 license), Phonon 40M (five languages, 75 MB, CC BY-NC 4.0) and Phonon 40M Multilingual (the same five languages, but with advanced settings). You select a model, enter text in the field, press Speak - and after a couple of seconds you hear a voice. Below you can see how the loading is progressing: Downloading Phonon 31M: 1 of 65 MB. The model is downloaded once and then works locally in your browser. Below the input field there is a choice of voice (Zoey, female) and device (CPU). At the very bottom there is a technical line: TTS - WRTF - DEVICE CPU, WebAssembly. WebAssembly is a binary format that runs in the browser at near native speed; it is this that allows Phonon to work without a server and without Python. The inference stack is written in Rust and compiled into WebAssembly, so the model runs right in your tab.

Spaces like these are the best way to test how a model sounds, looks or responds before you spend time setting it up. True, there is a nuance - not all Spaces are stable. Some crash a week after publication, some only work with a VPN, some require authorization. But for a quick check it is enough

But there is a second tool - Inference API, which in the documentation is now called Inference Providers. This is a way to call a model over HTTP without opening the browser at all. You send a POST request to the HuggingFace server, the server itself downloads the model, runs it through its GPUs and returns a response. The weights are not downloaded, the environment is not configured, only a token is needed.

The shortest example is curl. First get the token from the huggingface.co/settings/tokens page and put it in the HF_TOKEN environment variable. Then:

curl https://router.huggingface.co/v1/chat/completions \
  -H "Authorization: Bearer $HF_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-ai/DeepSeek-V3-0324",
    "messages": [{"role": "user", "content": "Кто ты?"}]
  }'

A few lines, and the model responds. By the way, the router.huggingface.co/v1/chat/completions endpoint is compatible with the OpenAI format, so the same request can be sent through the openai library by simply changing base_url. If you prefer Python and don’t want to install unnecessary packages, there is huggingface_hub:

from huggingface_hub import InferenceClient
import os

client = InferenceClient(api_key=os.environ["HF_TOKEN"])
response = client.chat.completions.create(
    model="deepseek-ai/DeepSeek-V3-0324",
    messages=[{"role": "user", "content": "Кто ты?"}]
)
print(response.choices[0].message.content)

InferenceClient is the official SDK, which automatically selects the best provider available for a particular model. Providers are partner servers (Novita, Cerebras, DeepInfra and others) that host models and bill for tokens. Free accounts have a request limit per month; for production you need a paid plan or your own endpoint.

Both tools are quite useful and interesting, and you are free to choose what you need.

Local launch: GGUF, Ollama, llama.cpp

But if you want to run a model locally on your machine, then these three words will come across you all the time.

GGUF (GPT-Generated Unified Format) is a file format that contains the quantized weights of the model plus metadata: configuration, tokenizer dictionary and everything else that is needed to run. Previously, weights were stored in pytorch_model.bin or safetensors, but for local inference on a CPU or weak video card, a format was needed that could quickly read compressed tensors. GGUF is a “single-file format”, one file containing the architecture, weights, and settings. It is understood by llama.cpp, Ollama, LM Studio and a dozen other wrappers.

Quantization in GGUF is different. Q4_K_M is the most popular compromise between size and quality, Q8_0 is almost lossless, but heavier, IQ3_M or Q3_K_S is for machines with a small amount of memory. On Habré and in the HuggingFace documentation (section on quantization) there are tables with sizes, but the rule of thumb is simple: if the model in Q4_K_M weighs more than you have RAM, take a more aggressive quant or look towards cloud providers.

Ollama is a wrapper over llama.cpp, which removes all the fuss with the assembly. You install the application, open a terminal and write one command. The syntax for models with HuggingFace is ollama run hf.co/{username}/{repository}. For example, for quantized Llama 3.2:

ollama run hf.co/bartowski/Llama-3.2-1B-Instruct-GGUF

If there are several quanta in the repository, you can specify a specific tag: ollama run hf.co/bartowski/Llama-3.2-3B-Instruct-GGUF:Q8_0. Ollama will take Q4_K_M by default if it is in the repository, and if not, it will choose a reasonable option from the available ones. This is described in the HuggingFace Ollama integration documentation. Works on macOS, Linux and Windows. Internally, Ollama keeps its own build llama.cpp, which it updates with releases, so you don't have to compile anything.

llama.cpp is the engine on which everything runs. Ollama uses it, but llama.cpp itself gives more control: you can choose a backend (CUDA, Vulkan, Metal, SYCL), adjust the number of layers on the GPU (-ngl), enable speculative decoding, or run a server with an OpenAI-compatible API. Assembly requires cmake and a compiler. But this allows you to play out to the fullest, with almost maximum scope for optimization.

A separate story is about hybrid architectures. If the model uses a non-standard combination of layers (like Gemma 4 Hybrid or Zamba2), the stock llama.cpp may not know what to do with it and will crash with the error unknown model architecture. This may be because the architecture came out later than the latest engine release. The solution is to either take a patched assembly from the authors of the model, or wait until support is added to upstream.

HuggingFace for Beginners: How to Select and Launch a Model

For example, for the Gemma 4 E2B Hybrid, the model card directly states: “Run these files with a build that includes the Cactus patch series - on unpatched llama.cpp they fail to load with “unknown model architecture” by design.” So if you see such an error, first of all check whether you have a hybrid architecture and whether there is a patch for it.

Where a beginner usually stumbles

That's all you need to know at first. Of course, there is a lot more there, but these are topics for separate articles. And now is the time to talk about mistakes.

The first thing that breaks plans is downloading the full-precision version instead of the quantized version. The weights in float16 (half precision) take up twice as much space as in float32, but even this is not enough for local execution. The 7 billion parameter model in FP16 weighs about 14 GB, and its quantized counterpart Q4_K_M weighs about 4.1 GB, while the quality degradation is only +1.68% according to the perplexity metric (perp Lexity - how much the model is “surprised” by the text; the lower the better). The difference in size is three and a half times with an almost imperceptible loss of quality - quanta wins on all fronts. The exception is tasks where absolute accuracy at the FP16 level is important, but this is not the case for getting to know the model.

The second trap is the max_new_tokens parameter. If you do not specify it, the model will generate until it hits max_length from the generation configuration, and this limit can be set to 512 or 1024 tokens. You wait for a response that should have taken five seconds, but it takes twenty. The HuggingFace documentation explicitly recommends using max_new_tokens for length control and leaving max_length for backwards compatibility. If you forgot to set it, you ended up with a generation that was a kilometer longer than needed.

The next mistake is downloading the base-model when you need the instruct-version. The base model is trained to predict the next token on raw text: it continues the line, rather than answering the question. The Instruct version is additionally trained on instructions and dialogues, so it behaves like an assistant. If you give the base model the prompt “Who are you?”, it might output something like “Who are you? “he asked, entering the room,” because for her this is the beginning of a story, and not a request to the interlocutor. Check the suffix -Instruct or -Chat in the repository name.

Selecting by number from the leaderboard is a different story. Benchmarks like MMLU or HumanEval suffer from data pollution when questions from test sets end up in training corpuses, and the model “remembers” the answers rather than learning to solve the problem.

And the last thing is a quantum from an anonymous person. Q2_K weighs 2.7 GB versus 4.1 GB for Q4_K_M, but the perplexity grows by 15.3% instead of 1.68%, and quantization guides explicitly mark Q2_K as "not recommended". If the model freezes after downloading a dubious quantum, the problem may be in the quantum, not in the architecture. Take Q4_K_M from well-known teams like bartowski or TheBloke - they have a reputation and feedback in the comments.

If you don’t want to tinker with dependencies, quanta and device_map right now, but you are already interested in trying open models, there is a workaround: on BotHub open models are available via chat and OpenAI-compatible API, without VPN and with payment by Russian card. Using the referral link they give 300,000 CAPS, so you can touch what was discussed in the article even before downloading the first gigabyte of scales.

Conclusion

HuggingFace is still similar to GitHub, but the AI field requires more complex functionality. The platform has grown to one and a half million Spaces and millions of checkpoints, and the documentation cannot keep up with this growth. But the route that eliminates blind wandering is actually short. Filter by task, check the card (license, size, format), choose between API and local launch. After this, Hub ceases to be a wholesale market from the nineties and becomes what it was intended to be - a working tool that repeats the pattern of using GitHub.