Hands-On-Large-Language-Models
View on GitHubOfficial code repo for the O'Reilly Book - "Hands-On Large Language Models"
Official code repo for the O'Reilly book Hands-On Large Language Models: 12 Colab-ready notebooks plus bonus guides covering tokenization, embeddings, semantic search and RAG, prompt engineering, classification, fine-tuning, quantization, MoE, reasoning LLMs, and agents.
Use Cases
Learning LLM internals and tokenizationBuilding text embeddings and semantic searchImplementing RAG pipelinesText classification with LLMsTopic modeling and clusteringPrompt engineering practiceFine-tuning BERT for classificationFine-tuning generative LLMsMultimodal (vision-language) tasksModel quantizationReasoning LLM studyBuilding a simple LLM agent
Built With
- Language
- Jupyter Notebook
- Frameworks
- PyTorch · Hugging Face Transformers · sentence-transformers · LangChain · BERTopic · FAISS · llama.cpp · PEFT · TRL · bitsandbytes · SetFit · gensim · Annoy · MTEB · OpenAI API (SDK) · Cohere API (SDK)
Tags
llm · education · tutorial · notebooks · book · embeddings · semantic-search · rag · prompt-engineering · fine-tuning · text-classification · topic-modeling · quantization · multimodal · tokenization · transformers