[PR #2750] [CLOSED] kq_cpu_bench: quantize i-quant blobs with ggml_quantize_chunk (it crashed on them); KQ_PHASE=gu|down #4240

Closed
opened 2026-11-07 15:34:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2750
Author: @aslater3
Created: 10/16/2026
Status: ❌ Closed

Base: main ← Head: a770/up-kq-bench-iq


📝 Commits (1)

  • c5d194e kq_cpu_bench: quantize i-quant blobs with ggml_quantize_chunk (it crashed on them); KQ_PHASE=gu|down

📊 Changes

1 file changed (+12 additions, -8 deletions)

View changed files

📝 src/kernels/cpu/kq_cpu_bench.cpp (+12 -8)

📄 Description

kq_cpu_bench: i-quant blobs via ggml_quantize_chunk (it crashed on them); KQ_PHASE=gu|down

kq_cpu_bench builds its random experts with the CPU type traits' from_float, which is null for the i-quants. With
--pairs iq2_s/iq4_nl (or any IQ gate/up type) it segfaulted on the first pair, through a null function pointer, before
printing a number. gdb: #0 0x0000000000000000 in ?? (), #1 main ().

  • make_blob now uses ggml_quantize_chunk, which quantizes every type. These i-quants need no importance matrix.
  • KQ_PHASE=gu or down times only that half of each expert, and prints its GB/s over that half's bytes.

Measured on a Ryzen 7 3800X (Zen 2, AVX2), 1 thread, 512 MB of blobs, 1 token:

Format Gate/up only Down only
IQ2_S 4.3 GB/s -
IQ3_XXS 3.9 GB/s -
IQ3_S 4.0 GB/s -
IQ4_NL - 9.9 GB/s

The bench's other pairs and its default output are unchanged.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2750 **Author:** [@aslater3](https://github.com/aslater3) **Created:** 10/16/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `a770/up-kq-bench-iq` --- ### 📝 Commits (1) - [`c5d194e`](https://github.com/Niko1221/Strata/commit/c5d194e0d79ba7ec44a2dfaa856066d1a08bf979) kq_cpu_bench: quantize i-quant blobs with ggml_quantize_chunk (it crashed on them); KQ_PHASE=gu|down ### 📊 Changes **1 file changed** (+12 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/kernels/cpu/kq_cpu_bench.cpp` (+12 -8) </details> ### 📄 Description ## kq_cpu_bench: i-quant blobs via ggml_quantize_chunk (it crashed on them); KQ_PHASE=gu|down `kq_cpu_bench` builds its random experts with the CPU type traits' `from_float`, which is null for the i-quants. With `--pairs iq2_s/iq4_nl` (or any IQ gate/up type) it segfaulted on the first pair, through a null function pointer, before printing a number. `gdb`: `#0 0x0000000000000000 in ?? ()`, `#1 main ()`. - `make_blob` now uses `ggml_quantize_chunk`, which quantizes every type. These i-quants need no importance matrix. - `KQ_PHASE=gu` or `down` times only that half of each expert, and prints its GB/s over that half's bytes. Measured on a Ryzen 7 3800X (Zen 2, AVX2), 1 thread, 512 MB of blobs, 1 token: | Format | Gate/up only | Down only | | --- | ---: | ---: | | IQ2_S | 4.3 GB/s | - | | IQ3_XXS | 3.9 GB/s | - | | IQ3_S | 4.0 GB/s | - | | IQ4_NL | - | 9.9 GB/s | The bench's other pairs and its default output are unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:34:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4240
No description provided.