π Learn Large Language Model development through hands-on projects and real-world implementations
Python
90
1 commits
updated Nov 20, 2025
Learn Large Language Model development through hands-on projects and real-world implementations.
A practical workshop for building LLM applications from scratch. Learn by doing - each project guides you through essential concepts while building production-ready systems, from conversational AI to multimodal applications.
LLM-Workshop provides hands-on learning experiences through practical projects, featuring:
Core dialog systems and reasoning frameworks
π Paper Collection
Reasoning strategies and cognitive frameworks
π Paper Collection
Advanced RAG architectures and knowledge graphs
π Paper Collection
Advanced context management and optimization strategies
π Paper Collection
Advanced image and document processing
π Paper Collection
Advanced distributed AI coordination and collaboration patterns
π Paper Collection
Comprehensive data pipeline for instruction tuning and preference learning
π Paper Collection
Historical foundations and modern fine-tuning principles
π Paper Collection
git clone https://github.com/tylerelyt/LLM-Workshop.git
cd LLM-Workshop
# Each lesson has its own dependencies - install what you need:
# Chapter 1: Foundation
pip install -r chapter1/lesson1/requirements.txt # Agent Architectures
pip install -r chapter1/lesson2/requirements.txt # Mathematical Reasoning
pip install -r chapter1/lesson3/requirements.txt # Multi-modal Dialogs
# Chapter 2: Advanced Reasoning
pip install -r chapter2/lesson1/requirements.txt # Chain-of-Thought
pip install -r chapter2/lesson2/requirements.txt # Zero-shot Reasoning
pip install -r chapter2/lesson3/requirements.txt # Tree of Thoughts
# Chapter 3: Advanced Knowledge Engineering
pip install -r chapter3/lesson1/requirements.txt # RAG System
pip install -r chapter3/lesson2/requirements.txt # Knowledge Graph
pip install -r chapter3/lesson3/requirements.txt # NL2SQL
# Chapter 4: Context Engineering
pip install -r chapter4/lesson1/requirements.txt # KV-Cache Optimization
pip install -r chapter4/lesson2/requirements.txt # Tool Masking Strategy
pip install -r chapter4/lesson3/requirements.txt # Filesystem Memory
pip install -r chapter4/lesson4/requirements.txt # Attention Recitation
pip install -r chapter4/lesson5/requirements.txt # Error Preservation
# Chapter 5: Multimodal Models
pip install -r chapter5/lesson1/requirements.txt # Image Content Analysis
pip install -r chapter5/lesson2/requirements.txt # Document Processing
# Chapter 6: Expert Multi-Agent Orchestration
pip install -r chapter6/lesson1/requirements.txt # Manual Function Call with Self-Ask
pip install -r chapter6/lesson2/requirements.txt # AutoGen Function Call Demo
pip install -r chapter6/lesson3/requirements.txt # Code Interpreter Workshop
pip install -r chapter6/lesson4/requirements.txt # Reflection System Demo
# Chapter 7: Model Fine-Tuning Data Construction
pip install -r chapter7/lesson1/requirements.txt # Few-shot Data Construction
pip install -r chapter7/lesson2/requirements.txt # Self-Instruct Generation
pip install -r chapter7/lesson3/requirements.txt # Alpaca Data Processing
pip install -r chapter7/lesson4/requirements.txt # RLHF Preference Data
# Chapter 8: Fine-Tuning Fundamentals
pip install -r chapter8/lesson1/requirements.txt # GPT-1 Style Fine-tuning
# Required: Set your LLM API key (DashScope is default and recommended)
export DASHSCOPE_API_KEY="your-dashscope-key"
# Optional: OpenAI as backup (some exercises support both)
export OPENAI_API_KEY="your-openai-key"
# Recommended: Use virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Build an interactive knowledge graph from scratch
cd chapter3/lesson2
python knowledge_pipeline.py
# Create production-grade RAG systems
cd chapter3/lesson1
python rag_pipeline.py
# Develop enterprise NL2SQL systems
cd chapter3/lesson3
python nl2sql_engine.py
# Build context engineering systems
cd chapter4/lesson1
python example.py
# Build manual function call systems with Self-Ask pattern
cd chapter6/lesson1
python function_call_workshop.py
# Create AutoGen-based function call systems
cd chapter6/lesson2
python autogen_function_call_demo.py
# Develop code interpreter capabilities
cd chapter6/lesson3
python code_interpreter_workshop.py
# Build reflection systems with semantic memory
cd chapter6/lesson4
python reflection_system_demo.py
# Analyze images and documents
cd chapter5/lesson1
python image_analyzer.py
# Build Few-shot instruction data from structured datasets
cd chapter7/lesson1
python construct_fewshot.py --input-file data/sentiment_demo.json --task-type sentiment --output-path data/fewshot_sentiment.jsonl
# Generate Self-Instruct data expansion (single-file workshop)
cd chapter7/lesson2
python self_instruct_workshop.py
# Convert to Alpaca format for fine-tuning
cd chapter7/lesson3
python alpaca_constructor.py --input-file ../lesson1/data/fewshot_sentiment.jsonl --conversion-type fewshot_to_alpaca --output-path data/alpaca_data.jsonl
# Construct RLHF preference pairs
cd chapter7/lesson4
python rlhf_constructor.py --input-file ../lesson3/data/alpaca_data.jsonl --method model_comparison --high-model qwen-plus --low-model qwen-turbo --output-path data/rlhf_pairs.jsonl
# Learn GPT-1 fine-tuning principles with DashScope embeddings
cd chapter8/lesson1
python dashscope_lr_sentiment.py --input-file data/sentiment_demo.json --batch-size 5
Getting Updates
git pull origin main # Get latest code and resources
Common Issues
For persistent issues, check lesson-specific README files or open an issue.
We welcome contributions! Here's how to get started:
git checkout -b feature-amazing)git commit -m 'Add amazing feature')git push origin feature-amazing)This project is licensed under the MIT License - see the LICENSE file for details. You are free to use, modify, and distribute this code for any purpose, including commercial use.
LLM-Workshop is designed for developers who learn best by building real projects:
Learn by doing: Each module takes you from concept to working implementation, building real systems you can deploy and extend.
9 followers Β· starred Dec 2024
π Learn Large Language Model development through hands-on projects and real-world implementations
Python
90
1 commits
updated Nov 20, 2025
Learn Large Language Model development through hands-on projects and real-world implementations.
A practical workshop for building LLM applications from scratch. Learn by doing - each project guides you through essential concepts while building production-ready systems, from conversational AI to multimodal applications.
LLM-Workshop provides hands-on learning experiences through practical projects, featuring:
Core dialog systems and reasoning frameworks
π Paper Collection
Reasoning strategies and cognitive frameworks
π Paper Collection
Advanced RAG architectures and knowledge graphs
π Paper Collection
Advanced context management and optimization strategies
π Paper Collection
Advanced image and document processing
π Paper Collection
Advanced distributed AI coordination and collaboration patterns
π Paper Collection
Comprehensive data pipeline for instruction tuning and preference learning
π Paper Collection
Historical foundations and modern fine-tuning principles
π Paper Collection
git clone https://github.com/tylerelyt/LLM-Workshop.git
cd LLM-Workshop
# Each lesson has its own dependencies - install what you need:
# Chapter 1: Foundation
pip install -r chapter1/lesson1/requirements.txt # Agent Architectures
pip install -r chapter1/lesson2/requirements.txt # Mathematical Reasoning
pip install -r chapter1/lesson3/requirements.txt # Multi-modal Dialogs
# Chapter 2: Advanced Reasoning
pip install -r chapter2/lesson1/requirements.txt # Chain-of-Thought
pip install -r chapter2/lesson2/requirements.txt # Zero-shot Reasoning
pip install -r chapter2/lesson3/requirements.txt # Tree of Thoughts
# Chapter 3: Advanced Knowledge Engineering
pip install -r chapter3/lesson1/requirements.txt # RAG System
pip install -r chapter3/lesson2/requirements.txt # Knowledge Graph
pip install -r chapter3/lesson3/requirements.txt # NL2SQL
# Chapter 4: Context Engineering
pip install -r chapter4/lesson1/requirements.txt # KV-Cache Optimization
pip install -r chapter4/lesson2/requirements.txt # Tool Masking Strategy
pip install -r chapter4/lesson3/requirements.txt # Filesystem Memory
pip install -r chapter4/lesson4/requirements.txt # Attention Recitation
pip install -r chapter4/lesson5/requirements.txt # Error Preservation
# Chapter 5: Multimodal Models
pip install -r chapter5/lesson1/requirements.txt # Image Content Analysis
pip install -r chapter5/lesson2/requirements.txt # Document Processing
# Chapter 6: Expert Multi-Agent Orchestration
pip install -r chapter6/lesson1/requirements.txt # Manual Function Call with Self-Ask
pip install -r chapter6/lesson2/requirements.txt # AutoGen Function Call Demo
pip install -r chapter6/lesson3/requirements.txt # Code Interpreter Workshop
pip install -r chapter6/lesson4/requirements.txt # Reflection System Demo
# Chapter 7: Model Fine-Tuning Data Construction
pip install -r chapter7/lesson1/requirements.txt # Few-shot Data Construction
pip install -r chapter7/lesson2/requirements.txt # Self-Instruct Generation
pip install -r chapter7/lesson3/requirements.txt # Alpaca Data Processing
pip install -r chapter7/lesson4/requirements.txt # RLHF Preference Data
# Chapter 8: Fine-Tuning Fundamentals
pip install -r chapter8/lesson1/requirements.txt # GPT-1 Style Fine-tuning
# Required: Set your LLM API key (DashScope is default and recommended)
export DASHSCOPE_API_KEY="your-dashscope-key"
# Optional: OpenAI as backup (some exercises support both)
export OPENAI_API_KEY="your-openai-key"
# Recommended: Use virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Build an interactive knowledge graph from scratch
cd chapter3/lesson2
python knowledge_pipeline.py
# Create production-grade RAG systems
cd chapter3/lesson1
python rag_pipeline.py
# Develop enterprise NL2SQL systems
cd chapter3/lesson3
python nl2sql_engine.py
# Build context engineering systems
cd chapter4/lesson1
python example.py
# Build manual function call systems with Self-Ask pattern
cd chapter6/lesson1
python function_call_workshop.py
# Create AutoGen-based function call systems
cd chapter6/lesson2
python autogen_function_call_demo.py
# Develop code interpreter capabilities
cd chapter6/lesson3
python code_interpreter_workshop.py
# Build reflection systems with semantic memory
cd chapter6/lesson4
python reflection_system_demo.py
# Analyze images and documents
cd chapter5/lesson1
python image_analyzer.py
# Build Few-shot instruction data from structured datasets
cd chapter7/lesson1
python construct_fewshot.py --input-file data/sentiment_demo.json --task-type sentiment --output-path data/fewshot_sentiment.jsonl
# Generate Self-Instruct data expansion (single-file workshop)
cd chapter7/lesson2
python self_instruct_workshop.py
# Convert to Alpaca format for fine-tuning
cd chapter7/lesson3
python alpaca_constructor.py --input-file ../lesson1/data/fewshot_sentiment.jsonl --conversion-type fewshot_to_alpaca --output-path data/alpaca_data.jsonl
# Construct RLHF preference pairs
cd chapter7/lesson4
python rlhf_constructor.py --input-file ../lesson3/data/alpaca_data.jsonl --method model_comparison --high-model qwen-plus --low-model qwen-turbo --output-path data/rlhf_pairs.jsonl
# Learn GPT-1 fine-tuning principles with DashScope embeddings
cd chapter8/lesson1
python dashscope_lr_sentiment.py --input-file data/sentiment_demo.json --batch-size 5
Getting Updates
git pull origin main # Get latest code and resources
Common Issues
For persistent issues, check lesson-specific README files or open an issue.
We welcome contributions! Here's how to get started:
git checkout -b feature-amazing)git commit -m 'Add amazing feature')git push origin feature-amazing)This project is licensed under the MIT License - see the LICENSE file for details. You are free to use, modify, and distribute this code for any purpose, including commercial use.
LLM-Workshop is designed for developers who learn best by building real projects:
Learn by doing: Each module takes you from concept to working implementation, building real systems you can deploy and extend.
9 followers Β· starred Dec 2024