AI Kernels, Compute & HPC

SHIVASNOTES / EXPLORE

From equations to the machine: AI kernels, model execution, memory and CPU/GPU performance.

Browse the subject

52 articles. Search by title or topic, or open a tag for more notes.

Show entries
Article Topics
AI Kernel Engineer Beginner Guide: Math, Linear Algebra, C/Linux
Start & build
What Is the C Kernel Engine?
Start & build
How to Get Started With C-Kernel-Engine on Linux
Start & build
AI Kernels You Should Know To Learn Deep Neural Networks
Start & build
Templates Are Circuit Maps: How CKE Describes A Model Family
Start & build
CKE Kernel Registry: How Exact C Functions And Numerical Contracts Connect
Start & build
v8 IR Pipeline Codegen: How CKE Hardens Pure-C Inference
Start & build
Memory Planning in C-Kernel-Engine
Start & build
SIMD Deep Dive: How AI Kernels Use SSE, AVX, AVX-512, and VNNI
CPU & memory
ARM NEON in C-Kernel-Engine: Real Quantized Kernels on ARM
CPU & memory
CPU Performance Engineering for AI: Rooflines, Flamegraphs, VTune, and Perf Gates
CPU & memory
What Is A CPU PMU? How perf, VTune And Advisor Measure What A Processor Actually Did
CPU & memory
Linux System Programming For AI Kernels: Core Pinning, Huge Pages, TLBs, NUMA, and Memory Discipline
CPU & memory
Linux Memory Allocation: malloc, mmap, Pages, TLBs, and Huge Pages
CPU & memory
Thread Pools in C: How CPU Runtimes Dispatch Work Across Cores
CPU & memory
Threadpools And Memory Pools: Why CKE Needs Runtime Ownership For CPU AI Kernels
CPU & memory
Prefill vs Decode in CKE: Why One Model Needs GEMM, GEMV, and Two Execution Plans
CPU & memory
KV Cache Memory: The Hidden State That Makes LLM Decode Work
CPU & memory
Flash Attention on CPU: Online Softmax, Cache Discipline, and C-Kernel-Engine
CPU & memory
Amdahl's Law, Theory Of Constraints, And C-Kernel-Engine Optimization
CPU & memory
Distributed CPU AI: MPI, RDMA, NUMA, and C-Kernel-Engine
CPU & memory
Pipeline vs Tensor Parallelism: How CKE Splits AI Across CPU Nodes
CPU & memory
Four Bits, Three Contracts: An Interactive Guide to MXFP4, NVFP4 and Q4_K
Quantization
Why 4-Bit Quantization Is King: Understanding Q4_K, MXFP4, and NVFP4
Quantization
GGUF: The File Format That Made Local LLMs Practical
Quantization
K-Quants Deep Dive: Q4_K, Q5_K, Q6_K, Q8_K And Mixed Dot Products
Quantization
Quantization Deep Dive: How CPU Kernels Compress Weights and Preserve Accuracy
Quantization
What Numerical Parity Actually Requires: BF16, Quantization, ISA Drift And CKE X-Ray
Quantization
Training a Clef Decision Head in CKE
Models & training
TabPFN-3.5 and Clef: Two Ways to Make a Decision
Models & training
Backpropagation Through LoRA & QLoRA: Follow the Gradients
Models & training
LoRA & QLoRA: Inside the Update
Models & training
From LM Heads to Decision Heads: How Clef-Style Models Work and Train
Models & training
Training vs Inference in CKE: One Interface Discipline For Both Lanes
Models & training
Nemotron Kernels From Inference To Backpropagation
Models & training
Qwen3.5 Hybrid Recurrent Attention: How DeltaNet State And Full Attention Share One Decoder
Models & training
DeltaNet vs SSM: Two Fixed-Size Memory Systems Beyond Attention
Models & training
Gated DeltaNet: Recurrent Attention With Error-Driven Memory
Models & training
Attention: The Core Of The Transformer
Models & training
Training SVGs With C Kernel Engine: A Research Report
Models & training
From WordPiece to Ranked BPE: What a Tokenizer Really Does
Speech & vision
Qwen3-TTS and Kokoro: Two Routes from Text to Speech
Speech & vision
How Kokoro Uses Dilated Convolution
Speech & vision
Convolution Is Wx+b Moving Across a Signal
Speech & vision
ALBERT: How Kokoro's Phoneme Encoder Works, and Where CKE Has Reached It
Speech & vision
How Audio Becomes Words: Whisper's Kernels, Step By Step, On A CPU
Speech & vision
How Audio Transformers Work: The Encoder Path, Whisper, Timestamps, And Why Audio Is Not A VLM Patch
Speech & vision
Gemma4-VL In CKE: How Images Become Decoder Tokens
Speech & vision
How Qwen3-VL Vision Works: Header Body Footer
Speech & vision
A Green Checkmark Should Name Its Machine: How CKE's Nightly Report Became Evidence
Runtime & engineering
From Generated C to Useful Agents: CKE Serving Qwen Code and Gemma4
Runtime & engineering
What Two Requests Actually Mean for CKE Serving
Runtime & engineering
Showing 1 to 10 of 52 entries

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.

  • 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.