Add XPU SYCL GGUF ops for dequantize and A8 matmul#1
Draft
zhenwei-intel with Copilot wants to merge 5 commits into
Draft
Add XPU SYCL GGUF ops for dequantize and A8 matmul#1zhenwei-intel with Copilot wants to merge 5 commits into
zhenwei-intel with Copilot wants to merge 5 commits into
Conversation
Co-authored-by: zhenwei-intel <109187816+zhenwei-intel@users.noreply.github.com>
Co-authored-by: zhenwei-intel <109187816+zhenwei-intel@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add basic XPU GGUF operators including dequantize and multiplication
Add XPU GGUF compatibility ops for dequantize and A8 matmul
Mar 14, 2026
Owner
|
@copilot 参考fp8_quant.cpp的实现,要用sycl kernel实现 |
Co-authored-by: zhenwei-intel <109187816+zhenwei-intel@users.noreply.github.com>
Co-authored-by: zhenwei-intel <109187816+zhenwei-intel@users.noreply.github.com>
Author
Copilot
AI
changed the title
Add XPU GGUF compatibility ops for dequantize and A8 matmul
Add XPU SYCL GGUF ops for dequantize and A8 matmul
Mar 14, 2026
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.
This PR adds the minimum GGUF/XPU operator surface needed to cover
ggml_dequantize,ggml_mul_mat_vec_a8, andggml_mul_mat_a8. The implementation now provides these operators through the native_Cextension using a SYCL kernel path aligned with the existing XPU kernel style in this repository.What changed
ggml_dequantizeggml_mul_mat_vec_a8ggml_mul_mat_a8vllm_xpu_kernelsand exposed them through the test op registry._Cextension build and torch bindings.Implementation
csrc/gguf.cpp._Cextension declarations and registrations in:csrc/ops.hcsrc/torch_bindings.cppCMakeLists.txtvllm_xpu_kernels/gguf_interface.pyas a thin Python wrapper over the registered native ops.Q4_0Q8_0Dependency surface
ggufruntime dependency fromrequirements.txt, since the operator path is now implemented natively in the extension.Focused coverage
Q4_0/Q8_0reference constructionExample usage:
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.