Hands-On-Large-Language-Models

Official code repo for the O'Reilly Book - "Hands-On Large Language Models"

What is Hands-On-Large-Language-Models?

Official code repo for the O'Reilly Book - "Hands-On Large Language Models"

Overview of Hands-On-Large-Language-Models

What it is

This repository is the official code repository for the O'Reilly book 'Hands-On Large Language Models' written by Jay Alammar and Maarten Grootendorst. It contains code for all examples throughout the book, which is also referred to as 'The Illustrated LLM Book' and features almost 300 custom-made figures.

Key features

  • Contains code for all examples in the book 'Hands-On Large Language Models' - Covers chapters on topics including tokens and embeddings, transformer LLMs, text classification, clustering, prompt engineering, semantic search, RAG, multimodal LLMs, and fine-tuning - Provides a setup folder for local package installation and a conda folder for environment setup with conda and PyTorch - Advises running examples through Google Colab for easiest setup, using a free T4 GPU with 16GB VRAM - Includes bonus content such as visual guides to Mamba, Quantization, Stable Diffusion, Mixture of Experts, Reasoning LLMs, and DeepSeek-R1

Use cases

  • Learning practical tools and concepts for using large language models through hands-on code examples - Following along with the book's chapters to implement and experiment with LLM techniques - Referencing code for tasks such as text classification, clustering, prompt engineering, semantic search, and fine-tuning

Getting started

See the repository README for setup instructions. The README advises running examples through Google Colab and provides a setup folder for local installation and a conda folder for environment setup.

License and pricing

The repository is licensed under Apache-2.0 and is open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/handsonllmhands-on-large-language-models.svg)](https://yunodb.com/tools/handsonllmhands-on-large-language-models?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/handsonllmhands-on-large-language-models?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/handsonllmhands-on-large-language-models.svg" alt="Featured on YunoDB" height="20"></a>