#103103rd of 171 in Learning and cookbooks

hands-on-large-language-models

Companion notebooks for the O'Reilly book Hands-On Large Language Models

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
30.5k
License
Apache-2.0
Last commit
Apr 2026
Language
Jupyter Notebook
Stars, last 35 weeks+6,370
24 Mar 2026: 24,095 stars31 Mar 2026: 24,370 stars7 Apr 2026: 24,614 stars14 Apr 2026: 24,812 stars21 Apr 2026: 25,066 stars28 Apr 2026: 25,227 stars5 May 2026: 25,706 stars12 May 2026: 26,013 stars19 May 2026: 26,190 stars26 May 2026: 26,325 stars2 Jun 2026: 26,558 stars9 Jun 2026: 26,707 stars16 Jun 2026: 26,906 stars23 Jun 2026: 27,050 stars30 Jun 2026: 27,151 stars7 Jul 2026: 27,282 stars14 Jul 2026: 27,445 stars21 Jul 2026: 27,607 stars28 Jul 2026: 27,752 stars4 Aug 2026: 27,877 stars11 Aug 2026: 28,093 stars18 Aug 2026: 28,200 stars25 Aug 2026: 28,532 stars1 Sept 2026: 28,763 stars8 Sept 2026: 28,925 stars15 Sept 2026: 29,081 stars22 Sept 2026: 29,214 stars29 Sept 2026: 29,383 stars6 Oct 2026: 29,506 stars13 Oct 2026: 29,587 stars20 Oct 2026: 29,814 stars27 Oct 2026: 29,958 stars3 Nov 2026: 30,087 stars10 Nov 2026: 30,160 stars17 Nov 2026: 30,256 stars24 Nov 2026: 30,465 stars

24,095 on 24 Mar 202630,465 on 24 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Code for every example in the book by Jay Alammar and Maarten Grootendorst, as one Jupyter notebook per chapter. Chapters cover tokens and embeddings, transformer internals, classification, clustering, prompt engineering, semantic search and RAG, multimodal models, and fine-tuning. Notebooks were built and tested on Google Colab with a free 16GB T4 GPU.

Who it is for: Developers learning how LLMs work who want runnable chapter code

Strengths

  • One notebook per chapter (12), each with an Open in Colab link
  • Covers embeddings, RAG, multimodal models and fine-tuning of BERT and generation models
  • Tested mainly on free Colab T4 16GB, so no local GPU is required
  • Bonus folder links to visual guides on Mamba, quantization and mixture of experts

Weaknesses

  • Explanatory text and figures are in the paid book, not in the repo
  • Local setup is only a quick-start guide; results may differ by OS and versions
  • No tagged releases; README states no pinned package versions
  • Not a library or tool, only teaching code

What it needs

  • GPU optional
  • Needs Google Colab, Jupyter, PyTorch

Also in Learning and cookbooks

See all 171
Also in Learning and cookbooks
RankProjectScore
#101machine_learning_examplesPython code for Lazy Programmer's online machine learning courses9k starsno license45 out of 100
#102agent_memory_techniques30 Jupyter notebooks teaching agent memory patterns, from buffers to graphs1.2k starsApache-2.044 out of 100
#104llm-engineers-handbookCompanion code for a book on building an end-to-end LLM Twin system5.5k starsMIT43 out of 100
#105ai-engineer-headquartersSelf-paced AI engineering curriculum from ML basics to RAG, fine-tuning and agents3.8k starsno license43 out of 100
#106ai-agents-projects-tutorialsJupyter notebooks and scripts for building agents, memory, and agent tooling3k starsno license43 out of 100