- Do not try to configure the nvidia card, only the main AMD card
- Install the Bumblebee package
- Use -open nvidia driviers
- Reboot
optirun glxspheres64to test- If you get
primus: fatal: failed to load PRIMUS_LOAD_GLOBAL- change/etc/bumblebee/bumblebee.confto useBridge=virtualgl(and restart withsudo systemctl restart bumblebeed)
Ollama:
- Install
nvidia-current-cuda-openclpackage - Test with
nvidia-smi
If you have Ollama set up as a service:
sudo systemctl stop ollama- Edit
/etc/systemd/system/ollama.service-ExecStart=primusrun /usr/local/bin/ollama serve sudo systemctl daemon-reloadsudo systemctl start ollama
Otherwise:
primus run ollama serve
To check:
- Start a model (e.g.
ollama run mistral) - Run
ollama ps- should show100% GPU