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!
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.
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.
Every data type follows the same pattern: Feature Discovery & Classical ML first, then Deep Learning (vktorch) on the exact same split.
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.
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.
Visualize GPU “Average Clothing” prototypes, discover Eigen-Clothes with PCA, hand-craft Sobel/HOG edge features, and analyze the 10×10 confusion matrix.
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.
vkvec GPU Search & Classical NLPLearn 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.
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.
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!