Repository navigation
cuda: add PTQ1_0 support - #29676
Open
bri-prism wants to merge 5 commits into
Open
cuda: add PTQ1_0 support#29676bri-prism wants to merge 5 commits into
bri-prism wants to merge 5 commits into
Conversation
bri-prism
marked this pull request as ready for review
October 14, 2026 17:54
|
Thanks for doing this, hoping to see a PQ2_0 as well, I built and tried it out, hopefully these tests and log excerpts for compiler warnings are useful to you. Here are the test results for the commands from the OP for a NVIDIA GeForce GTX 1070 sm_61 with CUDA 12.9: Test resultsCan you rebase, got a merge conflict with master: ggml/src/ggml-cpu/arch-fallback.h So I just built the PR branch straight, got a couple build warnings for Build warningsHere is my cmake step so you can see my cuda toolchain, compiler, and other environmental parameters: Cmake configure |
bri-prism
force-pushed
the
ptq1_0-cuda
branch
from
October 28, 2026 18:05
a294e8d to
11b94c3
Compare
Preserve the published 128-element, 28-byte codec contract on upstream 5a4afd8. Add CPU byte, CLI and GGUF compatibility coverage. Model-level quality and performance acceptance remains pending. Assisted-by: Claude Code and Codex
bri-prism
force-pushed
the
ptq1_0-cuda
branch
from
November 15, 2026 07:58
11b94c3 to
99d0df9
Compare
Document the existing group-128 packing and CLI option without changing published names or IDs. Verify actual CLI shape fallbacks to Q4_0/F16 and COPY payload preservation. Assisted-by: Codex
Assisted-by: Claude Code
Assisted-by: Codex
Use the linked CPU dequantizer rather than a second copied traversal. This is a host-side accessor replica check and does not claim native CUDA execution. Assisted-by: Codex
bri-prism
force-pushed
the
ptq1_0-cuda
branch
from
November 15, 2026 08:44
99d0df9 to
8f0f0ea
Compare
This branch has not been deployed
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.
Add PTQ1_0 CUDA dequantization, row access, matrix-vector and MMQ support. Depends on #29672; the first two commits are the rebased codec and its quantizer documentation/CLI regressions, followed by the CUDA implementation, compile repair and host mapping test update. The CUDA delta changes 15 files.
Rebased onto codec
fd6d992c2a153bd3f561f348a4701955b0dd39ac(upstream base5a4afd80779ba51166b59986e61a0bfbb9e1a4c6). Fixedmul_mat_q_caseinstantiation to supplyGGML_PREC_Q8, matching the current two-parameter template. The original head fails offline compilation with the missing-template-argument error; the repaired and rebased translation unit passes.Fresh validation (CUDA toolkit 12.8.61, explicit targets, offline compilation only):
mmq.cufor sm_89;mmvq.cu,convert.cu,getrows.cuandggml-cuda.cufor sm_80. Rebasedmmq.cualso passes sm_80 separately. This is not a full CUDA backend link or device run.Follow-up to the Pascal build-warning report: offline
mmvq.cucompilation for sm_61 passes with--diag-error=128(unreachable-loop warnings treated as errors). This used Linux/CUDA 12.8.61; the reported Windows/CUDA 12.9 warning is not reproduced or claimed fixed. No warning suppression or unrelated MSVC narrowing changes were added. CUDA production code is byte-identical to the previous validated head; this restack only adds the codec documentation/CLI tests.The original PR reported backend passes on A100, RTX 4090 and Blackwell. Those historical results have not been rerun on this rebased head. Native numerical correctness, fallback behavior, persistent memory, real-model kernel traces and matched throughput remain unverified for this update. No GPU, GPU job or GPU CI was started.
[skip ci]prevents ordinary CI from starting automatically.AI assistance: original development used Claude Code; Codex assisted the scoped rebase, precision fix and host-side validation.