No GPU usage: Debian12/Ubuntu 24.04 VM: Ollama using Nvidia 4070

dereinevonnebenan

New Member
Jan 3, 2025
1
0
1
Hi there.

I habe a debian 12 VM on proxmox running - only für ollama usage.

Did the walkthroug for proxmox https://www.youtube.com/watch?v=IE0ew8WwxLM to pass GPU through.
I was able to add the GPU under Proxmox/Datacenter/Resource Mappings.
Adding Hardware und VM/Hardware/PCI Device was also possible

r/ollama - Having problems Ollama using GPU on DebianVM (Proxmox)r/ollama - Having problems Ollama using GPU on DebianVM (Proxmox)
In the VM i was able to list pcie devices properly via 'lspci'.
I Installed driver from Nvidia for Debian 12 and was able to use 'nvidia-smi'.

Constantly monitoring with 'nvidia-smi -lsm' showed, that model was not loaded in ram, when pulling ollama model using "ollama run llama2" or "ollama run llama3.2".

What did I do wrong? :(

r/ollama - Having problems Ollama using GPU on DebianVM (Proxmox)

Also tried it with a ubuntu 24.04 .. same result.

Thanks in advance
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!