Skip to content

Compile bug: CUDA 13.2 breaks some quants (IQ3_S) #21255

Description

@erazortt

Git commit

git rev-parse HEAD
8845816

This is the current master, however I have tried also tags one month back.

Operating systems

Windows

GGML backends

CUDA

Problem description & steps to reproduce

When building from source I have one specific quant of a model which completly breaks down, when building the same tags as the official builds. The really weird thing is that I have that same model in another quant and this does not break. The difference in the two quants am using is that one has the ffn_down quantized as IQ3_XXS (this one works) and the other has them quantized as IQ3_S (this one breaks). Both models have been quantized identically, apart from this difference.

I have started off using just the default flags:

cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release

but then I moved to what appears to me is used in the official build in https://github.com/ggml-org/llama.cpp/tree/master/.github/workflows/build.yml:

-DLLAMA_BUILD_SERVER=ON ^
            -DLLAMA_BUILD_BORINGSSL=ON ^
            -DGGML_NATIVE=OFF ^
            -DGGML_BACKEND_DL=ON ^
            -DGGML_CPU_ALL_VARIANTS=ON ^
            -DGGML_CUDA=ON ^
            -DGGML_RPC=ON ^
            -DGGML_CUDA_CUB_3DOT2=ON

This however has not changed anything. So to sum up, CUDA 13.2 somehow breaks IQ3_S.

First Bad Commit

No response

Compile command

cmake -B build -DGGML_CUDA=ON
cmake --build build --config Release

Relevant log output

I have nothing usefull to share here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions