make sure the nvidia drivers for the card are installed.
make sure the nvidia device is detectd with
ubuntu-drivers devices Then install the driver with
sudo ubuntu-drivers install
reboot then ## step 2
verify the drivers have loaded with nvidia-smi which
will print out a table of info on your gpu.
install ollama with the command
curl -fsSL https://ollama.com/install.sh | sh note curl
must be installed you can verify this worked with
sudo systemctl status ollama which should ollama loaded and
active ## step 4 load a model and run it with
ollama run qwen2.5:3b
if you wish to load a different model change the model name on the above command
when you get a prompt to enter a message you can start using the model. /bye exits ollama