Skip to content

Can't use GPU: could not select device driver "nvidia" with capabilities: [[gpu]] #150

@ProgrammingLife

Description

@ProgrammingLife

I've successfully use my RTX 3080ti with Stable Diffusion, Fooocus, Stable Cascade and my system is ready to work with GPU.
Arch Linux.

$ ./run.sh --model 7b --with-cuda
...
 ✔ Container llama-gpt-llama-gpt-ui-1             Recreated                                                                                                                      0.3s 
 ✔ Container llama-gpt-llama-gpt-api-cuda-ggml-1  Recreated                                                                                                                      0.3s 
Attaching to llama-gpt-api-cuda-ggml-1, llama-gpt-ui-1
llama-gpt-ui-1             | [INFO  wait] --------------------------------------------------------
llama-gpt-ui-1             | [INFO  wait]  docker-compose-wait 2.12.1
llama-gpt-ui-1             | [INFO  wait] ---------------------------
llama-gpt-ui-1             | [DEBUG wait] Starting with configuration:
llama-gpt-ui-1             | [DEBUG wait]  - Hosts to be waiting for: [llama-gpt-api-cuda-ggml:8000]
llama-gpt-ui-1             | [DEBUG wait]  - Paths to be waiting for: []
llama-gpt-ui-1             | [DEBUG wait]  - Timeout before failure: 3600 seconds 
llama-gpt-ui-1             | [DEBUG wait]  - TCP connection timeout before retry: 5 seconds 
llama-gpt-ui-1             | [DEBUG wait]  - Sleeping time before checking for hosts/paths availability: 0 seconds
llama-gpt-ui-1             | [DEBUG wait]  - Sleeping time once all hosts/paths are available: 0 seconds
llama-gpt-ui-1             | [DEBUG wait]  - Sleeping time between retries: 1 seconds
llama-gpt-ui-1             | [DEBUG wait] --------------------------------------------------------
llama-gpt-ui-1             | [INFO  wait] Checking availability of host [llama-gpt-api-cuda-ggml:8000]
Error response from daemon: could not select device driver "nvidia" with capabilities: [[gpu]]
Gracefully stopping... (press Ctrl+C again to force)

$ nvidia-smi
Sat Feb 24 17:49:50 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06              Driver Version: 545.29.06    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3080 ...    Off | 00000000:01:00.0 Off |                  N/A |
| N/A   36C    P8              10W / 125W |     10MiB / 16384MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      2044      G   /usr/lib/Xorg                                 4MiB |
+---------------------------------------------------------------------------------------+

What should I check?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions