Repository navigation
vulkan: add iq4_nl support back to FA - #24585
Conversation
|
I think it would make more sense to remove q1_0 instead of expanding it. Is there any valid use of that? |
Bonsai (and @Green-Sky KV-experiments). :) |
|
I know about Bonsai, but I mean specifically for KV. |
|
|
My conclusion was that its not really useful, beside showing that the bit per weight perplexity ceiling is surprisingly low with the rotation stuff. :) |
|
I would prefer to remove it (as in its FA support), instead of adding more support on top, but it's not a strong opinion. Sorry for the delay. |
I was originally concerned about wasting shared memory on the LUT, but it's small and unlikely to matter in practice. Also support q1_0 for non-coopmat2. Fixes ggml-org#23681
|
I've removed q1_0 support for FA in ggml-vulkan. |
0cc4m
left a comment
There was a problem hiding this comment.
This is fine, my only concern is increasing shmem use for the other types, some instances of the shader are already using too much IIRC.
…iq4_nl fix) iq4_nl has no native FA shader on the scalar/coopmat1 paths: the FaTypeK/ FaTypeV spec constants select dequant code that silently reads garbage for types outside the native list, which is how the iq4_nl+sinks FLASH_ATTN_EXT failures (ERR=inf) escaped - supports_op admitted iq4_nl under conditions the dispatch-time gate could then reject, falling back to the garbage- reading native shader. Introduce ggml_vk_fa_kv_native() as the single source of truth for which K/V types the FA shaders read directly, force the dequant-once path for non-native types (bypassing only the VRAM heuristic, never the hard gates), mirror every hard gate in supports_op so dispatch and admission agree, and assert the invariant at dispatch. Extracted from the iq4_nl+sinks investigation (separate session); its test cases land with that work. Split out of a mixed commit so this change and the f16 contiguize default flip are independently cherry-pickable; note upstream 8161641 "vulkan: add iq4_nl support back to FA (ggml-org#24585)" touches the same area and must be reconciled before any upstream submission. Co-Authored-By: Claude Fable 5 <[email protected]>
* vulkan: add iq4_nl support back to FA I was originally concerned about wasting shared memory on the LUT, but it's small and unlikely to matter in practice. Also support q1_0 for non-coopmat2. Fixes ggml-org#23681 * remove q1_0 FA support
* vulkan: add iq4_nl support back to FA I was originally concerned about wasting shared memory on the LUT, but it's small and unlikely to matter in practice. Also support q1_0 for non-coopmat2. Fixes ggml-org#23681 * remove q1_0 FA support
* vulkan: add iq4_nl support back to FA I was originally concerned about wasting shared memory on the LUT, but it's small and unlikely to matter in practice. Also support q1_0 for non-coopmat2. Fixes ggml-org#23681 * remove q1_0 FA support
* vulkan: add iq4_nl support back to FA I was originally concerned about wasting shared memory on the LUT, but it's small and unlikely to matter in practice. Also support q1_0 for non-coopmat2. Fixes ggml-org#23681 * remove q1_0 FA support
Overview
I was originally concerned about wasting shared memory on the LUT, but it's small and unlikely to matter in practice.
Also support q1_0 for non-coopmat2.Removed q1_0 FA support.Fixes #23681
Requirements