Skip to content

pr-set : quantized K/V banded attention for Inkling, the Inkling 2 graph dedupe and three CUDA speed pins - #399

Merged
danielhanchen merged 5 commits into
masterfrom
pinset-kv-banded-quant
Nov 22, 2026
Merged

danielhanchen merged 5 commits into
masterfrom
pinset-kv-banded-quant

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Repins two Inkling pins so a quantized KV cache takes the banded relative-bias attention path and the banded mask is built once per graph, folds the Inkling 2 graph dedupe into #386, adds three CUDA speed pins for Inkling 2 (#400, #401, #402), and updates the pins for upstream ggml-org#32669 (b12622) so the nightly can move past b12621.

pin old new change
#378 (Inkling 1) e65c374 19360e5 merge of b12622 for ggml-org#32669 (on top of 1ac4b1c); quantized K cache takes the banded op where the device supports it; banded mask shared across layers; banded attention for a sequence stored at a cell offset
#386 (Inkling 2 banded attention) 242a5d8 6348de2 merge of b12622 for ggml-org#32669 (on top of 0edf1d6); CUDA in-tile dequant for q8_0 / q4_0 K/V in the banded kernel; the three #378 commits merged in (#386 carries #378's lines); banded mask shared across layers; graph dedupe (each earlier block normalized once, repeated copies, norms and fills removed)
#400 (new) a5667a9 CUDA mul_mat_vec_f packs up to 8 short rows per block
#401 (new) e418bb2 CUDA fused row L2 clip chain (q/k/r clip)
#402 (new) 0bfd204 CUDA fused SiTU gate of the MoE experts
#405 (DSpark, was ggml-org#32218) 8ea4363 0a9105d ggml-org#32218 was force-pushed twice; the pin now points at the same commit through #405, see below
#396 (looped layers, host weight views) d96a834 9b6b8a4 merge of b12622 plus the looped-layer weight views keeping their NVFP4 scales
ggml-org#24423 (DiffusionGemma) 604a809 9f55089 merge of b12622; the gemma4 MoE call ported to upstream's form
ggml-org#32704 42fd370 retired squash-merged upstream as 690b87d, in every tag since b12611

All moved Unsloth pins are fast-forwards of the published PR heads. #400 to #402 are each upstream b12602 plus one commit (base base/upstream-418fe97b5), generic CUDA/HIP, with kill switches GGML_CUDA_DISABLE_CLIP_ROWS_FUSION=1 and GGML_CUDA_DISABLE_SITU_FUSION=1 for the fusions. feature-checks.json gains cuda-mmvf-rows, cuda-clip-rows-fusion and cuda-situ-fusion.

