A lot of my LLM inference posts here were explaining how different parts of inference work. but i never really covered what implementing this stuff actually looks like in code. So I’m turning that into a repo. it’s for anyone who wants to learn inference hands-on from zero.
check it out: https://t.co/F6lsOSRjeG
UC Berkeley's "CS 162: Operating Systems and Systems Programming" by John Kubiatowicz
A legendary Berkeley systems course — build a working OS (Pintos) from scratch.
Course website: https://t.co/JVClAKtcKt
In fact, I do understand, it's just that I'm astounded by the sheer scope & quality that has been achieved.
GTA VI is the ultimate victoy of GPU-driven software rendering, relying on tons of mesh shaders & compute shaders.
At the cost of higher complexity, these pipelines make the GPU manage its own workload. It's the only way to cull millions of instances per frame & to stream virtualized geometry.
Otherwise, it's the CPU slowly dispatching draw calls, figuring out what to draw with bounding box culling. It's crude, slow, imprecise and doesn't scale.
We already saw the birth of GPU software rendering in the past thanks to compute shaders:
- Assassin's Creed Unity had GPU culling
- Demon's Souls remake showcased impressive software tesselation
- UE5's brought virtualized geometry with Nanite & Lumen
- Alan Wake 2 & Assassin's Creed Shadows went full GPU-driven rendering
https://t.co/GYNEnBMFgh
I lived in the USSR. It fell. Capitalism shapes the world, China included. But I’d still rather build the humane, abundant future of Soviet utopian sci-fi than live in the corporate dystopias of later Western cyberpunk.
Compiling to Assembly from Scratch by Vladimir Keleshev
https://t.co/iwazFamyEI
"This book will teach you enough compiler theory and assembly programming to get going. It uses a subset of TypeScript that reads like pseudocode and targets ARM 32-bit instruction set."
in case you wanna get into GPU kernel programming and Optimization.
you can't find a resource as goated as this on the known internet.
it's created by the actual GPU performance engineering team at @wafer_ai.
https://t.co/Fc0VijaOrg
In this (extremely long) video, I'll build a distributed training framework from first principles using PyTorch.
We'll derive everything from first principles, explaining the mathematics behind distributed training as well as every auxiliary component we build along the way, including Multi-head Latent Attention (MLA), Rotary Position Embeddings (RoPE) and YaRN.
I'll explain process groups, ranks, collective communication operations, distributed autograd, device meshes and distributed tensors, and then use these foundations to implement the major forms of parallelism used to train modern language models.
We'll derive and code pipeline parallelism, data parallelism, FSDP, HSDP, tensor parallelism and context parallelism, including pipeline schedules, block matrix multiplication, model sharding and ring attention. We'll then combine these techniques and examine how tensor layouts and gradients must be tracked as data moves between devices.
Most importantly, we won't study each parallelism technique in isolation. We'll combine pipeline, data, tensor, context and expert parallelism into a single working framework and follow the tensors, communication operations and gradients as they move across GPUs. By the end, you'll understand not only how these techniques work individually, but how modern distributed training systems compose them to train large dense and mixture-of-experts models.
We'll also build the important components of a modern transformer, including rotary embeddings, long-context extensions, multi-head latent attention and a mixture-of-experts architecture. This leads into expert parallelism, expert tensor parallelism, token dispatching, all-to-all communication and combining different parallel dimensions through dense and sparse device meshes.
We'll also build the supporting training infrastructure, including the training loop, optimizer, learning-rate schedule, checkpointing and metrics.
The goal is to give you the foundations required to understand how distributed training frameworks work internally and how to design and implement new parallelization strategies yourself. No prior knowledge of distributed training is required.
Link to the video: https://t.co/ioSYostMYS
@elliotarledge yep, here are the most helpful resources i’ve used so far
1. https://t.co/oadP1dwnJI (@Si_Boehm)
2. https://t.co/4xRVHBFjep (@abhiksark)
3. https://t.co/DV6wZ2ZGD4 (@robdobflob)
and PMPP v5
Stanford: CME 296 - Diffusion & Large Vision Models
https://t.co/m5ZeB8PY3m
"This course explores diffusion-based generative models for vision. You will study the foundations of diffusion, score matching and flow matching, modern architectures such as U-Nets and Diffusion Transformers, and methods for controllable image generation and evaluation. The course combines theory with practical insights into state-of-the-art generative models. Ideal for students with a background in linear algebra, probability, calculus and machine learning."