HuggingFace Cheatsheet

A curated 5-page cheatsheet covering the core Hugging Face ecosystem, including the Hub, Transformers, Datasets, training, fine-tuning, inference, deployment, generative models, multimodal architectures, agents, and Hub tooling.
Reading_time: 5 min
Tags: [Hugging Face, Transformers, Machine Learning, Deep Learning, LLM, NLP, Model Training, Fine-Tuning, Inference, Model Deployment, Generative AI, Multimodal AI, AI Agents, MLOps, Open Source]
- π€ A 5-Page HuggingFace Cheatsheet
π€ A 5-Page HuggingFace Cheatsheet
Iβm happy to finally share this curated 5-page Hugging Face Ecosystem Cheatsheet π€
π₯ Download the cheatsheet: GitHub-Repository
Why I Created This Cheatsheet
While working with pretrained models, datasets, fine-tuning workflows, inference systems, and deployment tools, I found that the Hugging Face ecosystem covers many different parts of the machine learning lifecycle.
There are libraries for specific tasks, platforms for sharing and versioning models and datasets, tools for training and fine-tuning, inference runtimes, deployment options, and frameworks for generative models and agents.
For someone learning the ecosystem, it can be useful to first have a high-level map of how these components relate to each other.
This is the reason I created this cheatsheet.
It is not intended to replace the official documentation or provide a complete reference to every library and API.
Instead, I tried to curate the core concepts into five pages that can be used as a visual reference.
π What the Cheatsheet Covers
1οΈβ£ Hugging Face Ecosystem & Hub Architecture
The first page introduces the main components of the Hugging Face ecosystem:
Hub β Models β Datasets β Spaces β Organizations β Collections β Papers β Inference β Leaderboards
It also covers model repository anatomy, common model artifacts, revisions, Dataset Cards, model discovery, filtering, licensing, hardware compatibility, and authentication.
2οΈβ£ Transformers & Model Execution
The second page focuses on the execution path of pretrained transformer architectures.
The basic flow is:
Input β Tokenizer / Processor β Model β Output
It covers Auto Classes, task-specific model heads, tokenization, padding, truncation, sequence-length constraints, multimodal processors, Pipelines, direct model APIs, generation configuration, and chat templates.
3οΈβ£ Datasets & Training Stack
The third page focuses on the data and training workflow.
It covers dataset loading, dataset splits, filtering, mapping, preprocessing, streaming, tokenization, batching, Data Collators, Trainer, TrainingArguments, Accelerate, PEFT, LoRA, QLoRA, evaluation, and Hub integration.
4οΈβ£ Inference Stack & Deployment
The fourth page focuses on how model artifacts can be executed and served.
It covers local inference, InferenceClient, Text Generation Inference, continuous batching, streaming, tensor parallelism, Dedicated Endpoints, quantization, BitsAndBytes, AWQ, GPTQ, Optimum, hardware optimization, vLLM, llama.cpp, and Spaces.
5οΈβ£ Agents, Generative Models & Hub Tooling
The final page covers several higher-level components of the ecosystem.
It includes smolagents, Diffusers, TRL, post-training and alignment methods, multimodal architectures, Hub CLI workflows, and Python utilities such as hf_hub_download and snapshot_download.
π§ The Structure
The five pages are organized around a simplified development lifecycle:
Discover
β
Load
β
Prepare
β
Train
β
Fine-Tune
β
Evaluate
β
Optimize
β
Serve
β
Build
The purpose of this structure is to provide a starting point for understanding where different Hugging Face tools and services fit within a broader workflow.
π― Who Might Find It Useful?
I hope this cheatsheet can be useful for:
- Machine Learning Engineers.
- AI Engineers.
- LLM Engineers.
- Research Engineers.
- Applied Scientists.
- Data Scientists working with pretrained models.
- Students and practitioners learning the Hugging Face ecosystem.
It can be used as:
- A quick reference while working with Hugging Face tools.
- A learning aid for understanding the ecosystem.
- A teaching resource.
- A starting point for exploring the official documentation in more depth.
π₯ Access the Cheatsheet
The complete cheatsheet is available here:
π Download: HD-Version
I hope this curated reference helps make the Hugging Face ecosystem a little easier to navigate and provides a useful starting point for further learning.
π€
Happy learning! πβ¨
Thanks for Reading!
Website/Newletter AIMagazine Substack
Connect with me on Linkedin
Find me on Github
Visit my technical channel on Youtube
Support: Buy me a Cofee/Chai