Jing (Magic) Mai
Articles
Estimating GPU Kernel and Communication Runtime at a Glance
A practical Roofline guide to compute, memory, and NVLink/RDMA communication bottlenecks
Deep Dive into Full CUDA Graph in Megatron-LM: Accelerating MoE Model Training
Eliminating CPU-GPU sync and dynamic MoE routing bottlenecks for full-iteration capture
Deep Dive into Partial CUDA Graph in Megatron-LM: Accelerating MoE Model Training
Graph capture fundamentals, static memory pools, and 1F1B pipeline replay in Megatron-LM
Key Techniques in LLM Inference: Notes from nano-vllm
Dissecting RoPE, PagedAttention, prefix caching, tensor parallelism, and CUDA Graph
Ranger: A Smart Guide to the Terminal File Manager
Vim-inspired filesystem navigation, previews, bulk operations, and customization
Implementing a Quantized Matrix Multiplication Extension in MLX from Scratch
Group quantization, nanobind C++ bindings, and custom Metal GPU kernels on Apple Silicon
Forward-Mode and Reverse-Mode Autodiff via JVP and VJP
Understanding Jacobian-vector and vector-Jacobian products in PyTorch, JAX, and MLX
Solutions to Tensor Puzzlers: A Deep Dive into Tensor Operations
Vectorized solutions and broadcasting patterns for Sasha Rush's Tensor Puzzles