How hrithikvikas/trainium-agent-labs works
Hack the Chip is a hands-on Trainium workshop built around model–checker iteration. Participants start a model endpoint in their seat pod, then run either a heat-equation agent that proposes answers and receives diagnostic grades, or a kernel agent that iterates on NKI kernels against a simulator harness. The heat project separates problem generation, optional symbolic calculation, and grading; the kernel project centers on its agent and simulator. The README establishes the deployment and workflows; links between components are limited to those shown in excerpts or documented there.
Main entry points: 01-heat-rod-pde/agent.py Heat agent · 02-kernel-agent/agent.py Kernel agent · serve.sh Model launcher · kernelbench.py Kernel verifier
Components 13
Workshop runtime
- Seat pod
- Model launcher
serve.sh - Model endpoint
Heat PDE agent
- Heat agent
projects/01-heat-rod-pde/agent.py - Problem levels
projects/01-heat-rod-pde/level0_heatrod.py - Insulated problems
projects/01-heat-rod-pde/level1_heatrod.py - PDE checker
projects/01-heat-rod-pde/pdecheck.py - Symbolic calculator
projects/01-heat-rod-pde/tool_calc.py
Kernel agent
- Kernel agent
projects/02-kernel-agent/agent.py - Kernel simulator
projects/02-kernel-agent/nkibench.py - Kernel verifier
projects/02-kernel-agent/kernelbench.py - Reference kernels
projects/02-kernel-agent/reference_level1.py
Other components
- Participant
Connections 14
- Participant → Seat pod: enters
README.md - Participant → Model launcher: starts
README.md - Model launcher → Model endpoint: serves model
README.md - Participant → Heat agent: runs
README.md - Heat agent → Model endpoint: requests answers
projects/01-heat-rod-pde/agent.py - Heat agent → Problem levels: selects problems
projects/01-heat-rod-pde/agent.py - Heat agent → Insulated problems: selects problems
projects/01-heat-rod-pde/agent.py - Heat agent → PDE checker: grades answers
projects/01-heat-rod-pde/agent.py - Heat agent → Symbolic calculator: evaluates requests
projects/01-heat-rod-pde/agent.py - Participant → Kernel agent: runs
README.md - Kernel agent → Model endpoint: requests kernels
projects/02-kernel-agent/agent.py - Kernel agent → Kernel simulator: checks candidates
projects/02-kernel-agent/agent.py - Participant → Kernel verifier: inspects challenge
projects/02-kernel-agent/kernelbench.py - Kernel verifier → Reference kernels: loads reference