
AUG 17, 2026 · 29 MIN READ
为什么 409→15.5 ms 不是 26× Kernel 加速?
把 Python per-row sequential path 修成 N=B×T 的 batched GEMM/attention/MLP、whole-prefill Graph 与 fused SwiGLU,并用同 workload SGLang one_batch 区分“修坏 baseline”和“击败成熟 baseline”。
04 / NOTES
Research spotlights, implementation notes, and experiments from the hardware-agent and AI-systems workbench.
RESEARCH SPOTLIGHTS
Each spotlight explains the motivation, system design, evidence, and broader significance behind one research project.

用拓扑契约、行为契约和统一电路契约连接文本、原理图与可执行 RTL。

让多个专业智能体共同跨越门级设计中的布尔优化障碍。

通过高质量数据、两阶段训练和自适应推理提高 Verilog 生成效率。

用双尺度 PPA 梯度、软锚定和结构记忆指导昂贵反馈下的 RTL 搜索。

把散落在论文、代码和评测工具中的专家方法重建为可审计工作流。

在有限预算下显式管理工作流选择、类型化交接和停止决策。
A faithful fusion can fail a naive check; a passing candidate can be slower. Experimental lessons from agent-driven inference optimization.

评估生成 Kernel 是否保持量化引擎 contract 并击败同硬件 incumbent。
FEATURED NOTE
Practical writing focused on the path from a readable baseline to an implementation that respects real hardware.

AUG 17, 2026 · 29 MIN READ
把 Python per-row sequential path 修成 N=B×T 的 batched GEMM/attention/MLP、whole-prefill Graph 与 fused SwiGLU,并用同 workload SGLang one_batch 区分“修坏 baseline”和“击败成熟 baseline”。

左边 MLX 官方实现,右边 ApxInf:同一模型、同一策略、同一动作序列,慢的只是模型思考时间。M1 Pro 上 152.4 s vs 76.5 s。

不要求 GPU 基础:每课先用日常问题和生活类比讲直觉,再进入 Llama、Persistent Kernel、资源、内存序与实验。

从 scale granularity、large-M DeepGEMM 与 B1 down-only selector 理解 precision 为什么属于 execution cell。

从 strided view、implicit contiguous copy 与 stride-generic consumer 理解 producer layout 的 sign flip。

从 logical mask、physical KV slice 与 strict bucket crossing 理解静态 Graph 如何随 live context 缩放物理工作。

用稳定地址与动态 device state,把 B1/T64 prefill 和 B16/K256 decode 拆成两个可回滚的 scenario leaves。

从 branch slack、max-join、profiler authority 与 fusion overlap 理解 local saving 和 exposed saving 的差别。

区分 route capacity、compact metadata prefix、persistent admitted work 与真正被删除的数据边。

从 FP8 decode tax、vector width、warp issue、MLP 与 matched event 理解为什么单一 profiler counter 不能宣布 winner。

从一次性 state、SMEM second hop、mbarrier 与 CTA residency 理解为什么更先进的 copy primitive 不一定缩短路径。

从完整 GQA head group、KV split 与 softmax partial tree 理解 CTA topology 如何改变合法性、数值和性能。

从 fallback、phase、same-path baseline 与 CUDA Graph identity 理解为什么 path hit 必须先于计时。

从 path hit、ABI、正确性、A/A 噪声、Amdahl ceiling、端到端反转到 formal holdout,建立七道证据门。

区分 cold/cached/decode 计时边界,并用 Amdahl、DeepEP 与 DSA/index-score 解释长上下文瓶颈迁移。

比较 RMSNorm 40→32 与 single decode 56→80 的相反方向,理解 occupancy、ILP、spill 和 shape-specific cliff。

从 source-owned symmetric pull、transport numerical protocol 和 slow-rank wall 理解通信关键路径。

从 memory visibility、epoch、slot lifetime 和 producer residency 理解 GPU-resident control 的双重正确性合同。

从 reciprocal、BF16 round、reduction tree 与 call frequency 理解 Fusion 的数值和关键路径合同。

比较不同 resident execution shape,理解 ownership、occupancy、dependency window 与 live state 如何让异步技巧变号。

从标量 BF16 到宽 vector I/O,再用 CUDA counterfactual 测量机制收益与当前 schedule gap。

从 RoPE 原地更新、K/V combined scatter 和 fused add/RMSNorm 出发,理解删除高频 non-GEMM seam 如何穿透到 HTTP serving。

从 local M、fixed-NK、生产 ABI、CUDA Graph 和 path-hit 出发,理解为什么 winner 是一个带坐标的事实。

从 logical/physical expert ID、Router 的最终写出格式和 DeepEP 的资源预算出发,理解跨三张执行 DAG 的关键路径优化。

以 GLM-5.2-FP8 decode 子图为例,拆解 Megakernel、Multistream 和 PDL 各自解决什么问题,以及为什么关键路径分析决定最终选择。

从 Per-Expert Kernel 选择、Problem Size Mask 与真实 TMA 数据量出发,解释为什么 MoE 优化最终还需要多 Stream 并发。

从量化格式和数学原理出发,逐步分析 Naive GEMM、Q8_1 补偿项与 llama.cpp MMQ kernel 的工程优化。

A practical guide to creating technical project and blog covers with structured image-generation prompts.

Complete, compilable CUDA reduction examples with test harnesses and build instructions.

Warp unrolling, template metaprogramming, memory coalescing, and the reasoning behind a classic optimization.

Explicit synchronization, tiled groups, and safer ways to reason about the CUDA thread hierarchy.

A three-stage path from modern Cooperative Groups to warp shuffle and standard-library implementations.

The architectural ideas that shaped NVIDIA GPUs from Tesla through Hopper.
KEEP EXPLORING
Many articles are paired with runnable examples, kernel experiments, and learning repositories on GitHub.
Browse GitHub