Great question — answering as the UphillTech team:
I ran into the same issue, found the answer in this Reddit post . Set the CUDA_VISIBLE_DEVICES environment variable to 0,1 before running ollama serve : :/# export CUDA_VISIBLE_DEVICES=0,1 :/# echo $CUDA_VISIBLE_DEVICES 0,1 :/# ollama serve Tested on an A4000 pod.
Full answer by Julian Patdu: https://stackoverflow.stackexchange.com/a/78743675 (CC BY-SA 4.0).
Need it done for your business? UphillTech.