Fudan University · M.Eng.
Building low-level GPU kernels, deep-learning compiler passes (TorchInductor / Core ATen IR), high-throughput LLM inference engines, and memory-efficient long-context training systems from scratch.
M.Eng. Candidate @ Fudan University · Building low-level GPU kernels, compiler passes, and memory-optimal LLM systems from scratch.
Every ceiling and operating point below was measured on a single RTX 5060 Laptop GPU (8GB GDDR7, sm_120, 26 SMs) using 5-run ABA interleaved medians. Click or hover any kernel node to inspect its hardware bottleneck.
Toggle Optimized vs Baseline profiles across all three systems and click any kernel or DMA block to inspect its CUDA stream, launch compaction, and overlap telemetry.
Switch between the three pinned repositories below to interact with verified kernel benchmarks, serving tail-latency ablations, and 32K long-context memory & Ring Attention simulators.
Two-stage Core ATen post_grad graph rewrite (multi-dialect RMSNorm + dynamic transitive-closure anti-cycle Q+K GQA RoPE merge) with CustomGraphPass cache isolation and zero-Python-tax TORCH_LIBRARY_IMPL C++ dispatch.
Zero-.flatten() ragged execution with 7:1 GQA Tensor Core Triton PagedAttention, heapq tail-splitting Radix-Tree prefix caching, CoW lock downgrade, LIFO async Pinned Swap, decoupled background GPU thread SSE gateway, and cross-repo .cu RMSNorm + Triton SwiGLU fusion.
Real 24-layer Qwen2.5-0.5B-Instruct (494M params) full-sequence training on 7.93 GB GDDR7: zero-atomic Triton GQA FlashAttention-2, multi-process torch.distributed ZigZag Ring Attention (max grad err 8.58e-6), Intra-Layer SAC, 152K in-place addmm_ Chunked CE, slot-safe dual-stream pinned DMA offload, and HybridCPUAdamW.
Every metric below is directly backed by committed benchmark reports and deterministic test suites (24/24 tests passing across all 3 repositories).
| System | Workload & Config | Strong Baseline | Measured Result | Verified Delta |
|---|---|---|---|---|
| 01 · Kernels | FusedAddRMSNorm (.cu) [16384×4096 FP16, 512MB GDDR7] |
312.6 GB/s D2D Roof | 311.0 GB/s (1726.2 μs) | 99.5% D2D · 5.55× Eager |
| 01 · Kernels | Triton GQA Q+K RoPE (B=1, S=1, 16Q/4KV) |
16.2 μs (compile) / 138.7 μs | 11.6 μs (single launch) | 1.40× compile · 11.97× Eager |
| 01 · Kernels | Fused Linear+CE (M=4096, V=128,256 BF16) |
1002.0 MB activ / 114.22 ms | 258.5 MB activ / 115.35 ms | -74.2% Activ VRAM · 0.99× spd |
| 02 · Serving | 24-Way Multi-Turn Throughput (16,384 KV slots, t=0) | 114.0 tok/s (35.99% frag) | 839.9 tok/s (0.63% frag) | 7.37× tok/s · 83.8% Radix hit |
| 02 · Serving | 12-Way Decode + 4×768 Burst (Chunked-Prefill=96) | 289.03 ms ITL P99 | 27.45 ms ITL P99 | -90.5% Tail Latency (10.53×) |
| 02 · Serving | 1056-Tok TTFT (1024 Hit + Cross-Repo .cu Fusion) |
54.62 ms / 814 launches | 15.28 ms / 400 launches | -72.0% TTFT · -50.9% launches |
| 03 · 32K Train | Single-8GB 2-Step Steady-State Max Context | 1,024 tokens (SDPA+AdamW) | 32,768 tokens (Full 32K) | 32.0× Context · 0 OOM |
| 03 · 32K Train | Intra-Layer SAC + Zero-Atomic Triton FA2 (S=4096) | 3813.0 MB activ / 14.87 TF | 739.3 MB / 15.13 TFLOPS | -80.6% Activ VRAM · 1.02× Full-Ckpt |
| 03 · 32K Train | Dual-Stream Pinned DMA Offload (B=4, S=2048, 672MB) | 1225.64 ms (sync, 52.47ms PCIe) | 1170.31 ms (async prefetch) | -55.33 ms · 100% PCIe Hidden |
| 03 · 32K Train | Multi-Proc ZigZag Causal Ring (P=4 Balance / P=2 Grad) | 6.99× FLOP imbalance | 1.00× balance · 8.58e-6 err | Zero Causal Bubble |
Building low-level GPU kernels, deep-learning compiler passes (TorchInductor / Core ATen IR), high-throughput LLM inference engines, and memory-efficient long-context training systems from scratch.