Merge per-shape definitions into one definition per operator
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- README.md +14 -10
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/0011fcf356b915718dc22610388ef6bb0a06e952e61cb610954122ea6d9b569d.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/00b199614f81d11ba2763b59714d61372a4c2add5d193d6e896b191f280974e2.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/084195e09b36f674af9867a8bac1eb8582d016d07b020084e4cb1975150d2794.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/0abf8a70022c1d7b2539127fb935f9116888180109feca9711ba816aa37c2ced.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/0b9f435c086d799e64946d2339650d012947496eea8fddee2c9a74e08a32b80c.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/0e8a0eb1b0bbd588a87c0110b5b93be119538d4a458790c6de2449c22c941159.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/0ef04f05a00478a89c1b4b0188148efef283f0edd09d456eb27ec1b535c0a063.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/0f64346ca9d87aa852bd57168fe058aca8ffd2de0296bef3cb6c97b945fb7c07.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/1030b6b26fb62493c3107544795a18e6d99c3e4c9fb980e28b14a1ef553689dd.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/10421991d48239526ec8f05a46c718c16d90cacd498a0ffb4f4c60c1c3d61f3f.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/112b591be58c8366bf508e157055684de7853bcd091a062d2ad10fa00b45cfad.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/11a8b9d4110521467731516b88a4a1f59b0485d642355b10eafb8705f005277a.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/15b7d5bdf696f9737135f2b0fb9c070e7b7c314a47f94d42f2b7f2220b463f08.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/16b6f4a3ee92d9d09a750cd11bf0ea496d7855fc6479ceb6c45b07a412eb81cd.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/179b31d40484addcbd3a17e723444b75855c1ef9ca3a3d8abe7e24f2d2c9e4d6.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/1834d8cb0221fef59dd0aa037bbfd38a1fd686988efc40f374ac55c928d087b2.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/1848e8723c3271bb58b1899716b88fb309c1947013dff24de9d8697e52dffa45.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/189ef602b014081add1f26f76c8fd630a99796c7accde2ac863190b71efe032a.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/18a22a7fae925dc56b2b3c1c43f379196fbfc23e7a31766ef0c7958e4f74b322.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/1aa17838de8ff474520c0415b52de63cf7c284b2524dee34d2f518648193bcff.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/1ef5e531605f82e019d314bcd63a1457da4f407923461967801d89a06bc92e5b.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/224e353933f43af734ec74834219cd0d532f8a4c2a5161f1bd6cb684e9f0c653.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/2587d48e43962811485244f272459d67d7e7ffd396f95c02125b9fd9457aa925.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/2853a80fc4317a86f06b98b502e7ab616e225fb12947dbfd1a21463a2a8bbac1.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/2a48c351e9371d5f66451dc30de4a50c73c4465d53738d94662926caf166bd4a.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/2b48954b969eecec2384645c15d37f3a6bb884cd33ecc45d78fc12488e89dcf4.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/2c87c6952f0b539065032448466ba4e943b4e5892d90c8b3a67b5f379a140233.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/2ddd13c9a2e33a49f692aac184e5e81b5e4d31735f79e9f98222723461ce6905.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/2e7bd8b915ab96f3138f8bc79bc660568ce96bdb30c3e6be1052e93efb3e2bf2.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/2f7dcef704d0c2fdfcca395b1fe0a176c03e42955129ebb86e6723dfe76e646b.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/31f9f63df8a657253651b29f9dad25de8a5b00883933c1e9d1006f238cd217c3.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/3458abef18405c57cdf24fc03a2e5df6431a736fcaf61be3c80faa27f71c8cec.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/3577adc5f6c646dc329d6b542376fa58eec21da21e5eff96d3d8fe6b54de0e80.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/3a0b17e7438e60e0a47fd576c2ce85c3d44c26f667f8ee1e0fd4e4f56b8cc5cf.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/3c7c50a338fb849474ab1ac4d6e12b6892ae5c16050ad027fa3bb2dd41ea297c.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/3d2301f7e426911b7675e834fff4d4db45715878b803a171661ae1a56eea8609.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/3d48305d939f178cd8b60aae1986f9fd0004e2649a3b0900ebc4481683cf74bf.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/42301ec5f9595219dcc3beb7e95bb5db76a712f290b969805fdaae2a36c64fd9.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/45bc577fdd6156c87de4860bb22460fa8a8f021f385f9baf8b47b572d5d2c3f9.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/467ade334037b842da3b6d1aca2336af14fa8934db3493d60e990f77f75a755c.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/473a0e2997cbabadc85352895a553f7f9a824a67b08132b7309acdd1c14167d2.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/47433137f85c9065dcae604733084b90b56ca3040ed9930dec3b6028c62bbca3.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/48110da6e419681a8dfe9bd0138c197a423f393932f9bc23e6860c98ae9da8db.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/49f73531422709582089fb5916de279b062ce9a9cc79d873acc234d20b0f542a.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/515b571e521810128a185851cdedb170a79903d6ad7dcdd4e896540dfc986b7e.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/51bd9c5c57d67f6e9415a85862a0eff814b53655c3f6ed655113b998da86427f.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/5206d93cd32897ed9a5ad27874582229aa0ccb2be4fbc4c85f109094df40ece0.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/52242c387e9b0142be33380829460bac47428c61cd3efeeacced4d883086cd0c.safetensors +0 -0
- blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/526c870125480519a48c9a638517ada4566b78891bcc40259acd566429c1ee30.safetensors +0 -0
README.md
CHANGED
|
@@ -9,11 +9,11 @@ tags:
|
|
| 9 |
---
|
| 10 |
# Inference Kernels
|
| 11 |
|
| 12 |
-
|
| 13 |
|
| 14 |
Every published tensor input references a complete `safetensors` snapshot. Python scalar arguments use scalar descriptors. There are no random-input descriptors or synthetic activation generators. `captures.jsonl` joins each workload UUID to its model revision, request, engine operation, input adaptations, actual outputs, and validation results.
|
| 15 |
|
| 16 |
-
**1,104 real workloads cover all
|
| 17 |
|
| 18 |
The dataset was regenerated from full pinned checkpoints through SGLang on NVIDIA B300 GPUs. Definitions, reference code, tolerances, and baseline solutions are unchanged, apart from the [curation](#curation) for kernels that real inference uses.
|
| 19 |
|
|
@@ -23,19 +23,19 @@ BF16, FP16, FP32, and FP64 mean 16-bit Brain Floating Point, IEEE half precision
|
|
| 23 |
|
| 24 |
| Family | Model | Fixed dimensions | Definitions | Workloads |
|
| 25 |
|---|---|---|---:|---:|
|
| 26 |
-
| Dense matrix multiplication | Qwen Image 2.1 Turbo | `(N,K)`: `(4096,4096)`, `(12288,4096)`, `(4096,12288)`; `M >= 4096` |
|
| 27 |
-
| Grouped expert matrix multiplication | DeepSeek V4.1 Flash | 384 experts; `(N,K)`: `(4608,5120)`, `(5120,2304)`; FP8 × FP4 |
|
| 28 |
| Mixed-format latent attention | DeepSeek V4.1 Flash | 64 heads × 512 dimensions; 128 FP8 window slots and 512 FP4 compressed slots | 1 | 42 |
|
| 29 |
-
| Sparse multi-head latent attention (MLA), prefill | DeepSeek V4.1 Flash | 64 query heads × 512 dimensions; 1 shared key/value head; BF16;
|
| 30 |
| Gated delta recurrence | Qwen3-Next (MLSys 2026 contest) | 4 query/key heads, 8 value heads (TP=4 shard), dimension 128; k-last state; prefill and decode | 2 | 154 |
|
| 31 |
-
| Noncausal dense attention | LTX-2.5 |
|
| 32 |
| Qwen sparse attention | Qwen 3.8 Flash-Next | 24 query heads, 2 key/value heads, dimension 256; 512 four-token blocks | 1 | 192 |
|
| 33 |
| Prefix-cached block-causal attention | Qwen Image 2.1 Turbo | 32 heads × 128; empty-prefix and cached-prefix cases | 2 | 40 |
|
| 34 |
| Sparse index scoring and selection | Qwen 3.8 Flash-Next | 4 query heads × 128; Top-512 complete four-token blocks | 1 | 192 |
|
| 35 |
| Expert router | DeepSeek V4.1 Flash | Hidden dimension 5120, 384 experts, Top-6 selection | 1 | 50 |
|
| 36 |
-
| Three-dimensional neighborhood attention | LTX-2.5 diffusion decoder | Dimension 64; `(heads, window)`: `(32,3×7×7)`, `(16,3×7×7)`, `(8,3×5×5)`, `(4,11×11×11)` |
|
| 37 |
|
| 38 |
-
**[Shape distribution histograms for all
|
| 39 |
|
| 40 |
Definitions describe complete logical operators. Captures preserve all model heads and experts; distributed shards must be gathered before publication. Backend padding, layout changes, and page remapping are recorded explicitly. Cache snapshots retain every referenced page, including its unused tail; unreachable allocator pages are omitted. Tensor strides are normalized to contiguous storage without changing values.
|
| 41 |
|
|
@@ -104,7 +104,7 @@ The existing baseline implementations and B200 measurements come from the origin
|
|
| 104 |
|
| 105 |
| Kernels | Open-source implementation |
|
| 106 |
|---|---|
|
| 107 |
-
| Dense and grouped matrix multiplication | [DeepGEMM](https://github.com/deepseek-ai/DeepGEMM/tree/1fc9c66975ee322d628b3288534ca0e9ce12a64d)
|
| 108 |
| Sparse MLA prefill and mixed-format MLA decode | [FlashMLA](https://github.com/deepseek-ai/FlashMLA/tree/0f11e178da1f67becb087a324b400854931ec3e3) |
|
| 109 |
| Dense, block-causal, and sparse grouped-query attention | [FlashAttention-4](https://github.com/Dao-AILab/flash-attention) 4.0.0b35, with runtime masks or sparse-input adapters |
|
| 110 |
| Gated delta recurrence | The MLSys 2026 contest's FlashInfer prefill and decode wrappers, unchanged |
|
|
@@ -145,6 +145,10 @@ This revision keeps only kernels that real inference uses, as KDA (Kernel Design
|
|
| 145 |
- **Replaced the gated delta definitions.** `gated_delta_rule_{decode,prefill}_h48_dk128_dv128` gave Q/K pre-repeated to 48 heads and a `[B, H, K, V]` state, which is not an engine's interface. They are replaced by the [MLSys 2026 FlashInfer contest](https://huggingface.co/datasets/flashinfer-ai/mlsys26-contest/tree/5e832ce88dd1013032b22a0e942979d7d2769cc3) definitions `gdn_{decode,prefill}_qk4_v8_d128_k_last`, with their workloads and FlashInfer baselines unchanged. Each input tensor is stored in its own content-addressed file. Each receipt records the source workload, plus a check that the reference returns finite outputs of the declared shapes.
|
| 146 |
- **The three remaining dense GEMMs keep only their `M >= 4096` rows.** The `M <= 32` rows were 11–27 µs launches.
|
| 147 |
- **The LTX dense attention definitions drop the dense `[B, H, Nq, Nk]` visibility mask.** It was all True on every captured call (up to 839 MB). On one GPU the engine passes no mask, or an all-visible prompt mask. Replay against the captured engine outputs still passes.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
- **Receipts and tensors.** The receipts of removed workloads are dropped, along with every tensor that nothing references.
|
| 149 |
- **Scripts.**
|
| 150 |
- `check_workload_inputs.py` evaluates constraints that read inputs, such as `cu_seqlens[-1]`.
|
|
@@ -227,7 +231,7 @@ BF16 comparisons use `rtol=0.016, atol=0.005`; FP32 uses `rtol=1e-4, atol=2e-5`;
|
|
| 227 |
|
| 228 |
One complete router workload is excluded from the 279 DeepSeek raw captures: at two rows of a 4,096-row call, FP32 ranking ties produce different expert selections. The original FP32 reference and exact selected-set requirement remain unchanged. This call was also absent from the original dataset. No rows are removed from published tensors. All nine LTX requests pass and are included.
|
| 229 |
|
| 230 |
-
Tensor files are published directly as `blob/workloads/<definition>/<hash>.safetensors` through Git LFS. Every workload and capture record references tensors under its definition directory. Shared snapshots have identical LFS objects across directories: 5,
|
| 231 |
|
| 232 |
```bash
|
| 233 |
git clone https://huggingface.co/datasets/humanfia-lab/inference-kernels
|
|
|
|
| 9 |
---
|
| 10 |
# Inference Kernels
|
| 11 |
|
| 12 |
+
13 [FlashInfer Trace](https://github.com/flashinfer-ai/flashinfer-bench/tree/main/docs/flashinfer-trace) operator definitions, one per operator except for the empty-prefix case of block-causal attention, with self-contained PyTorch references, open-source baseline solutions, and workloads captured from actual inference: 11 through SGLang, and the 2 gated delta definitions from the [MLSys 2026 FlashInfer contest](https://huggingface.co/datasets/flashinfer-ai/mlsys26-contest/tree/5e832ce88dd1013032b22a0e942979d7d2769cc3). Model dimensions are constants, except where one operator serves several model shapes (weight shapes, head dimensions, windows, slot counts); those are runtime axes, like batch sizes, sequence lengths, page sizes, and image grids.
|
| 13 |
|
| 14 |
Every published tensor input references a complete `safetensors` snapshot. Python scalar arguments use scalar descriptors. There are no random-input descriptors or synthetic activation generators. `captures.jsonl` joins each workload UUID to its model revision, request, engine operation, input adaptations, actual outputs, and validation results.
|
| 15 |
|
| 16 |
+
**1,104 real workloads cover all 13 definitions:** 133 Qwen Image, 384 Qwen Flash-Next, 226 DeepSeek, 207 LTX, and 154 Qwen3-Next from the MLSys 2026 contest. The 950 SGLang captures pass complete-output replay; the contest publishes no engine outputs, so its workloads are checked by running the reference. The complete dataset is published at [humanfia-lab/inference-kernels](https://huggingface.co/datasets/humanfia-lab/inference-kernels), including definitions, workloads, capture records, baseline solutions, and tensors. The 5,455 tensor paths contain 5,124 unique snapshots of inputs, complete engine outputs, and auxiliary capture tensors. Fetch them with Git LFS before running workloads.
|
| 17 |
|
| 18 |
The dataset was regenerated from full pinned checkpoints through SGLang on NVIDIA B300 GPUs. Definitions, reference code, tolerances, and baseline solutions are unchanged, apart from the [curation](#curation) for kernels that real inference uses.
|
| 19 |
|
|
|
|
| 23 |
|
| 24 |
| Family | Model | Fixed dimensions | Definitions | Workloads |
|
| 25 |
|---|---|---|---:|---:|
|
| 26 |
+
| Dense matrix multiplication | Qwen Image 2.1 Turbo | `(N,K)`: `(4096,4096)`, `(12288,4096)`, `(4096,12288)`; `M >= 4096` | 1 | 93 |
|
| 27 |
+
| Grouped expert matrix multiplication | DeepSeek V4.1 Flash | 384 experts; `(N,K)`: `(4608,5120)`, `(5120,2304)`; FP8 × FP4 | 1 | 104 |
|
| 28 |
| Mixed-format latent attention | DeepSeek V4.1 Flash | 64 heads × 512 dimensions; 128 FP8 window slots and 512 FP4 compressed slots | 1 | 42 |
|
| 29 |
+
| Sparse multi-head latent attention (MLA), prefill | DeepSeek V4.1 Flash | 64 query heads × 512 dimensions; 1 shared key/value head; BF16; 128 or 640 slots | 1 | 30 |
|
| 30 |
| Gated delta recurrence | Qwen3-Next (MLSys 2026 contest) | 4 query/key heads, 8 value heads (TP=4 shard), dimension 128; k-last state; prefill and decode | 2 | 154 |
|
| 31 |
+
| Noncausal dense attention | LTX-2.5 | 32 heads; dimension 128 (video) or 64 (audio); no mask | 1 | 162 |
|
| 32 |
| Qwen sparse attention | Qwen 3.8 Flash-Next | 24 query heads, 2 key/value heads, dimension 256; 512 four-token blocks | 1 | 192 |
|
| 33 |
| Prefix-cached block-causal attention | Qwen Image 2.1 Turbo | 32 heads × 128; empty-prefix and cached-prefix cases | 2 | 40 |
|
| 34 |
| Sparse index scoring and selection | Qwen 3.8 Flash-Next | 4 query heads × 128; Top-512 complete four-token blocks | 1 | 192 |
|
| 35 |
| Expert router | DeepSeek V4.1 Flash | Hidden dimension 5120, 384 experts, Top-6 selection | 1 | 50 |
|
| 36 |
+
| Three-dimensional neighborhood attention | LTX-2.5 diffusion decoder | Dimension 64; `(heads, window)`: `(32,3×7×7)`, `(16,3×7×7)`, `(8,3×5×5)`, `(4,11×11×11)`; the window is an input | 1 | 45 |
|
| 37 |
|
| 38 |
+
**[Shape distribution histograms for all 13 kernels](docs/shape-distributions/README.md)** show how the 1,104 workloads are distributed across exact runtime shapes. Each bar counts captured workloads with the same complete combination of variable dimensions; fixed model dimensions are listed above the plot. These counts describe this dataset, not AgentX traffic frequencies. Regenerate the figures with `python scripts/plot_shape_distributions.py` (requires Matplotlib; no GPU or tensor files needed).
|
| 39 |
|
| 40 |
Definitions describe complete logical operators. Captures preserve all model heads and experts; distributed shards must be gathered before publication. Backend padding, layout changes, and page remapping are recorded explicitly. Cache snapshots retain every referenced page, including its unused tail; unreachable allocator pages are omitted. Tensor strides are normalized to contiguous storage without changing values.
|
| 41 |
|
|
|
|
| 104 |
|
| 105 |
| Kernels | Open-source implementation |
|
| 106 |
|---|---|
|
| 107 |
+
| Dense and grouped matrix multiplication | [DeepGEMM](https://github.com/deepseek-ai/DeepGEMM/tree/1fc9c66975ee322d628b3288534ca0e9ce12a64d) |
|
| 108 |
| Sparse MLA prefill and mixed-format MLA decode | [FlashMLA](https://github.com/deepseek-ai/FlashMLA/tree/0f11e178da1f67becb087a324b400854931ec3e3) |
|
| 109 |
| Dense, block-causal, and sparse grouped-query attention | [FlashAttention-4](https://github.com/Dao-AILab/flash-attention) 4.0.0b35, with runtime masks or sparse-input adapters |
|
| 110 |
| Gated delta recurrence | The MLSys 2026 contest's FlashInfer prefill and decode wrappers, unchanged |
|
|
|
|
| 145 |
- **Replaced the gated delta definitions.** `gated_delta_rule_{decode,prefill}_h48_dk128_dv128` gave Q/K pre-repeated to 48 heads and a `[B, H, K, V]` state, which is not an engine's interface. They are replaced by the [MLSys 2026 FlashInfer contest](https://huggingface.co/datasets/flashinfer-ai/mlsys26-contest/tree/5e832ce88dd1013032b22a0e942979d7d2769cc3) definitions `gdn_{decode,prefill}_qk4_v8_d128_k_last`, with their workloads and FlashInfer baselines unchanged. Each input tensor is stored in its own content-addressed file. Each receipt records the source workload, plus a check that the reference returns finite outputs of the declared shapes.
|
| 146 |
- **The three remaining dense GEMMs keep only their `M >= 4096` rows.** The `M <= 32` rows were 11–27 µs launches.
|
| 147 |
- **The LTX dense attention definitions drop the dense `[B, H, Nq, Nk]` visibility mask.** It was all True on every captured call (up to 839 MB). On one GPU the engine passes no mask, or an all-visible prompt mask. Replay against the captured engine outputs still passes.
|
| 148 |
+
- **One definition per operator.** The per-shape definitions of an operator are merged into one, in which the shape constants are runtime axes: dense GEMM `N`/`K`, grouped GEMM `N`/`K` (with `K_packed`, `K_groups`), dense attention `D`, neighborhood `H`, and sparse MLA `TopK`. Block-causal attention keeps its empty-prefix definition (`Np = 0`), because FlashInfer Trace requires positive runtime axes; KDA judges the two as one task. The references were identical across shapes. The neighborhood window becomes three scalar inputs (`Kt`, `Ky`, `Kx`), because no tensor shape carries it.
|
| 149 |
+
- Tensors move to the merged definition's directory; identical snapshots collapse into one path each.
|
| 150 |
+
- Receipts take the merged definition and axes, and keep the definition they were captured under as `captured_definition`.
|
| 151 |
+
- The per-shape open-source solutions merge too: one DeepGEMM BF16 solution for every `(N, K)` (the CuTe DSL branch served only the removed `M <= 32` rows); one DeepGEMM grouped solution; FlashAttention 4 without a mask (FP16 for `D = 64`, as before); NATTEN with the window from the inputs; and one FlashMLA solution.
|
| 152 |
- **Receipts and tensors.** The receipts of removed workloads are dropped, along with every tensor that nothing references.
|
| 153 |
- **Scripts.**
|
| 154 |
- `check_workload_inputs.py` evaluates constraints that read inputs, such as `cu_seqlens[-1]`.
|
|
|
|
| 231 |
|
| 232 |
One complete router workload is excluded from the 279 DeepSeek raw captures: at two rows of a 4,096-row call, FP32 ranking ties produce different expert selections. The original FP32 reference and exact selected-set requirement remain unchanged. This call was also absent from the original dataset. No rows are removed from published tensors. All nine LTX requests pass and are included.
|
| 233 |
|
| 234 |
+
Tensor files are published directly as `blob/workloads/<definition>/<hash>.safetensors` through Git LFS. Every workload and capture record references tensors under its definition directory. Shared snapshots have identical LFS objects across directories: 5,455 paths contain 5,124 unique snapshots totaling 146.34 GB (146.41 GB when materialized at every path).
|
| 235 |
|
| 236 |
```bash
|
| 237 |
git clone https://huggingface.co/datasets/humanfia-lab/inference-kernels
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/0011fcf356b915718dc22610388ef6bb0a06e952e61cb610954122ea6d9b569d.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/00b199614f81d11ba2763b59714d61372a4c2add5d193d6e896b191f280974e2.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/084195e09b36f674af9867a8bac1eb8582d016d07b020084e4cb1975150d2794.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/0abf8a70022c1d7b2539127fb935f9116888180109feca9711ba816aa37c2ced.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/0b9f435c086d799e64946d2339650d012947496eea8fddee2c9a74e08a32b80c.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/0e8a0eb1b0bbd588a87c0110b5b93be119538d4a458790c6de2449c22c941159.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/0ef04f05a00478a89c1b4b0188148efef283f0edd09d456eb27ec1b535c0a063.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/0f64346ca9d87aa852bd57168fe058aca8ffd2de0296bef3cb6c97b945fb7c07.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/1030b6b26fb62493c3107544795a18e6d99c3e4c9fb980e28b14a1ef553689dd.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/10421991d48239526ec8f05a46c718c16d90cacd498a0ffb4f4c60c1c3d61f3f.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/112b591be58c8366bf508e157055684de7853bcd091a062d2ad10fa00b45cfad.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/11a8b9d4110521467731516b88a4a1f59b0485d642355b10eafb8705f005277a.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/15b7d5bdf696f9737135f2b0fb9c070e7b7c314a47f94d42f2b7f2220b463f08.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/16b6f4a3ee92d9d09a750cd11bf0ea496d7855fc6479ceb6c45b07a412eb81cd.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/179b31d40484addcbd3a17e723444b75855c1ef9ca3a3d8abe7e24f2d2c9e4d6.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/1834d8cb0221fef59dd0aa037bbfd38a1fd686988efc40f374ac55c928d087b2.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/1848e8723c3271bb58b1899716b88fb309c1947013dff24de9d8697e52dffa45.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/189ef602b014081add1f26f76c8fd630a99796c7accde2ac863190b71efe032a.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/18a22a7fae925dc56b2b3c1c43f379196fbfc23e7a31766ef0c7958e4f74b322.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/1aa17838de8ff474520c0415b52de63cf7c284b2524dee34d2f518648193bcff.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/1ef5e531605f82e019d314bcd63a1457da4f407923461967801d89a06bc92e5b.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/224e353933f43af734ec74834219cd0d532f8a4c2a5161f1bd6cb684e9f0c653.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/2587d48e43962811485244f272459d67d7e7ffd396f95c02125b9fd9457aa925.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/2853a80fc4317a86f06b98b502e7ab616e225fb12947dbfd1a21463a2a8bbac1.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/2a48c351e9371d5f66451dc30de4a50c73c4465d53738d94662926caf166bd4a.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/2b48954b969eecec2384645c15d37f3a6bb884cd33ecc45d78fc12488e89dcf4.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/2c87c6952f0b539065032448466ba4e943b4e5892d90c8b3a67b5f379a140233.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/2ddd13c9a2e33a49f692aac184e5e81b5e4d31735f79e9f98222723461ce6905.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/2e7bd8b915ab96f3138f8bc79bc660568ce96bdb30c3e6be1052e93efb3e2bf2.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/2f7dcef704d0c2fdfcca395b1fe0a176c03e42955129ebb86e6723dfe76e646b.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/31f9f63df8a657253651b29f9dad25de8a5b00883933c1e9d1006f238cd217c3.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/3458abef18405c57cdf24fc03a2e5df6431a736fcaf61be3c80faa27f71c8cec.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/3577adc5f6c646dc329d6b542376fa58eec21da21e5eff96d3d8fe6b54de0e80.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/3a0b17e7438e60e0a47fd576c2ce85c3d44c26f667f8ee1e0fd4e4f56b8cc5cf.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/3c7c50a338fb849474ab1ac4d6e12b6892ae5c16050ad027fa3bb2dd41ea297c.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/3d2301f7e426911b7675e834fff4d4db45715878b803a171661ae1a56eea8609.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/3d48305d939f178cd8b60aae1986f9fd0004e2649a3b0900ebc4481683cf74bf.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/42301ec5f9595219dcc3beb7e95bb5db76a712f290b969805fdaae2a36c64fd9.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/45bc577fdd6156c87de4860bb22460fa8a8f021f385f9baf8b47b572d5d2c3f9.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/467ade334037b842da3b6d1aca2336af14fa8934db3493d60e990f77f75a755c.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/473a0e2997cbabadc85352895a553f7f9a824a67b08132b7309acdd1c14167d2.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/47433137f85c9065dcae604733084b90b56ca3040ed9930dec3b6028c62bbca3.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/48110da6e419681a8dfe9bd0138c197a423f393932f9bc23e6860c98ae9da8db.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/49f73531422709582089fb5916de279b062ce9a9cc79d873acc234d20b0f542a.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/515b571e521810128a185851cdedb170a79903d6ad7dcdd4e896540dfc986b7e.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k4096 → dense_gemm_bf16_nt}/51bd9c5c57d67f6e9415a85862a0eff814b53655c3f6ed655113b998da86427f.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/5206d93cd32897ed9a5ad27874582229aa0ccb2be4fbc4c85f109094df40ece0.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n12288_k4096 → dense_gemm_bf16_nt}/52242c387e9b0142be33380829460bac47428c61cd3efeeacced4d883086cd0c.safetensors
RENAMED
|
File without changes
|
blob/workloads/{dense_gemm_bf16_nt_n4096_k12288 → dense_gemm_bf16_nt}/526c870125480519a48c9a638517ada4566b78891bcc40259acd566429c1ee30.safetensors
RENAMED
|
File without changes
|