Skip to content

Educators Kit

A progressive curriculum for teaching AI/ML with local models.

9 modules. From "What is a token?" to "I contributed to real AI research." Free. Local. Visual. No cloud costs. No student API keys.

Why LLMxRay for Teaching?

AdvantageDetails
FreeNo API keys, no cloud costs, no student subscriptions. Zero budget required.
LocalAll data stays on the student's machine. No privacy concerns, no institutional data policies.
VisualStudents see tokens stream in real time, watch confidence coloring, explore reasoning chains. Abstract concepts become tangible.
SafeNo risk of students accidentally running up cloud bills or exposing sensitive data.
Cross-platformRuns on Windows, macOS, and Linux. Deploy via npx llmxray, Docker, or git clone.
Research-readyEvery experiment is reproducible. Students contribute real findings to the open-source community.

Course Integration

LLMxRay fits naturally into:

  • Introduction to AI/ML — Understanding how language models generate text
  • Natural Language Processing — Token analysis, embeddings, semantic similarity
  • Software Engineering — API integration, tool calling, prompt engineering
  • Data Science — Benchmarking methodology, statistical analysis of model outputs
  • AI Ethics — Exploring model biases, hallucination detection, language fairness

The Curriculum

The Journey: See → Measure → Question → Discover → Build → Contribute

Each module builds on the previous one. Students progress from observation to experimentation to original research.

ModuleTitleDurationDifficultyThe Aha Moment
1What Is a Token?45 minBeginnerAI doesn't think in words — it thinks in tokens
2How Does Temperature Work?60 minBeginnerTemperature isn't a linear dial — it's a phase transition
3Can AI Lie?90 minIntermediateHigh confidence does not mean truth
4What Does the Model See?45 minIntermediateEmbeddings capture topic, not sentiment
5When Does the Model Forget?60 minIntermediateContext isn't memory — it's a sliding window
6Can AI Use Tools?60 minIntermediateTool calling is pattern matching, not understanding
7How Do Models Compare?90 minAdvancedNo model is universally best
8The Full Picture120 minAdvancedYou can contribute to real AI research
9What Words Cost60 minIntermediateTokenizers have a language bias — same meaning, different cost

Available Modules

All 9 modules are available now. Each module contains hands-on exercises with LLMxRay, conceptual background grounded in published research, and assessment options.


Quick "Aha Moment" Labs

Standalone 15-minute exercises for any lecture — no curriculum commitment needed:

LabThe SurpriseTime
The Hallucination LabModels confidently fabricate history15 min
The Tokenizer BiasSame sentence, 5x more tokens in some languages (Module 9 covers this in depth)15 min
The Parrot TestModels can't repeat text verbatim — they generate, not recall15 min
The System Prompt LeakStudents extract a "secret" system prompt15 min
The Temperature Art GallerySame prompt at 8 temperatures displayed as a gallery15 min
The Reasoning RevealWatch DeepSeek-R1 think step by step on a math problem15 min

Detailed guides for these labs are coming soon.


Hardware Requirements

Minimum (small models only)

  • RAM: 8 GB
  • Storage: 10 GB free
  • GPU: Not required (CPU inference works)
  • Models: 1B-3B parameter models (e.g., llama3.2:1b)
  • RAM: 16 GB
  • Storage: 20 GB free
  • GPU: 6+ GB VRAM (significantly faster inference)
  • Models: Up to 7B-8B parameter models

Computer Lab Setup

Option A — Per-student install: Each machine runs Ollama + LLMxRay independently.

bash
# On each machine:
ollama pull llama3.2
npx llmxray

Option B — Shared Ollama server: One powerful machine runs Ollama, students connect via LLMxRay Settings.

bash
# On the GPU server:
OLLAMA_HOST=0.0.0.0 ollama serve

# On each student machine:
npx llmxray --ollama-url http://gpu-server:11434

Option C — Docker deployment:

bash
docker compose -f docker-compose.example.yml up

Assessment Options

Each module includes multiple assessment formats. Choose based on your course:

FormatBest forTypical module
Written reflection (300 words)Individual, any course levelModules 1, 4, 5
Data analysis table + reportData science, NLP coursesModules 2, 3, 7
Slide deck / presentationGroup work, seminarsModules 3, 7
Live demo + code reviewSoftware engineeringModule 6
Full research reportAdvanced / capstoneModule 8

Getting Help


Using LLMxRay in your course? We'd love to hear about it. Share your experience in GitHub Discussions.

Released under the Apache 2.0 License.