Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
d01ae4f
hip: Inkling 2 on the ROCm backend, and the GEMV/GEMM scale arguments
Nov 23, 2026
8e58b7d
hip: count the desktop's VRAM when sizing the weights
Nov 23, 2026
3289aa2
hip: Inkling hybrid decode runs the core passes as one graph
Nov 23, 2026
a632960
inkling2: split hybrid experts by measured cost, not by balancing times
Nov 23, 2026
abafdc3
inkling2: let the most used experts take VRAM cache slots during decode
Nov 23, 2026
d3d56e9
docs: Inkling 2 decode on HIP, measured
Nov 23, 2026
ea84720
inkling2: keep each layer's most used experts in a VRAM pool during d…
Nov 24, 2026
3ab9110
docs: the Inkling 2 expert pool, measured
Nov 24, 2026
1f5ad41
inkling2: prefill in chunks of 2048 rows, so the pool's copies amortize
Nov 24, 2026
102096b
docs: Inkling 2 prompt chunk size, measured
Nov 24, 2026
8fe2fac
hip: stage a prompt chunk's experts on a copy stream beside the kernels
Nov 24, 2026
d4714bf
docs: the Inkling 2 staging copy overlap, measured
Nov 24, 2026
89d9722
hip: page-lock Inkling 2's pooled experts with STRATA_INK_PIN=1
Nov 24, 2026
1f99dd6
docs: pinned Inkling 2 experts, measured
Nov 24, 2026
2305802
hip: Inkling 2 uses the kp16 prompt attention, tiled controllers and …
Nov 27, 2026
49211c8
hip: count the desktop's VRAM on the card in use, found by PCI address
Nov 27, 2026
50dabe9
tests: skip HIP when hiprtc is missing, not only the runtime
Nov 27, 2026
41e6270
docs: HIP runs Inkling 2 on the faster kernels by default
Nov 27, 2026
f355499
hip: fall back to the VRAM size when no card has the device's PCI add…
Nov 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions docs/HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ the KV cache than a 16 GB card has left over for experts, so the run above strea
- `STRATA_NO_GRAPH=1` turns capture off for both GPU backends.
- `STRATA_HIP_WMMA=0` uses the CUDA-core multiplications in the prefill GEMM and in both products of the prefill
attention instead of the matrix cores.
- `STRATA_DS_FAST_KERNELS=0` runs Inkling 2 on the older attention and controller kernels (see "Faster Inkling 2
kernels" below); `1` forces the faster ones under `--fixed-experts` too.

## Why the prefill GEMM does not use int8 matrix cores

Expand Down Expand Up @@ -188,6 +190,101 @@ FP32 scan, and on CUDA it is 0.73-0.87x, i.e. slower.
2. Decode on an MoE model: the expert residency policy, not a kernel. That is where the multi-x is (see the reference
numbers from Strata in the handoff).

## Inkling 2 decode

Inkling 2 Mini UD-Q4_K_XL, 9070 XT, X470 (PCIe 3.0) with dual-channel DDR4 (36 GB/s read), `bench --pp 512 --tg 64`.
The core layers (6..18, run three times) and the prelude keep all 128 experts in VRAM as slabs. What does not fit runs
as hybrid layers: the host routes, the GPU runs the cached experts and the CPU the rest. These are the coda, layers
20-23 of which are Q8_0 at 8.5 MB an expert.

| | 18 slabs (desktop holds 3.3 GB) | 22 slabs (desktop idle) |
|---|---|---|
| before | 34.5 tok/s | 48.2 tok/s |
| after | 39.5 tok/s | 51.8 tok/s |

A token at 18 slabs: 13.5 ms of kernels, then ~9 ms of CPU experts (32 of the coda's 48, 260 MB at 29 GB/s, near the
DRAM limit). What changed, largest first:

- Copying a missed expert up for one use cost 2.5 ms and the CPU 0.25 ms. The share controller balanced the two sides'
times, but a layer has about six misses, so it settled on one copy in most layers and a sync in every one. `plan`
now picks the split from the measured cost of one expert on each side (`stage_count`): here, no copies.
- The VRAM cache froze with what prefill touched first. `Dev::admit` gives a slot to an expert used more often than
the coldest resident one. The coda routes are skewed (100 experts out of 768 take 60-67% of the uses), and layers
18-19 went from about 9 to 15 of their 16 uses on the GPU. Q8_0 layers cannot take NVFP4 slots, and no VRAM is left.
- The core passes run as one graph in the hybrid step (`core_graph`): 0.8 ms.

### The expert pool

Since then, every layer keeps only its most used experts in VRAM (`inkling2/forward/pool.rs`), and a decode token
never comes back to the host:

- `ink_route` routes on the device, and `ink_slots` looks each expert up in the layer's slot table. An expert that
is not in VRAM goes to the CPU worker (`worker.rs`) through the mailbox of `cpu_worker`, with the routing and
the activation. `ink_ffn_sum_mb` waits for the worker's sum only in a layer run that missed. The token is one
graph.
- After each token the routing counts (decayed per token) decide the placement. Up to 4 missed experts go into free
slots and 2 into the slots of less used ones. The long counts are saved as
`~/.cache/rusting_strata/inkling2-profile-*.f32` when the model goes, and they place the next load.
- A prompt chunk runs from the same slots. The chunk's other experts are copied into 32 staging slots a pool, in
rounds, before the GEMMs run.

| 12 GB weight budget, desktop holds 3 GB | pp 512 | pp 4096 | decode |
|---|---|---|---|
| slabs and hybrid layers (above) | 443 tok/s | 438 tok/s | 39.8 / 38.9 tok/s |
| pool, no profile yet | 329 | 378 | 49.7 / 55.7 |
| pool, profile of one earlier run | 436 | 426 | 60.5 / 58.9 |

Decode after the prompt of each column. At this budget the pool holds 68% of each layout's experts and keeps 98% of
a token's expert uses in VRAM; the CPU worker takes 1.8 ms a token. Greedy text is no longer bit-identical to
Vulkan: the placement decides which experts round on the CPU. `--fixed-experts` keeps the slabs and is.
`STRATA_INK_SLABS=1` keeps the slabs and pools only the layers they leave out.

### Prompt chunks of 2048 rows

A prompt chunk copies each layer run's missing experts into the staging slots, and a chunk of 256 rows already
touches most of a layer's 128 experts, so the copies repeated every 256 tokens. Prompt chunks now have 2048 rows
(`STRATA_DS_PF_TOKENS`); the scratch costs about 0.55 GB of VRAM per 1024 rows, and the chunk halves when it does
not fit. 9.5 GB weight budget, desktop at 2.2 GB, `bench --pp 512,4096 --tg 32`:

| rows | pp 512 | pp 4096 | decode | peak VRAM, card |
|---|---|---|---|---|
| 256 | 265 tok/s | 278 tok/s | 49.5 tok/s | 13.47 GB |
| 2048 | 387 | 767 | 48.9 | 14.61 GB |
| 4096 | 393 | 891 | 48.8 | 15.48 GB |

At 2048 rows a core layer run still misses 40-45 of the ~125 experts it uses (6-7% of the uses); most of those
serve 9 or more rows.

The missed experts are copied on a second stream (`Backend::htod_side`) into two halves of the staging slots: the
residents run while the first two rounds copy in, then each round runs while the next one fills the other half.
pp 4096 went from 775 to 834 tok/s (same routing profile, greedy text unchanged); with the copies left out it would
be 1105. What is left is the host's copy into the pinned ring (one thread, about 10 GB/s; more threads did not help)
and the routing read at each layer, before which no copy can start.

`STRATA_INK_PIN=1` page-locks the pooled experts in the mapped file (`hipHostRegister`, read-only; 15.8 GB in
1.8 s), so the staging copies and the pool's swaps between tokens are DMAs from the file's pages: pp 4096 855 tok/s,
decode 51-53. It keeps that much RAM locked while the model is loaded, so it is not the default. 64 or 96 staging
slots instead of 32 were slower (838, 823): each one is a pool slot less.

Left: `ink_mix` runs 120 times a token at 12 µs in one workgroup (about 1 ms, but a faster reduction order breaks the
bit parity with Vulkan), and a first run without a profile.

### Faster Inkling 2 kernels

By default HIP runs Inkling 2 on the kernels that the CUDA backend uses only with two cards (`InkFlags`): the
key-parallel prompt attention `ink_attn_prefill_128_kp16`, the tiled loop controllers for prompt chunks and the
128-key decode attention `ink_attn_128`. They sum in another order than the older kernels, so greedy text can differ
from the older kernels and from Vulkan at a near tie. `--fixed-experts` keeps the older kernels, and its output stays
bit-identical to Vulkan. `STRATA_DS_FAST_KERNELS` switches them as on CUDA.

The prompt attention was 54% of the kernel time of a 4096-token prompt. With the faster set, `bench --pp 512,4096
--tg 64`, alternating runs with a browser open on the desktop:

| | pp 4096 | decode |
|---|---|---|
| older kernels | 701, 908, 1001 tok/s | 51-62 tok/s |
| faster kernels | 1531, 1648, 1686 tok/s | 52-66 tok/s |

## Credits

The compatibility shim follows the structure and several implementations of Strata's
Expand Down
2 changes: 1 addition & 1 deletion docs/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ The two-card plan uses these knobs:
|---|---|---|
| `STRATA_DS_FAST_KERNELS` | `auto` | as above; one card keeps the old kernels unless forced |
| `STRATA_DS_PLAIN_FIRST` | unset; `chat`/`serve`/`bench` set `1` | keep the plain weights on GPU 0, where the decode state lives |
| `STRATA_DS_PF_TOKENS` | 256 one card, 512 two | tokens of one prompt chunk (at most 2048) |
| `STRATA_DS_PF_TOKENS` | 2048 one card, 512 two | tokens of one prompt chunk (at most 2048) |
| `STRATA_DS_KV_TOKENS` | `--ctx` | KV rows GPU 0 must still be able to take before it gives up a slab |
| `STRATA_DS_PROF` | unset | print `inkling2: preloaded N/24 ...` and the per-chunk profile |
| `STRATA_DS_NO_AFFINITY` | unset | pick the GPU per expert instead of per stacked tensor |
Expand Down
23 changes: 23 additions & 0 deletions src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ pub trait Backend: Send {
fn mem_info(&self) -> anyhow::Result<(usize, usize)>;
/// Wait for all queued device work.
fn sync(&self) -> anyhow::Result<()>;
/// A second queue for host-to-device copies, so they run beside the kernels (a prompt chunk's expert staging).
/// `htod_side` queues a copy there; `side_mark`/`main_mark` record the point each queue has reached, and
/// `main_waits`/`side_waits` hold the other queue there. A backend with one queue copies in order with its
/// kernels, so these defaults are already correct.
fn htod_side(&self, src: &[u8], dst: &Buf, off: usize) -> anyhow::Result<()> { self.htod(src, dst, off) }
/// Page-lock `data` (host memory that outlives this backend, such as the mapped model file), so `htod` from it
/// is a DMA without a copy through a staging buffer. False when the backend does not do that.
fn pin_host(&self, _data: &[u8]) -> anyhow::Result<bool> { Ok(false) }
fn side_mark(&self) -> anyhow::Result<usize> { Ok(0) }
fn main_waits(&self, _side_mark: usize) -> anyhow::Result<()> { Ok(()) }
fn main_mark(&self) -> anyhow::Result<usize> { Ok(0) }
fn side_waits(&self, _main_mark: usize) -> anyhow::Result<()> { Ok(()) }
/// Run the ops `f` queues as the graph recorded under `key`, recording it on first use. `f` runs only when
/// recording, so its ops must read per-call values from device memory.
fn graph(&self, key: u64, f: &mut dyn FnMut() -> anyhow::Result<()>) -> anyhow::Result<()>;
Expand Down Expand Up @@ -433,6 +445,17 @@ pub trait Backend: Send {
/// Attention of a vision encoder: each of the `n` rows of `q` sees all `n` keys (no mask). `q`, `k`, `v` and `out`
/// are f32 `[n][nh][hd]`.
fn vit_attn(&self, _q: u64, _k: u64, _v: u64, _out: u64, _n: usize, _nh: usize, _hd: usize, _scale: f32) -> anyhow::Result<()> { anyhow::bail!("{}: vision attention not implemented", self.name()) }
/// Whether `ink_slots` and `ink_ffn_sum_mb` exist here.
fn ink_pool(&self) -> bool { false }
/// Inkling 2 decode with an expert pool: the lookup of `ink_route`'s experts in `table` (`slots`, `wh`), the
/// routing and on a miss `h` (nh floats, at word `h_off`) written to the CPU worker's mailbox `mb`.
fn ink_slots(&self, _ids: u64, _wts: u64, _table: u64, _slots: u64, _wh: u64, _h: u64, _mb: u64, _nh: usize, _h_off: usize, _step: u64, _k: usize) -> anyhow::Result<()> {
anyhow::bail!("{}: no Inkling 2 expert pool kernels", self.name())
}
/// `ink_ffn_sum` of the pool's experts, plus the CPU worker's answer at word `y_off` of `mb` when one missed.
fn ink_ffn_sum_mb(&self, _acc: u64, _d: u64, _wh: u64, _k: usize, _n: usize, _mb: u64, _y_off: usize, _step: u64, _slots: u64) -> anyhow::Result<()> {
anyhow::bail!("{}: no Inkling 2 expert pool kernels", self.name())
}
fn ink_route(&self, _logits: u64, _bias: u64, _ids: u64, _wts: u64, _gu_sc: u64, _dn_sc: u64, _gsc_out: u64, _n_expert: usize, _k: usize, _exp_scale: f32, _rows: usize) -> anyhow::Result<()> { anyhow::bail!("{}: Inkling 2 router not implemented", self.name()) }
/// Gyro files (`config::Hadamard`): each of `rows` rows of n floats at `x` (times silu(x) * u first when `u` is
/// not 0) becomes H (s x) per `block` values, written to `out`, which may be `x`. `s`: the row's n signs as floats.
Expand Down
2 changes: 1 addition & 1 deletion src/cpu_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl CpuWorker {

/// Copies `out.len()` (a multiple of 4) words from 16-byte aligned `p`. On write-combining memory (the Vulkan BAR
/// mailbox) streaming loads fetch a whole 64-byte line per read instead of one uncached read per load.
unsafe fn read_wc(p: *const u32, out: &mut [u32]) {
pub(crate) unsafe fn read_wc(p: *const u32, out: &mut [u32]) {
#[cfg(target_feature = "sse4.1")]
for (i, c) in out.chunks_exact_mut(4).enumerate() {
use std::arch::x86_64::*;
Expand Down
53 changes: 53 additions & 0 deletions src/cuda/kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2564,6 +2564,59 @@ extern "C" __global__ void vit_attn(const float* q, const float* k, const float*
}
}

// Inkling 2 decode, after ink_route: the expert pool lookup of the k routed experts (slots[j] = table[ids[j]], -1 =
// on the CPU; wh[j] = wts[j] on a hit, else 0), the routing copied to the host-mapped mailbox `mb` (cpu_worker's
// layout for one token), and the request flag raised with the activation `h` when an expert missed, else only the
// skip flag. One block; step[1] is the CPU worker's sequence number.
extern "C" __global__ void ink_slots(const int* ids, const float* wts, const int* table, int* slots, float* wh,
const float* h, unsigned int* mb, int nh, int h_off, const int* step, int k) {
__shared__ int miss;
unsigned int seq = step[1];
if (threadIdx.x == 0) miss = 0;
__syncthreads();
if (threadIdx.x < k) {
int j = threadIdx.x, id = ids[j], s = table[id];
float w = wts[j];
slots[j] = s; wh[j] = s >= 0 ? w : 0.0f;
mb[32 + j] = id; mb[32 + k + j] = __float_as_uint(w); mb[32 + 2 * k + j] = s;
if (s < 0) miss = 1;
}
__syncthreads();
if (threadIdx.x == 0) mb[1] = 1;
if (!miss) { if (threadIdx.x == 0) ((volatile unsigned int*)mb)[2] = seq; return; }
for (int i = threadIdx.x; i < nh; i += blockDim.x) mb[h_off + i] = __float_as_uint(h[i]);
__threadfence_system();
__syncthreads();
if (threadIdx.x == 0) *(volatile unsigned int*)mb = seq;
}

// ink_ffn_sum of the pool's experts (wh, 0 for an expert on the CPU) plus, when one missed, the CPU worker's sum at
// word y_off of the mailbox, once its done flag is step[1].
extern "C" __global__ void ink_ffn_sum_mb(float* acc, const float* d, const float* wh, int k, int n, const unsigned int* mb,
int y_off, const int* step, const int* slots) {
unsigned int seq = step[1];
__shared__ int miss;
if (threadIdx.x == 0) {
int m = 0;
for (int j = 0; j < k; j++) m |= slots[j] < 0;
if (m) {
unsigned int spins = 0;
while (((volatile const unsigned int*)mb)[16] != seq) {
__nanosleep(100);
if (++spins == (1u << 27)) __trap(); // ~15 s: CPU worker gone
}
__threadfence_system();
}
miss = m;
}
__syncthreads();
int c = blockIdx.x * blockDim.x + threadIdx.x;
if (c >= n) return;
float o = miss ? __uint_as_float(((volatile const unsigned int*)mb)[y_off + c]) : 0.f;
for (int e = 0; e < k; e++) if (wh[e] != 0.f) o += wh[e] * d[(size_t)e * n + c];
acc[c] = o;
}

__device__ __forceinline__ unsigned ink_f2key(float x) {
unsigned u = __float_as_uint(x == 0.0f ? 0.0f : x);
return (u & 0x80000000u) ? ~u : (u ^ 0x80000000u);
Expand Down
33 changes: 22 additions & 11 deletions src/cuda/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ pub(crate) const QTYPES: [GgmlType; 29] = {
use GgmlType::*;
[F32, BF16, F8E4M3, Q8_0, Q2K, Q3K, Q4K, Q5K, Q6K, IQ1S, IQ1M, IQ2XXS, IQ2XS, IQ2S, IQ3XXS, IQ3S, IQ4XS, IQ4NL, Q2_0, TQ1_0, TQ2_0, TQ2T, TQK6, TQK7, Q4_1, Q5_1, Q4_0, Q5_0, NVFP4]
};
pub(crate) const KERNELS: [&str; 71] = [
pub(crate) const KERNELS: [&str; 73] = [
"rope_freq", "rope_cs", "qsa_pool", "qsa_score", "qsa_select", "rms_norm", "quant_xq", "argmax_part", "argmax_rows", "l2_norm", "rope_neox", "rms_norm_rope", "add", "swiglu", "situ", "situ_q", "softcap", "swiglu_q", "ssm_gates", "conv_silu", "deltanet_seq", "norm_gate",
"kv_store", "kv_store_turbo", "attn_merge", "ha_post", "ha_wait", "router_topk", "moe_combine", "moe_route", "conv_seq", "conv_state",
"moe_combine_seq", "moe_prefetch", "attn_prefill_64", "attn_prefill_128", "attn_prefill_256", "quant_q8", "gemm_splitk_sum", "x_to_f16",
"hc_silu", "hc_mix", "hc_write", "ple_gate", "ple_conv", "dflash2_conv", "hadamard",
"ink_mix", "ink_ctrl_gate", "ink_ctrl_out", "ink_ctrl_gate_b", "ink_ctrl_out_b", "ink_conv", "ink_conv_batch", "ink_clip", "ink_attn", "ink_attn_128", "ink_attn_merge",
"ink_attn_prefill_32", "ink_attn_prefill_64", "ink_attn_prefill_128", "ink_attn_prefill_128_old", "ink_attn_prefill_128_kp", "ink_attn_prefill_128_kp16", "ink_attn_prefill_sh_32", "ink_attn_prefill_sh_64", "ink_attn_prefill_sh_128", "ink_ffn_sum", "ink_route", "attn_sel", "vit_attn",
"ink_attn_prefill_32", "ink_attn_prefill_64", "ink_attn_prefill_128", "ink_attn_prefill_128_old", "ink_attn_prefill_128_kp", "ink_attn_prefill_128_kp16", "ink_attn_prefill_sh_32", "ink_attn_prefill_sh_64", "ink_attn_prefill_sh_128", "ink_ffn_sum", "ink_ffn_sum_mb", "ink_slots", "ink_route", "attn_sel", "vit_attn",
];

pub use crate::backend::{ATT_GQA_MIN, ATT_SPLITS, GEMM_BM, GpuTensor};
Expand All @@ -32,21 +32,22 @@ use crate::backend::ATT_SPLITS_1;
/// Kernel-choice flags read from the environment once, when the `Gpu` is made: they sit on the token path, so a
/// lookup per launch is not worth it.
#[derive(Clone, Copy)]
struct InkFlags {
pub(crate) struct InkFlags {
/// `STRATA_DS_FAST_KERNELS=auto` (default) uses the tiled controllers, `ink_attn_128` and `kp16` only when
/// the run has more than one device; `1` forces them on, `0` forces the old kernels. One card keeps the
/// `main` kernels (the greedy output must not change).
fast: bool,
/// `main` kernels (the greedy output must not change). The HIP backend passes its own default here (see
/// `hip::ink_flags_from`).
pub(crate) fast: bool,
/// `STRATA_CTRL_TILE=0` forces the per-token `ink_ctrl_*` pair; unset follows `fast`.
ctrl_tile: bool,
pub(crate) ctrl_tile: bool,
/// `STRATA_DS_ATTN_OLD=1` keeps the scalar/one-query-a-warp attention kernels for a measurement window.
attn_old: bool,
pub(crate) attn_old: bool,
/// `STRATA_DS_ATTN_KP4=1` selects the four-query 128-key tile prefill kernel.
attn_kp4: bool,
pub(crate) attn_kp4: bool,
}

impl InkFlags {
fn from_parts(fast: Option<&str>, multi: bool, ctrl: Option<&str>, attn_old: Option<&str>, attn_kp4: Option<&str>) -> Self {
pub(crate) fn from_parts(fast: Option<&str>, multi: bool, ctrl: Option<&str>, attn_old: Option<&str>, attn_kp4: Option<&str>) -> Self {
let on = |v: Option<&str>, default: bool| v.map_or(default, |v| v != "0");
let fast = match fast {
None | Some("auto") => multi,
Expand Down Expand Up @@ -1526,6 +1527,16 @@ impl Backend for Gpu {
launch!(self, "ink_ffn_sum", cfg((n.div_ceil(256) as u32, nt as u32), 256, 0), acc, d, wts, ne as i32, n as i32, cpu);
Ok(())
}
fn ink_pool(&self) -> bool { true }
fn ink_slots(&self, ids: u64, wts: u64, table: u64, slots: u64, wh: u64, h: u64, mb: u64, nh: usize, h_off: usize, step: u64, k: usize) -> anyhow::Result<()> {
anyhow::ensure!(k <= 32, "ink_slots: k={k}");
launch!(self, "ink_slots", cfg((1, 1), 256, 0), ids, wts, table, slots, wh, h, mb, nh as i32, h_off as i32, step, k as i32);
Ok(())
}
fn ink_ffn_sum_mb(&self, acc: u64, d: u64, wh: u64, k: usize, n: usize, mb: u64, y_off: usize, step: u64, slots: u64) -> anyhow::Result<()> {
launch!(self, "ink_ffn_sum_mb", cfg((n.div_ceil(256) as u32, 1), 256, 0), acc, d, wh, k as i32, n as i32, mb, y_off as i32, step, slots);
Ok(())
}
fn ink_route(&self, logits: u64, bias: u64, ids: u64, wts: u64, gu_sc: u64, dn_sc: u64, gsc_out: u64, n_expert: usize, k: usize, exp_scale: f32, rows: usize) -> anyhow::Result<()> {
anyhow::ensure!(n_expert <= 512 && k <= 32, "ink_route: n_expert={n_expert} k={k}");
launch!(self, "ink_route", cfg((rows as u32, 1), 32, 0), logits, bias, ids, wts, gu_sc, dn_sc, gsc_out, n_expert as i32, k as i32, exp_scale);
Expand Down Expand Up @@ -1917,8 +1928,8 @@ mod tests {
#[test]
fn kernel_names() {
let (sm70, sm80) = (super::kernel_names(false), super::kernel_names(true));
assert_eq!(sm80.len(), 439);
assert_eq!(sm70.len(), 370);
assert_eq!(sm80.len(), 441);
assert_eq!(sm70.len(), 372);
assert!(sm70.iter().all(|n| !n.starts_with("gemmi") && !n.starts_with("gemmd")),
"sm_70 must not load the int8 prefill GEMM: {:?}",
sm70.iter().filter(|n| n.starts_with("gemmi")).collect::<Vec<_>>());
Expand Down
Loading
Loading