You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Engine] pool_determinism fails for Q4_K gate/up rows on an AVX2-only CPU since 4414c2988 (the rows differ from run to run) #6754
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
ctest on current main fails pool_determinism and pool_determinism_dep_off with "gate/up rows differ". The test prints the first failures and folds the rest into summary lines without the format numbers, so I ran the pairs one at a time with --type: only Q4_K as the gate/up format fails, whatever the down format.
--type G,D (reps 5)
result
12,2 (Q4_K / Q4_0)
FAIL, 12-16 of ~160-180 checks (the count changes from run to run)
12,6 / 12,8 / 12,12
FAIL (14 / 16 / 14)
2,12 and 21,12 (Q4_K as down)
PASS
gate/up 2, 3, 6, 7, 8, 10, 11, 13, 14, 16-23, 40, 42 with down 2
PASS, 0 failures
So Q5_K, Q6_K, Q8_0, IQ4_XS, IQ3_XXS and IQ3_S, which the same commit also changed, pass as gate/up here. The full run's output:
One of the failing checks is threads 1, so it is not only the multi-thread row split.
I bisected it with pool_determinism --reps 20 (the ctest arguments) between 6e38f58 (passes: 124656 checks, 0 failures) and 94e1fc4 (fails: 222 failures). No commit was skipped; each bad commit's full run reported 222 failures. First bad commit: 4414c29 "Optimize Unsloth CPU SIMD quant kernels and all-tier VRAM/RAM planning", which changes engine/src/quant/x86/dot_avx2.cpp (+581) among others. Its parent bbced6d passes.
I have not looked for the cause inside the kernel.
The output above is the whole failing part of pool_determinism --reps 20 at 4414c29 and at 94e1fc4; 222 failures at both. The single-pair runs above are at 4414c29.
Activity