Your model runs. What is the machine actually doing?

Follow it from model weights to kernels, memory and serving, with lessons from building C-Kernel-Engine.

A FREE ILLUSTRATED FIELD GUIDE
Cover of How to think like an AI kernel and HPC engineer, showing model, kernel, memory and evidence stages.
FROM ANTHONY SHIVAKUMAR

I made this for readers who want to look underneath the model interface. Start with a recording that exposed a compiler bug, then follow the questions I use to investigate correctness and speed.

10 illustrated pages Real CKE investigations Printable worksheet

See the system. Follow a failure. Try it yourself.

Three pages from the guide. Open a preview for a closer look.

INSIDE THE GUIDE
Guide page mapping the build toolchain, runtime, server, agent harness and hardware.
01 / MAP

See the whole path

Put weights, generated calls, kernels, the server and agent harness on one page so you know which layer you are testing.

Guide page explaining a Whisper compiler debugging investigation.
02 / DEBUG

Find the first wrong value

Follow the Whisper recording that returned almost one word, from its symptom to a wrong buffer connection and a measured fix.

Printable worksheet for recording model inputs, correctness checks, timings and next steps.
03 / TRY

Run your own investigation

Use the printable worksheet to record inputs, a correctness check, timing, and the next experiment rather than guessing at performance.

A useful question beats a perfect demo.

WHY I WROTE IT
THE INVESTIGATION

I wanted a transcript. I got “The.”

That run led us to a wrong buffer connection in the generated Whisper encoder. Finding the first bad value was a better lesson than simply saying the model worked.

WHO THIS IS FOR

For builders who like to open things up

If you can run a model and are curious about the code underneath, this is a place to begin. Each page points to deeper reading when you want to keep going. The examples come from CPU work in CKE, while also showing where GPU execution and shared infrastructure fit.

Keep one question beside your terminal.

What am I running? Which values are wrong? Where does the time go? The printable worksheet gives you room to record what you find.

YOUR NEXT EXPERIMENT

Follow the work. Understand the machine.

I write about the maths, the kernels, and what happens when I try to make them work. Join me for the investigations, including the bits that go wrong.

ENGINEERING NOTES FROM ANTHONY SHIVAKUMAR
How to think like an AI kernel and HPC engineer — ShivasNotes field guide cover
THE ILLUSTRATED FIELD GUIDE

How to think like an AI kernel & HPC engineer

  • 10 pages to connect the pieces
  • A real Whisper investigation
  • A worksheet for your next experiment
KEEP IN TOUCH

A note when there’s something to share.

Get the illustrated field guide by email, followed by engineering notes as I write them.

Subscribe to emails from Anthony

First Name
Last Name
Email
Submit
  • You’re joining the ShivasNotes email list. No fixed cadence.
  • Your welcome email includes the PDF. Allow a few minutes, and check spam if it hasn’t arrived.