mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #34] What are the requirements for the CPU instruction set? #20
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qwased on GitHub (Sep 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/34
Among AVX2, AVX512, and AVX-VNNI, which of these would be helpful? My CPU is a 13600KF.
Thanks!
@pipeob0 commented on GitHub (Sep 28, 2026):
Measured answer, on a CPU with AVX2 and no AVX-512 (Ryzen 7 5700X3D, 8 cores, DDR4-2666) running a
native pack — so the AVX2 case is the interesting one here:
iq_avx512.cppis chosen atrun time when present; the canonical Q2_0 pack does need it).
ggml_vec_dot_iq*_q8_K, which decodes a row once per token. With--spec 4a verify window is 3-4tokens over the same rows, so an AVX2 machine was decoding the same weights 3-4 times for nothing.
throughput 22.7 → 23.8 GB/s, whole round 50.89 → 48.52 ms/round (-4.7%), parity against ggml's own
vec_dotat rel 3.1e-08. Two other things that mattered on AVX2-only: the expert arena never actually gotlarge pages (#42), and
pcie_fracassumed a x16 link while AM4/AM5 boards give a 16 GB card x8 (#44).Rough ranking on a native pack, from what we measured: AVX2 (works, and works well with #43) → AVX-512
(better, the existing
iq_avx512path) → AVX-VNNI (unused). The instruction set is not the whole story: onthis machine the CPU expert pool now sits close to what dual-channel DDR4-2666 can stream, so after #43 the
next bottleneck is memory bandwidth rather than the decoder.
@Niko1221 commented on GitHub (Sep 28, 2026):
Thanks @pipeob0 for the measurements - that corrects my first answer. For the packs setup installs (native packs, including Q2_0):