Repository navigation
ggml: indexed bias F16 table + offset; inkling2: no padded bias table - #136
Merged
Merged
Conversation
…: sink logits as the offset, no padded table Assisted-by: Claude Opus 5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #135.
ggml_flash_attn_ext_add_indexed_bias_offset(a, offset, scale)adds scale*offset[head, query] to the bias of every key, and with an offset the index n_bins selects no table entry. CPU reference and CUDA/HIP vec + tile kernels; other backends keep rejecting the indexed biasRX 7900 XT, Inkling-2-Mini UD-Q3_K_XL: tg128 47.0 -> 47.9 t/s, decode kernels per token 3173 -> 3111 (no pad kernels). KL vs the build before #132: 0.0023 (noise floor 0.0023), -nkvo fallback 0.0025. FLASH_ATTN_EXT 4586/4586 on ROCm0 vs CPU. Peak VRAM at long context is unchanged: it is set by the mask and index inputs, not by the table.
Assisted-by: Claude Opus 5.5