# What are the best tutorials to learn Transformers step by step?

**URL:** <https://discuss.huggingface.co/t/what-are-the-best-tutorials-to-learn-transformers-step-by-step/175224>\
**Category:** 🤗Transformers\
**Created:** [April 13, 2026, 12:19pm UTC](https://discuss.huggingface.co/t/what-are-the-best-tutorials-to-learn-transformers-step-by-step/175224 "2026-04-13T12:19:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suhebmultani](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/suhebmultani/32/49771_2.png) [@Suhebmultani](https://discuss.huggingface.co/u/Suhebmultani)\
**Post date:** [April 13, 2026, 12:19pm UTC](https://discuss.huggingface.co/t/what-are-the-best-tutorials-to-learn-transformers-step-by-step/175224/1 "2026-04-13T12:19:40Z")

</div>

Which tutorials can help me learn Transformers (AI models) step by step from beginner to advanced?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 13, 2026, 1:07pm UTC](https://discuss.huggingface.co/t/what-are-the-best-tutorials-to-learn-transformers-step-by-step/175224/2 "2026-04-13T13:07:19Z")

</div>

If it’s just a few, I’d recommend these.

### Basic

- [Introduction · Hugging Face](https://huggingface.co/learn/llm-course/chapter1/1)
- [Welcome to the 🤗 smol-course · Hugging Face](https://huggingface.co/learn/smol-course/unit0/1)

### Advanced

- [GitHub - NielsRogge/Transformers-Tutorials: This repository contains demos I made with the Transformers library by HuggingFace. · GitHub](https://github.com/NielsRogge/Transformers-Tutorials)

---

<div class="post-metadata">

**Author:** ![frankvr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/frankvr/32/58265_2.png) [@frankvr](https://discuss.huggingface.co/u/frankvr)\
**Post date:** [April 20, 2026, 12:44pm UTC](https://discuss.huggingface.co/t/what-are-the-best-tutorials-to-learn-transformers-step-by-step/175224/3 "2026-04-20T12:44:17Z")

</div>

I would recommend to read: [Hands-on Large Language Models](https://www.amazon.com/Hands-Large-Language-Models-Understanding/dp/1098150961) from Jay Alammar & Maarten Grootendorst.  
Most of the book handles transformers, and relates it with other ways to create foundation models.  
The explanatory graphs set it definitely apart from other books, tutorials,.. and make the subject easier to grasp.

This reference link comes from the book:

> **[GitHub - HandsOnLLM/Hands-On-Large-Language-Models: Official code repo for the O'Reilly Book -...](https://github.com/HandsOnLLM/Hands-On-Large-Language-Models)**
>
> Official code repo for the O'Reilly Book - "Hands-On Large Language Models"
