abetlen / abetlen/llama-cpp-python

GPU Support Missing in Version >=0.3.5 on Windows with CUDA 12.4 and RTX 3090

Open
#1,967 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
10.6k
Forks
1.4k
PR merge metrics
PR metrics pending

Description

Issue Description:

I'm experiencing a discrepancy between version 0.3.4 and later versions (>=0.3.5) regarding GPU utilization:

Version 0.3.4 (Prebuilt Wheel):
The prebuilt wheel for 0.3.4 loads the model onto the GPU; however, it's not compatible with phi4.

Version >=0.3.5:
There are no prebuilt wheels available for these versions, and when building from source, only the CPU is being used—the model does not load onto the GPU.

System Details:

Operating System: Windows 11
CUDA Version: 12.4
GPU: RTX 3090 24GB
Steps Taken:

Installed version 0.3.4 via the prebuilt wheel – confirmed GPU loading (but phi4 incompatibility remains).
Upgraded to version 0.3.5 (and above) by building from source with CUDA support enabled.
Verified that the build settings include -DGGML_CUDA=on and confirmed that the system has CUDA 12.4 installed.
Despite these configurations, the build defaults to CPU usage, and the model never loads onto the GPU.
Could you please advise on whether this is an expected behavior for versions >=0.3.5, or if there might be an issue with GPU detection/configuration on Windows 11 with CUDA 12.4? Any guidance or troubleshooting steps to enable GPU support for these versions would be greatly appreciated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.