Interactive Follow-Along Book · Pure Vulkan GPU 📖 Plain-English Acronym Glossary (63 Terms)

Hands-On AI, Machine Learning & GPU Computing — Without CUDA or ROCm

Learn how AI actually works on the Vulkan GPU you already own (Steam Deck, AMD APU, Intel iGPU/Arc, older Radeon/NVIDIA, or Apple MoltenVK) — powered by the bundled vkdata toolkit. Tip: Tap or hover any dotted acronym in a chapter to jump straight to its plain-English definition!

Part 0 · AI Foundations: Building Blocks of Neural Networks

Foundations 1 · 1 Artificial Neuron 5 Gates → GPU Neuron → XOR Wall

The Perceptron: How a Single Artificial Neuron Works

Start from zero: weighted votes (AND, OR, NOT, NAND, NOR), watching a single straight line learn with vklearn.Perceptron, running the same neuron on your Vulkan GPU with vktorch, and hitting the famous XOR limit.

Foundations 2 · Hidden Layers & LLMs XOR 100% · 3 Params → 8B Llama

Multi-Layer Perceptrons (MLPs): Bending Space, Solving XOR & LLM Parameters

Wire 3 perceptrons together to solve XOR by hand, see why GELU/ReLU activations are mandatory, watch 4 neurons draw a diamond while 32×32 sculpts a smooth circle, and trace the parameter ladder up to 8B LLMs.

Part I · End-to-End Projects: Tabular, Image & Vector Data

Every data type follows the same pattern: Feature Discovery & Classical ML first, then Deep Learning (vktorch) on the exact same split.

Chapter 1 · Tabular Data · Regression $69.6k → $52.7k RMSE

California Housing: Feature Discovery & Classical ML

Load 20,640 Census districts, spot the $500k cap on a GPU map, engineer 36 domain + Haversine + KMeans-RBF features, and race LinearRegression, Ridge, and GPU KNN.

Chapter 2 · Tabular Data · Deep Learning $48.2k RMSE · R² 0.828

California Housing: Beating Classical ML with a Deep Neural Network

Train a vktorch Pre-Norm Residual MLP (fused SPIR-V LayerNorm, GELU, AdamW) on the exact same split — beating GPU KNN by -$4,510 RMSE with .npz checkpointing.

Chapter 3 · Image Data · Classical CV 81.5% → 86.45% Acc

Fashion-MNIST: Image Feature Discovery & Classical Computer Vision

Visualize GPU “Average Clothing” prototypes, discover Eigen-Clothes with PCA, hand-craft Sobel/HOG edge features, and analyze the 10×10 confusion matrix.

Chapter 4 · Image Data · 2D CNN 87.70% Acc · 24.5s VRAM SPIR-V

Fashion-MNIST: Beating Classical CV with a 2D CNN (vktorch)

Train a strided Conv2d CNN directly on raw 28×28 pixels in 24.5s on Steam Deck GPU (12.8× faster SPIR-V im2col), inspect 16 learned 3×3 filters, and beat every Classical CV model.

Chapter 5 · Vector / Text Data · Classical NLP vkvec GPU Vector DB · 86.44% Acc

AG News: TF-IDF Vectors, vkvec GPU Search & Classical NLP

Learn the 3-step NLP pipeline, vectorize 7,600 real news articles with vkvec.TfidfVectorizer, run filtered GPU Cosine Search with vkvec.VectorIndex, visualize topics with vkvis.UMAP, and hit the classic Synonym Wall.

Chapter 6 · Vector / Text Data · Deep NLP 87.12% Acc · 64-D Neural Embeddings

AG News: Learned Neural Embeddings & Breaking the Synonym Wall

Train a vktorch Neural Text Encoder in 13.8s on Steam Deck GPU to compress text into 64-D dense meaning vectors (31× smaller), index them in vkvec.VectorIndex, shatter the Synonym Wall (0.000 → +0.985), and beat Classical NLP.

Want to run the notebooks interactively on your own GPU?
Clone github.com/billyblackburn/vkdata and run pixi run setup && pixi run build && pixi run lab. Parts II–VI (Vulkan GPU Puzzles, GPU DataFrames, UMAP/Manifold Learning, Classical ML at scale, and Mini-Llama) are all included in the repo!