Hands-on visual explanations of attention, quantization, GPU kernels, model architectures, and inference optimization.
🤖 All visualizations in this project are generated by AI coding agents. I guide the topics and iterate on the results to make complex inference concepts easier to explore.
Explore the live gallery → · Browse the source → · Contribute →
40+ interactive HTML demos · Dark/light friendly · Open source
Real screenshots from the interactive pages. Click any preview to launch the live visualization.
BlockSelector How token scores become selected KV blocks Live demo · Source |
RainFusion × MXFP8 Explore sparse attention and low-bit numerics Live demo · Source |
Tiny-GPU Trace Step through how GPU work executes Live demo · Source |
Start here: BlockSelector for sparse attention, AutoRound for low-bit quantization, or Tiny-GPU Trace for kernel execution.
Choose a topic below, or view all 47 visualizations in the live, tag-filterable gallery.
Explore token selection, sparse attention, error propagation, and attention memory access.
| Interactive visualization | Try it | Source |
|---|---|---|
| FlashAttention: Online Softmax Step-by-Step | Open demo | HTML |
| Q & K/V Spatial Tiling: Tokens to 500 Blocks | Open demo | HTML |
| Spark-H3: Reblocking & Attention Speedup | Open demo | HTML |
| BlockSelector: From 64 Tokens to KV Blocks | Open demo | HTML |
| TRIAGE: Attention Error Lab | Open demo | HTML |
| RainFusion × MXFP8 | Open demo | HTML |
| Dense vs Block-Sparse KV Prefetch | Open demo | HTML |
| MXAttention: Core Idea | Open demo | HTML |
| Sparse Attention for Video Generation | Open demo | HTML |
| HND vs NHD Sparse KV Memory Access | Open demo | HTML |
| Xe SDPA Forward Mainloop | Open demo | HTML |
See how precision formats, scales, rounding, and bit packing affect inference.
| Interactive visualization | Try it | Source |
|---|---|---|
| AutoRound / SignRound | Open demo | HTML |
| MXFP4 / MXFP8 Visualizer | Open demo | HTML |
| INT4 vs FP4 Encoding | Open demo | HTML |
| Quantization Granularity | Open demo | HTML |
| Quantization Error, Scale & Rounding | Open demo | HTML |
| 1–8 Bit Packing Patterns | Open demo | HTML |
| TF32 vs FP32 | Open demo | HTML |
Understand execution flows, GPU scheduling, hardware characteristics, and software stacks.
| Interactive visualization | Try it | Source |
|---|---|---|
| Tiny-GPU Execution Trace Explorer | Open demo | HTML |
| Tiny-GPU Architecture Explorer | Open demo | HTML |
| Intel Xe GPU Execution Model | Open demo | HTML |
| Intel GPU Software Stack | Open demo | HTML |
| Intel Arc Pro B70 vs B60 | Open demo | HTML |
| NVIDIA B200 Key Specs | Open demo | HTML |
Follow kernel optimization from execution layout through profiling and performance analysis.
| Interactive visualization | Try it | Source |
|---|---|---|
| Intel GPU Kernel Lifecycle | Open demo | HTML |
| Blackwell Tensor Memory (TMEM) | Open demo | HTML |
| Intel Xe CuTe GEMM Shape Visualizer | Open demo | HTML |
| Intel Xe CuTe: Beginner Tutorial | Open demo | HTML |
| Intel EU/XVE Stall Counter Explorer | Open demo | HTML |
| NVIDIA cp.async vs Intel Xe Prefetch | Open demo | HTML |
| GEMM Thread Ownership | Open demo | HTML |
| XPU joint_matrix Debug Journey | Open demo | HTML |
Interactive explorations of diffusion models, KV compression, model internals, and caching.
| Interactive visualization | Try it | Source |
|---|---|---|
| Cosmos 3 Super Architecture | Open demo | HTML |
| Cosmos 3: Generator & Reasoner Context | Open demo | HTML |
| DeepSeek-V4 CSA: 4 Tokens to 1 KV Entry | Open demo | HTML |
| Cache-DiT Workflow | Open demo | HTML |
| GLM-5.2 IndexShare | Open demo | HTML |
| SSA Gist Tokens | Open demo | HTML |
Compare selection algorithms and kernel-aware optimization strategies.
| Interactive visualization | Try it | Source |
|---|---|---|
| Real vs Approximate Top-K | Open demo | HTML |
| Radix Top-K Visualizer | Open demo | HTML |
| B200 Fast Top-K Optimization | Open demo | HTML |
Online: Open any live demo above, or explore the full gallery. Most pages work as interactive, standalone HTML documents.
Locally: Clone the repo and open a page in your browser:
git clone https://github.com/yiliu30/inference-viz.git
cd inference-viz
# Open viz/blockselector_subblock_topk_interactive.html in your browserSome demos load JavaScript libraries from external CDNs and may need an internet connection. No model weights or GPUs are required for the browser-based illustrations.
Ideas, corrections, and new visualizations are welcome.
- Open an issue to propose a topic or report a problem.
- To submit a demo, add a self-contained
.htmlfile inviz/. - Add relevant category tags to
data/viz_tags.json. - Test the page in a browser and open a pull request with a short explanation and, if useful, a screenshot.
Please avoid committing credentials, private data, copyrighted assets you cannot redistribute, or dependencies that break local previews.
inference-viz/
├── README.md
├── viz/ # Interactive HTML demos and editor
├── data/viz_tags.json # Topic filters for the gallery
└── docs/MIGRATION.md # Publishing and synchronization notes
Source of truth: this repository. Public URL: yiliu30.github.io/viz/. The existing Hugo website syncs the HTML pages and tags from here during deployment, so existing demo links stay unchanged. How publishing works.
The three preview images above are real screenshots hosted in my GitHub profile's preview assets.
Created by Yi Liu · More about my open-source work
If these visualizations help your research or engineering work, consider starring the repository to make it easier for others to discover.