Hugging Face, End to EndLesson 5 of 75

Module 1 · The Hub, read properly

What the files in a model repository are for

In this lesson

  • 10 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 5 of 9 in this chapter

This chapter’s goalFind a model using filters or the Python API, inspect the files at a known revision, identify the architecture, weights and any custom loading code, and explain what the download counter can and cannot tell you.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableWatch3:05
Full audiobookNot availableNot available
Five files, and the question each one answersconfig.jsonArchitecture, positional setting, dtype hint andvocabulary sizetokenizer_config.jsonThe chat template, the padding side, the specialtokensmodel.safetensors.index.jsonSize estimate for the indexed tensor data; checkother files separatelygeneration_config.jsonThe temperature and do_sample you did not chooseadapter_config.jsonAdapter settings and the required base modelBrowse these metadata files when present. They give clues to the architecture, tokenizer, weights,defaults and whether the repository holds an adapter. No weight download is needed for thisinspection.
Browse these metadata files when present. They give clues to the architecture, tokenizer, weights, defaults and whether the repository holds an adapter. No weight download is needed for this inspection.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Open Files and versions before you open anything else

Open the file listing and look for the model configuration, tokenizer files, weights and generation settings. Some repositories omit or combine them. Reading these files in a browser can tell you what to check before installing software or downloading weights.

Here is what you are looking at.

config.json: the model’s shape

This is the architecture, in JSON. A trimmed example:

JSON
{
  "architectures": ["LlamaForCausalLM"],
  "hidden_size": 4096,
  "num_hidden_layers": 32,
  "num_attention_heads": 32,
  "max_position_embeddings": 131072,
  "vocab_size": 128256,
  "torch_dtype": "bfloat16",
  "rope_theta": 500000.0
}

Four fields earn your attention:

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Image Generation, in Practice exam.

Stuck on something?Ask Arjun, your AI tutor

How to cite: Addaly (2026) ‘What the files in a model repository are for’, in Hugging Face, End to End. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/hugging-face/inside-a-repository (Accessed: 29 November 2026).