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
KVarN exact-tail: fail-closed GGML_ABORT on unsupported structured body instead of materialization fallback #158
ggml/src/ggml-cuda/fattn-tail.cuh:713 aborts the process ("unsupported structured body in exact-tail attention") when the exact-tail path packs a body whose structured form uses views and the KVarN re-dispatch of the packed body fails. Aborting instead of degrading to the materialized route is the issue; filed separately per review request on PR #149.
Suggestion: where the packed body is unsupported, degrade to materialization rather than GGML_ABORT. Keeping this open for the maintainer to decide whether the remaining risk warrants the fallback or the issue can close with the PR.
Validated the fix on gfx1100 (RX 7900 XTX, Windows, therock SDK 7.14.1), build 11837 (f792091). Reproducer from the issue passes on both geometries: GGML_KVARN_TEST_NKV_LADDER_ONLY=1 with GGML_KVARN_TEST_LADDER_TAIL=128 and 256, D128/256/512 x n_kv 256..8192, exit 0 throughout (D512 RMSE ~1e-5 at 8k). No abort, no fallback warnings surfaced in this geometry. Bench + KLD vs pre-fix bases unchanged (kvarn5 pp32768 within noise, KLD 0.000%/100%). Closing as solved on my side.
Activity
Anbeeld commentedon Sep 12, 2026
Pushed a fix into v0.4.7 branch, please try it.
raufaser commentedon Sep 13, 2026
Validated the fix on gfx1100 (RX 7900 XTX, Windows, therock SDK 7.14.1), build 11837 (f792091). Reproducer from the issue passes on both geometries: GGML_KVARN_TEST_NKV_LADDER_ONLY=1 with GGML_KVARN_TEST_LADDER_TAIL=128 and 256, D128/256/512 x n_kv 256..8192, exit 0 throughout (D512 RMSE ~1e-5 at 8k). No abort, no fallback warnings surfaced in this geometry. Bench + KLD vs pre-fix bases unchanged (kvarn5 pp32768 within noise, KLD 0.000%/100%). Closing as solved on my side.