@@ -35,6 +35,16 @@ The snap automatically detects your GPU and selects the best backend:
3535- ** AMD GPUs** - Uses ROCm for optimal performance
3636- ** Other GPUs** - Uses Vulkan
3737
38+ ### GPU Drivers (Vulkan)
39+
40+ Vulkan support is provided by the ` mesa-2404 ` content snap, which is installed
41+ automatically. If it isn't connected, connect it manually:
42+
43+ ``` bash
44+ sudo snap connect lemonade-server:gpu-2404 mesa-2404:gpu-2404
45+ sudo snap restart lemonade-server.daemon
46+ ```
47+
3848### Enable ROCm Support (AMD GPUs)
3949
4050For ROCm GPU acceleration on AMD hardware, connect the ` process-control ` interface:
@@ -113,6 +123,10 @@ sudo snap set lemonade-server ctx-size=32768
113123
114124# Set optional llamacpp-args
115125sudo snap set lemonade-server llamacpp-args=" --no-mmap --flash-attn on"
126+
127+ # Select a specific GPU for Vulkan (default: auto-detect all)
128+ # Useful on multi-GPU systems to target a discrete GPU
129+ sudo snap set lemonade-server gpu-device=nvidia
116130```
117131
118132Changes take effect after the service restarts automatically.
@@ -124,6 +138,7 @@ Changes take effect after the service restarts automatically.
124138| ` log-level ` | info | Log verbosity (debug, info, warn) |
125139| ` ctx-size ` | 4096 | Context window size in tokens |
126140| ` llamacpp-args ` | "" | Optional args to pass to llamacpp-server |
141+ | ` gpu-device ` | "" | Vulkan GPU filter: ` nvidia ` , ` intel ` , ` amd ` , or empty for all |
127142
128143### Model cache location
129144
@@ -180,13 +195,20 @@ sudo journalctl -u snap.lemonade-server.daemon.service --no-pager -n 50
180195
181196### GPU not detected
182197
183- Ensure you have the proper GPU drivers installed :
198+ Ensure the ` gpu-2404 ` interface is connected :
184199``` bash
185- # For AMD GPUs
186- sudo apt install mesa-vulkan-drivers
200+ sudo snap connect lemonade-server:gpu-2404 mesa-2404:gpu-2404
201+ sudo snap restart lemonade-server.daemon
202+ ```
187203
188- # Check Vulkan support
189- vulkaninfo | head -20
204+ ### Vulkan crashes on multi-GPU systems
205+
206+ On systems with multiple GPUs (e.g. Intel integrated + NVIDIA discrete), the
207+ Vulkan backend may default to the integrated GPU. Use ` gpu-device ` to select
208+ the discrete GPU:
209+
210+ ``` bash
211+ sudo snap set lemonade-server gpu-device=nvidia
190212```
191213
192214### ROCm not working (AMD GPUs)
0 commit comments