stable-diffusion-webui-docker icon indicating copy to clipboard operation
stable-diffusion-webui-docker copied to clipboard

Wsl docker windows,How to use the specified graphics card for running

Open pengkaiwei opened this issue 3 years ago • 1 comments
trafficstars

Wsl docker windows,How to use the specified graphics card for running.

I have two Nvidia graphics cards, one A4000 and one P106-100. I want to try the P106-100

Similar question here, but I don't know how to set it up in docker.

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/3156

Tks !

pengkaiwei avatar Oct 25 '22 09:10 pengkaiwei

you can create a file in the root of the repo called docker-compose.override.yml and put this in it:

services:
  auto:
   deploy:
      resources:
        reservations:
          devices:
              - driver: nvidia
                device_ids: ['1'] # 0 or 1, depending on the graphics card
                capabilities: [gpu]

AbdBarho avatar Oct 25 '22 18:10 AbdBarho

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Nov 09 '22 00:11 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Nov 17 '22 00:11 github-actions[bot]