Skip to content

opencl: add basic support for q5_0 and q5_1 - #23548

Merged
lhez merged 3 commits into
ggml-org:masterfrom
qualcomm:sq/opencl-q5_0-q5_1-general
Jun 1, 2026
Merged

opencl: add basic support for q5_0 and q5_1#23548
lhez merged 3 commits into
ggml-org:masterfrom
qualcomm:sq/opencl-q5_0-q5_1-general

Conversation

@shaofeiqi

Copy link
Copy Markdown
Contributor

Overview

This PR adds basic support for Q5_0 and Q5_1 quantization on GPU. With this change, Q5_0 and Q5_1 operations remain on the GPU instead of falling back to the CPU.

This is a general implementation. A follow‑up PR will introduce a more optimized, Adreno‑specific implementation.

Requirements

@github-actions github-actions Bot added ggml changes relating to the ggml tensor library for machine learning OpenCL Issues specific to the OpenCL backend labels May 22, 2026
@shaofeiqi
shaofeiqi marked this pull request as ready for review May 27, 2026 23:01
@shaofeiqi
shaofeiqi requested a review from a team as a code owner May 27, 2026 23:01
@lhez
lhez force-pushed the sq/opencl-q5_0-q5_1-general branch from b9b3f10 to 4676885 Compare June 1, 2026 05:44
@lhez
lhez requested a review from max-krasnyansky June 1, 2026 05:52
@lhez
lhez merged commit 27d9ed8 into ggml-org:master Jun 1, 2026
35 of 39 checks passed
DFveloper pushed a commit to DFveloper/aikar-engine that referenced this pull request Jun 2, 2026
* opencl: add general q5_0 support

* opencl: add general q5_1 support

* opencl: support non-uniform workgrp size

---------

Co-authored-by: Li He <lih@qti.qualcomm.com>
jimbothigpen pushed a commit to jimbothigpen/llama.cpp that referenced this pull request Jun 6, 2026
* opencl: add general q5_0 support

* opencl: add general q5_1 support

* opencl: support non-uniform workgrp size

---------

Co-authored-by: Li He <lih@qti.qualcomm.com>
(cherry picked from commit 27d9ed8)
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Jul 3, 2026
* opencl: add general q5_0 support

* opencl: add general q5_1 support

* opencl: support non-uniform workgrp size

---------

Co-authored-by: Li He <lih@qti.qualcomm.com>
adrianhoehne pushed a commit to adrianhoehne/llama.cpp that referenced this pull request Jul 5, 2026
* opencl: add general q5_0 support

* opencl: add general q5_1 support

* opencl: support non-uniform workgrp size

---------

Co-authored-by: Li He <lih@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning OpenCL Issues specific to the OpenCL backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants