Tutorial to Lab Bridge Guide¶
Bridging the Gap Between Tutorials and Hands-on Labs
Overview¶
This guide helps you transition from tutorials (watching/reading) to labs (doing). We've identified gaps and created bridges to ensure smooth learning progression.
Learning Pathway¶
ENVIRONMENT SETUP
↓
TUTORIALS (Learn)
↓
BRIDGE (Connect)
↓
LABS (Practice)
↓
PROJECTS (Build)
Tutorial → Lab Mappings¶
Path 1: Local LLMs¶
TUTORIAL-001: Hello LLM (30 min) ↓ LAB-000: Environment Setup (1 hour) ↓ LAB-001: Docker & LLM (2 hours)
What You Learn:
- Tutorial: Basic Ollama usage
- LAB-000: Complete environment setup
- LAB-001: Containerized LLM deployment
Bridge Content:
# From Tutorial: ollama run mistral:7b "hello"
# To Lab: Docker container with Ollama
# Bridge: Understanding containers
docker run -d -p 11434:11434 ollama/ollama
Path 2: Docker Essentials¶
TUTORIAL-002: Docker Essentials (45 min) ↓ LAB-000: Environment Setup (1 hour) ↓ LAB-001: Docker & LLM (2 hours)
What You Learn:
- Tutorial: Docker commands and concepts
- LAB-000: Verify Docker installation
- LAB-001: Build and run LLM containers
Bridge Content:
# From Tutorial: Basic Dockerfile
# To Lab: Multi-stage build for LLM
# Bridge: Optimizing images
FROM python:3.13-slim AS builder
# vs
FROM python:3.13-alpine
Path 3: RAG Systems¶
TUTORIAL-003: RAG Basics (1 hour) ↓ LAB-002: RAG Implementation (4 hours) ↓ LAB-005: GraphRAG (5 hours)
What You Learn:
- Tutorial: RAG concepts and simple example
- LAB-002: Build RAG with Qdrant
- LAB-005: Add knowledge graphs
Bridge Content:
# From Tutorial: Simple RAG
def simple_rag(query):
docs = search(query)
return generate(query, docs)
# To Lab: Production RAG
class ProductionRAG:
def __init__(self):
self.vector_db = QdrantClient()
self.llm = Ollama()
self.embedder = SentenceTransformer()
def retrieve_and_generate(self, query):
# Hybrid search, re-ranking, etc.
Path 4: Fine-Tuning¶
TUTORIAL-007: LoRA Basics (1 hour) ↓ LAB-003: LoRA Fine-Tuning (4 hours) ↓ LAB-010: DPO Alignment (6 hours)
What You Learn:
- Tutorial: LoRA concepts
- LAB-003: Fine-tune with QLoRA
- LAB-010: Apply DPO alignment
Bridge Content:
# From Tutorial: LoRA concept
add_lora_layer(model, rank=8)
# To Lab: Full QLoRA pipeline
from peft import LoraConfig, get_peft_model
config = LoraConfig(
r=8,
lora_alpha=32,
target_modules=["q_proj", "v_proj"],
lora_dropout=0.05,
)
model = get_peft_model(base_model, config)
Common Gaps & Bridges¶
Gap 1: Environment Differences¶
Tutorial: Simple commands, clean environment
Lab: Real-world complexity, multiple tools
Bridge Strategy:
- LAB-000 ensures identical setup
- Troubleshooting guides for common issues
- Verification checklists
Gap 2: Code Complexity¶
Tutorial: Minimal working example
Lab: Production-ready implementation
Bridge Strategy:
- Show progression from simple → complex
- Explain each addition
- Comment why each line matters
Gap 3: Error Handling¶
Tutorial: Often omitted for clarity
Lab: Essential for real use
Bridge Strategy:
# Tutorial style (omitted)
result = api.call(data)
# Lab style (complete)
try:
result = api.call(data)
except APIError as e:
logger.error(f"API call failed: {e}")
raise
Pre-Lab Checklist¶
Before starting any lab, ensure:
Environment¶
- Completed LAB-000 (Environment Setup)
- All services running (Docker, Ollama, etc.)
- Can run basic commands without errors
Knowledge¶
- Read corresponding tutorial
- Understand key concepts
- Reviewed prerequisite documentation
Tools¶
- IDE/editor configured
- Terminal access working
- Git configured (if needed)
Lab Preparation Steps¶
Step 1: Review Tutorial (30 min)¶
- Watch/read tutorial completely
- Run tutorial examples yourself
- Note questions or unclear parts
Step 2: Check Prerequisites (15 min)¶
- Review lab prerequisites
- Verify environment setup
- Install missing dependencies
Step 3: Mental Preparation (5 min)¶
- Set realistic time expectations
- Prepare for challenges/errors
- Have reference material ready
Lab Success Tips¶
Start Simple¶
- Run the provided code first
- Verify it works
- Then modify and experiment
Debug Systematically¶
- Read error messages carefully
- Check common issues in troubleshooting guide
- Use logs and print statements
- Ask for help if stuck >30 min
Build Understanding¶
- Don't just copy code
- Explain each section to yourself
- Try variations and see what happens
- Connect back to tutorial concepts
Progression Difficulty¶
TUTORIAL Difficulty:
⭐ Beginner → ⭐⭐ Intermediate → ⭐⭐⭐ Advanced
LAB Difficulty:
⭐⭐ LAB-000 → ⭐⭐⭐ LAB-001 → ⭐⭐⭐⭐ LAB-002+
PROJECT Difficulty:
⭐⭐⭐ Beginner → ⭐⭐⭐⭐⭐ Advanced
Key Insight: Labs are harder than tutorials because they're hands-on. This is intentional and necessary for learning.
When to Ask for Help¶
Green Flags (Keep Going)¶
- Minor errors you understand
- Documentation is clear
- You're learning from mistakes
Yellow Flags (Slow Down)¶
- Repeated errors
- Unclear concepts
- Spending >30 min on one issue
Red Flags (Ask for Help)¶
- Completely stuck
- Error makes no sense
- Lab assumes knowledge you don't have
Where to get help:
- TROUBLESHOOTING-QUICKSTART.md
- Troubleshooting Guide
- Community forums
- Project issues
Post-Lab Reflection¶
After completing each lab, ask yourself:
- What did I learn? (Write 3 key points)
- What was challenging? (Note for review)
- What would I explain differently? (Teach someone)
- How can I apply this? (Think of projects)
Recommended Sequences¶
Beginner Track¶
QUICK-START → TUTORIAL-001 → LAB-000 → LAB-001
RAG Focus¶
TUTORIAL-003 → LAB-002 → LAB-005 → LAB-007 → PROJECT-006
Agent Focus¶
LAB-004 → LAB-008 → PROJECT-001 → PROJECT-007
Full Curriculum¶
Volume 1 → Volume 3 → Volume 5 → Volume 6 → Volume 7
Bridge Checkpoints¶
Use these checkpoints to verify readiness:
After TUTORIAL-001¶
- Can run Ollama CLI
- Understand basic chat
- Ready for LAB-000
After LAB-000¶
- Environment fully set up
- All services verified
- Ready for LAB-001
After LAB-001¶
- Docker basics understood
- Can containerize LLM
- Ready for LAB-002
Additional Resources¶
Learning Resources¶
Practice Resources¶
Support Resources¶
- Troubleshooting Guide
- Community forums
- Office hours (if available)
Celebrate Progress¶
Learning AI is challenging! Celebrate milestones:
- ✅ First lab completed
- ✅ First bug fixed independently
- ✅ First project finished
- ✅ Each volume completed
Remember: Progress, not perfection. Every mistake is learning.
Version: 1.0
Ready to start? Begin with QUICK-START.md