Final head (DSpark through #405)

b12628 (aged) b12631 (newest)
merge (34 pins) ok ok
pin_contract all intact all intact
merge_checks clean clean
CPU gate + feature_matrix ok, 19/19 ok, 19/19
CUDA build ok ok
test-chat pass pass
test-backend-ops MUL_MAT / MUL_MAT_ID / PAD / GET_ROWS 2861 / 1177 / 37 / 361 2861 / 1177 / 37 / 361
feature_matrix --gpu 19/19 (inkling2-banded-attn 54/54) 19/19 (inkling2-banded-attn 54/54)

Audit: 34/34 pins clean. Every pin URL is a commit of its PR, including #405 at 0a9105d.

DSpark on b12628, published drafter on this pin vs a drafter re-exported with the converter of ggml-org#32218 e4b1cb5 on that head (greedy, accepted / drafted):

target n_max 0a9105d + published drafter e4b1cb5 + re-exported drafter
UD-Q4_K_XL 2 807 / 1221 806 / 1222
UD-Q4_K_XL 3 883 / 1577 883 / 1577
UD-IQ1_S 2 802 / 1236 807 / 1225
UD-IQ1_S 3 891 / 1597 895 / 1585

Acceptance is the same on both heads, so freezing loses nothing. Without a drafter the two trees give byte-identical output, and the target PPL and KLD are unchanged (UD-Q4_K_XL 5.7660, Mainline_Support UD-IQ1_S 6.3152, KLD 0).

Speed (Inkling-2-Mini, exclusive B200, interleaved base/head, the three new pins plus the #386 dedupe)

file pp512 pp4096 tg128
UD-Q4_K_XL 2813 -> 4423 (+57%) 2354 -> 3417 (+45%) 61.3 -> 78.1 (+27%)
UD-IQ1_S 2858 -> 4561 (+60%) 2386 -> 3486 (+46%) 62.7 -> 80.2 (+28%)

At 64K depth: pp512 +34%, tg128 +20%. Two GPUs (-sm layer -ts 1,1): tg128 47.8 -> 66.4 (+39%). DSpark (n_max 2, server): +18 to +19% from these pins. With all speed pins, output is bit-identical to the current pin set: root UD-IQ1_S, UD-Q4_K_XL and Mainline_Support UD-IQ1_S give the same PPL strings, mean KLD 0 and top-1 100%, on one GPU, on the decode path (-ub 1, -ub 4) and on a 2-GPU split.

Why

On Inkling 2 the banded kernel was gated to F16/BF16 K/V, so -ctk q8_0 -ctv q8_0 fell back to the dense path and reserved an extra F16 copy of K/V. A q8_0 cache then used more memory than F16. Separately, every banded layer took its own view of the full mask, and the scheduler copied each one.

Inkling-2-Mini, peak device memory (MiB), before -> after:

context compute buffer F16 KV peak q8_0 KV peak
32K 432 -> 184 9736 -> 9548 9152 -> 8964
128K 1248 -> 304 13572 -> 12780 11542 -> 10824
256K 2400 -> 560 18826 -> 16986 14876 -> 13528
1M 9312 -> 2096 50308 -> 43092 34838 -> 27628

q8_0 and q4_0 KV are now below F16 at every length, and quantized prefill is 1.5 to 2.3x faster at long context. Inkling-Small (Inkling 1) UD-IQ1_S at 32K with -ctk q8_0: peak 80430 -> 72984 MiB.

Upstream ggml-org#32669 (b12622)

ggml-org#32669 applies each weight's .scale tensor automatically and removes the scale arguments from build_moe_ffn / build_lora_mm_id. Fixes, each in the pin's own branch (merge b12622, keep upstream verbatim, re-apply only the pin's change):

No pin multiplies a .scale by hand after the matmul, and none registers a precision policy entry, so nothing is applied twice and no precision moves.

  • Sim b12617 to b12628: 34 pins, contract intact, merge_checks clean. CUDA verify b12618 / b12622 / b12627: test-backend-ops, test-chat and all 19 features pass.
  • Gates: Inkling-Small PPL 39.362699, KLD 0, top-1 100%, and DiffusionGemma output identical, across old head, new head and new head + master.
  • Inkling-2-Mini, root NVFP4 UD-Q4_K_XL and Mainline_Support UD-IQ1_S, new set vs old: KLD 0 and top-1 100% with full offload, --cpu-moe, -ub 1, -ub 4 and -sm layer -ts 1,1 on 2 GPUs.
  • DSpark n_max 2 / 3: accepted / drafted counts and greedy text identical to the old set on both files.
  • Stock upstream before and after ggml-org#32669 (no pins): Mainline_Support UD-IQ1_S gives the same PPL 8.4647, KLD 0.

DSpark pinned through #405

ggml-org#32218 was force-pushed again after this PR repinned it (head e4b1cb5), so 0a9105d is no longer one of its commits and the nightly would refuse it at "Resolve tag" the same way it refused 8ea4363.

Moving the pin to e4b1cb5 is not a drop-in change. The new head reads markov_w1 at the real vocab size (200058 rows) and removes the padded-vocab Inkling 2 path. The drafters published with unsloth/Inkling-2-Mini-GGUF (dspark-Inkling-2-Mini-Q8_0.gguf and the dspark/ copies) use the padded layout (201024 rows), and llama-server refuses them with the new head: tensor 'markov_w1.weight' has wrong shape; expected 256, 200058, got 256, 201024.

So the pin stays at 0a9105d, served from #405: that commit exactly, on its own base base/upstream-e50c254a2, with no changes. The merged tree is byte-for-byte the one verified below (same commit, same merge order). feature-checks.json keys the DSpark check as unslothai#405. The pin can move back to ggml-org#32218 once the drafters are re-exported for the newer upstream layout.

ggml-org#32218 repin

The squashed head moves the DSpark draft graph to on-device token selection and drops the conversion changes, which are now upstream. Its base e50c254 is 12 upstream commits past b12609 (15 past b12606), so the prebuilt carries that slice until the aged tag catches up; the sim and both verify runs below include it.

DSpark, llama-server, 4 prompts x 384 tokens, greedy, dspark-Inkling-2-Mini-Q8_0.gguf drafter, old pin vs new pin:

target n_max accepted / drafted (old) accepted / drafted (new) greedy text
UD-Q4_K_XL 2 807 / 1221 807 / 1221 identical
UD-Q4_K_XL 3 883 / 1577 883 / 1577 identical
UD-IQ1_S 2 802 / 1236 802 / 1236 identical
UD-IQ1_S 3 891 / 1597 891 / 1597 identical
Mainline_Support UD-IQ1_S 2 802 / 1236 802 / 1236 identical
Mainline_Support UD-IQ1_S 3 891 / 1597 891 / 1597 identical

Target model against the old build: PPL equal to the A/A rerun on all three files, mean KLD 0, same top-1 100%, also with -ub 1 and -ub 4; test-llama-archs inkling 8/8. verify --cuda on b12606 and b12609: merge clean (35 pins), pin_contract intact, CPU and GPU feature_matrix 19/19, test-backend-ops MUL_MAT 2861/2861, MUL_MAT_ID 1177/1177, PAD 37/37, GET_ROWS 361/361.

Accuracy

  • F16 path unchanged: Inkling-2-Mini wikitext -c 512 and -c 32768, head equals the base A/A rerun to every digit.
  • q8_0 / q4_0 KLD unchanged against the F16 reference (it sits on the accumulation-order floor of about 0.0027 for this model).
  • Inkling 1 numeric gate (Inkling-Small UD-IQ1_S): PPL 39.362699 identical, KLD 0, top-1 100%.

Per tag

b12606 (aged) b12609 (newest)
merge (35 pins) ok ok
pin_contract all intact all intact
merge_checks clean clean
CPU gate + feature_matrix ok, 19/19 ok, 19/19
CUDA build ok ok
test-chat pass pass
test-backend-ops MUL_MAT / MUL_MAT_ID / PAD / GET_ROWS 2829 / 1177 / 37 / 361 2829 / 1177 / 37 / 361
feature_matrix --gpu (with this PR's feature-checks.json) 22/22 22/22

Other platforms (KV repins)

Base (current pin set) and head built from the same simmed tree in the same job on each runner:

platform banded op base -> head FLASH_ATTN_EXT test-llama-archs verdict
HIP gfx1151, Linux ROCm 53 -> 71 ok, 0 fail 4370 ok both 435/435 both no regression
HIP gfx1151, Windows 11 53 -> 71 ok, 0 fail 4370 ok both 435/435 both no regression
CPU (ubuntu-24.04) reference 159/159 both no regression
Vulkan lavapipe unsupported both 5693 ok both 161/161 both no regression
Metal (macos-15) unsupported both runner has no FA 160/161 both (deepseek41 fails on both) no regression

Tiny head-size-128 Inkling 1 and Inkling 2 models: f16 PPL identical base vs head everywhere; on HIP and CPU, quantized KV moves from the dense to the banded path as intended; on Metal and Vulkan both arms stay dense and are bit-identical.

Not covered: Metal flash attention on a real Apple GPU, Vulkan on real hardware, -np > 1 with mixed-sequence ubatches (still dense), Inkling 1 with -ctk q4_0.

Audit: 34/34 pins clean.

Speed pins and the #386 dedupe, base vs head in the same job per runner: HIP gfx1151 Linux ROCm and Windows (CLIP_ROWS_FUSE 0 -> 16 OK and SITU_FUSE 0 -> 3 OK, so the fused kernels run and match CPU there; CONCAT, MUL, MUL_MAT 2829 and MUL_MAT_ID 1177 pass on both arms), Vulkan lavapipe, Metal (macos-15) and CPU: no regression; test-llama-archs and the tiny Inkling 2 perplexity are identical. The macos-15 runner reports MUL_MAT unsupported, so Metal matmul is not exercised (no Metal code changes).

#401 includes a fix from review: the fusion is declined when the FILL aliases the norm (ggml_fill_inplace) or a per-row limit is one of the chain's intermediates; the new in-place cases fail on the previous head and pass now (CLIP_ROWS_FUSE 18/18).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-22T15:49:33.100777Z 40a4385 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen danielhanchen changed the title pr-set : repin unslothai#378 and #386 for quantized K/V banded attention and a shared banded mask pr-set : quantized K/V banded attention for Inkling, the Inkling 2 graph dedupe and three CUDA speed pins Nov 22, 2026
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: cd9ef9e8e0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The PR was force-pushed onto upstream e50c254 and the pinned commit
8ea4363 is no longer in it, so the nightly refused the pin.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 7d972e5fd3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

ggml-org#32669 applies the .scale tensors in build_lora_mm and
build_lora_mm_id and removes the build_moe_ffn scale arguments.

- #378, #386: merge b12622, keep the explicit precision after
  prec_policy.apply in build_lora_mm (llama-graph.cpp conflict).
- ggml-org#24423: merge b12622, drop the scale arguments from the
  DiffusionGemma build_moe_ffn call as upstream did for gemma4.
- #396: merge b12622, give the per-visit host weight views their
  weight scales (inkling2_loop with --cpu-moe lost them: KLD 2.96).
- ggml-org#32704: upstream squash 690b87d is in b12611; drop the pin
  and its feature-checks.json entry.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 762fc3f266

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 40a4385163

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit cfc9ea3 into master Nov 22, 2026
danielhanchen added a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Nov 22, 2026
…ns (unslothai#18919)

## Summary

Fixes unslothai#18833.

Studio's Inkling 2 memory estimate sent every quantized KV cache to the
dense relative-bias fallback, which costs about 99 KiB per context token
at ubatch 512. That made q8_0 and q4_0 look far larger than f16. The
llama.cpp build Studio ships today really does fall back to dense, but
unslothai/llama.cpp#399 (#378 / #386 repinned) runs q8_0 / q4_0 K/V on
the banded path and shares one banded mask per graph. This PR prices
each cache type by what the installed llama.cpp does.

Changes:

1. **Build probe.** `LlamaCppBackend.inkling2_banded_support(binary)`
reports the ggml GPU backend and whether the build runs quantized K/V on
the banded path. A #399 build is recognised by the q8_0 instantiation of
the banded kernel (`flash_attn_ext_banded...ggml_type8E`) in
libggml-cuda or libggml-hip. That is the kernel registration string, so
it survives `strip` and has the same name on every OS. The probe runs at
load for Inkling 2 only. The estimate routes resolve it lazily against
the installed build, and the result is cached per (path, mtime, size).
2. **Estimate per backend and build:**
- #399 build on CUDA: q8_0 / q4_0 price like f16 (the kernel dequantizes
in the tile) when every visible card is Turing or newer. The in-tile
path is the banded MMA kernel, gated on `turing_mma_available` (sm_75,
by the highest arch the bundle compiled for the card). Pascal / Volta
cards and unknown compute capability are charged the f16 K/V copy, about
1 GiB at 256K on Inkling-2-Mini.
- #399 build on HIP, and for q4_1 / q5_0 / q5_1: banded plus the f16 K/V
copy the kernel reads.
   - iq4_nl has no f16 converter, so it stays dense.
- Metal, Vulkan and SYCL have no banded kernel, so every cache type, f16
included, takes the dense estimate.
- Old builds and unknown builds keep today's dense estimate for
quantized caches.
3. **Runtime regrowth.** After the first micro-batches the banded
compute buffer grows past the reserve llama.cpp sizes at load, on both
builds. The estimate is now the larger of the reserve and the regrown
size:
- old builds: reserve 18 bytes per cell per ub token; regrown 15 bytes
per cell plus 800 KiB per ub token;
- #399 builds: reserve 4 bytes per cell per ub token (the shared mask
sized at load); regrown 2 bytes per cell plus 1200 KiB per ub token. The
reserve leads above about 600K cells.

## Measurements

Setup: Inkling-2-Mini UD-IQ1_S, B200, `-np 4 --kv-unified -fa on -b 2048
--fit off`, slot 0 filled to 0.9 n_ctx.
- Old = the shipped Inkling KV pins (b12602 tree, #378 e65c374cb, #386
242a5d8f9).
- New = the #399 pin set (b12628 tree).
- Runtime compute is the CUDA0 compute buffer at exit.
- Estimate totals = weights file + Studio KV + Studio compute + the 320
MiB CUDA context reserve. They are not the planner's full budget, which
also keeps a 3% margin. The 150 to 270 MiB left between them and the
measured process peak is the CUDA context on this card.

ubatch 1024 (Studio's micro-batch for an all-GPU Inkling 2 load):

| build | context | KV | measured peak MiB | runtime compute MiB |
estimate compute, main / PR | estimate total, main / PR |
|---|---|---|---|---|---|---|
| new | 32K | f16 | 11432 | 1594 | 1042 / 1730 | 10590 / 11278 |
| new | 32K | q8_0 | 10582 | 1594 | 6706 / 1730 | 15399 / 10423 |
| new | 32K | q4_0 | 10126 | 1594 | 6706 / 1730 | 14943 / 9967 |
| new | 128K | f16 | 14676 | 1768 | 2770 / 1922 | 15390 / 14542 |
| new | 128K | q8_0 | 12388 | 1768 | 25714 / 1922 | 36039 / 12247 |
| new | 128K | q4_0 | 11140 | 1768 | 25714 / 1922 | 34815 / 11023 |
| new | 256K | f16 | 19044 | 2052 | 5074 / 2178 | 21790 / 18894 |
| new | 256K | q8_0 | 14848 | 2052 | 51058 / 2178 | 63559 / 14679 |
| new | 256K | q4_0 | 12600 | 2052 | 51058 / 2178 | 61311 / 12431 |
| old | 32K | f16 | 11566 | 1722 | 1042 / 1746 | 10590 / 11294 |
| old | 32K | q8_0 | 13588 | dense | 6706 / 6706 | 15399 / 15399 |
| old | 128K | f16 | 16006 | 3093 | 2770 / 3186 | 15390 / 15806 |
| old | 128K | q8_0 | 20022 | dense | 25714 / 25714 | 36039 / 36039 |
| old | 256K | f16 | 22064 | reserve | 5074 / 5106 | 21790 / 21822 |
| old | 256K | q8_0 | 30498 | dense | 51058 / 51058 | 63559 / 63559 |

Long context on the #399 build. Slot 0 was filled to only 0.125 n_ctx,
so these are the load-time reserves:

| ubatch | context | KV | measured peak MiB | reserve compute MiB |
estimate compute, PR |
|---|---|---|---|---|---|
| 512 | 512K | f16 | 26172 | 1078 | 1322 |
| 512 | 1M | f16 | 43580 | 2102 | 2258 |
| 1024 | 1M | f16 | 45784 | 4206 | 4562 |

The 2 bytes per cell rate alone would price the ubatch 512 1M row at
1831 MiB, below the 2102 MiB llama.cpp reserves.

ubatch 512:

| build | context | KV | measured peak MiB | runtime compute MiB |
estimate compute, main / PR |
|---|---|---|---|---|---|
| new | 32K | f16 | 10490 | 748 | 498 / 842 |
| new | 32K | q8_0 | 9678 | 748 | 3354 / 842 |
| new | 128K | f16 | 13646 | 837 | 1362 / 938 |
| new | 128K | q8_0 | 11394 | 837 | 12858 / 938 |
| old | 32K | f16 | 10560 | 812 | 498 / 850 |
| old | 128K | f16 | 14278 | 1497 | 1362 / 1570 |

What the tables show:
- On a #399 build q8_0 / q4_0 are now below f16 at every context, as
measured.
- On the shipped build the q8_0 estimate is unchanged. It stays above
f16 because that build really allocates the dense bias.
- main under-priced the f16 runtime compute by up to 680 MiB at 32K. The
PR estimate is at or above the measured runtime buffer in every row.

Auto context that Studio's own planner picks for the unslothai#18757 case (24122
MiB card, 23857 MiB free, UD-IQ4_XS + mmproj, 4 slots, ngram-mod), main
-> PR:

| binary | f16 | q8_0 |
|---|---|---|
| shipped pins (b12602) | 162048 -> 157952 | 60416 -> 60416 |
| #399 (b12628) | 162048 -> 182784 | 60416 -> 354304 |

For the unslothai#18757 case: at Studio's argv with the free memory capped to
23857 MiB (CUDA MPS limit), the #399 build at Auto 184320 filled slot 0
to 171.7K tokens with no OOM. Runtime compute was 990 MiB, against a PR
estimate of about 1040 MiB.

## Tests

- New `studio/backend/tests/test_inkling2_banded_quant_kv.py`, 60 tests.
It covers:
  - old and unknown builds keep the dense q8_0 / q4_0 estimate;
- on a #399 CUDA build q8_0 / q4_0 total below f16 at 32K / 128K / 256K;
  - Metal / Vulkan / SYCL price dense;
  - the HIP f16 copy, the types without an in-tile dequant, and iq4_nl;
  - the runtime buffer table above;
  - the long-context reserve rows above;
- the in-tile dequant gate by compute capability (Turing+, Pascal,
Volta, mixed cards, unknown, a PTX-only bundle);
- the library probe (new / old CUDA, HIP, Vulkan, Metal, static build,
missing binary);
  - lazy resolution of the installed build.
- `test_compute_buffer.py`: the existing Inkling 2 banded table is the
load-time reserve, so its upper bound now allows the regrowth term.
- `test_inkling2_banded_quant_kv.py`, `test_compute_buffer.py`,
`test_llama_cpp_gpu_oom_respawn.py` and `test_cuda_sm_gate.py` on this
branch: 402 passed. One teardown error in
`test_mixed_cards_keep_their_own_margins_plus_the_headroom` (a CUDA
device probe in the fixture on this host) happens on main as well.

## Not covered

- Real Metal, Vulkan and ROCm hardware. The dense / banded choice there
follows the llama.cpp sources and the #399 cross-platform runs.
- Real pre-Turing NVIDIA hardware. The f16 copy charge there follows the
llama.cpp source.
- A CPU-only build is priced like the shipped build, because no GPU
library carries the marker.
- Inkling 1 is unchanged. #399 only moves a quantized K with an f16 V
there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant