[WIP] Custom iq4_xs vulkan kernel - #28417
Closed
pwomser wants to merge 3 commits into
Closed
Conversation
Author
|
Closing in favor of #28426 |
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.
Overview
This PR adds a custom kernel for the IQ4_XS quantization that increases token generation on
unsloth/Qwen3.8-27B-UD-Q3_K_XLfrom ~36 t/s to ~37.2 t/s on my machine. The initial version was created by ShinkaEvolve with Qwen3.8-27b as LLM for the evolution and then reviewed and cleaned up by me.Additional information
Benchmark on
unsloth/Qwen3.8-27B-UD-Q3_K_XL(IQ4_XS takes up ~40% of total compute on that model) on my RX 9070 XT (radv):./build/bin/llama-bench -m Qwen3.8-27B-UD-Q3_K_XL.gguf -ngl 99 -fa on -n 3 -r 4096 -p 0Old:
New:
Perplexity on
wikitext-2-rawdidn't change:lama-perplexity -m Qwen3.8-27B-UD-Q3_K_XL.gguf -c 512 --chunks 30 -ngl 99 --seed 1234:Requirements