Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] GPU acceleration with ollama
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
o5gmmob8
l33t
l33t


Joined: 17 Oct 2003
Posts: 614

PostPosted: Sun Mar 16, 2025 11:05 pm    Post subject: [SOLVED] GPU acceleration with ollama Reply with quote

This may be a silly question, but if I want to fully utilize my GPU with ollama, I need to use the nvidia drivers, correct?

Conversely, I cannot use nvidia with sway, only nouveau. So, if I want to use ollama, then perhaps another option with my current setup is - I should run it on a headless server where the GPU is just used for acceleration and I connect to it remotely on whatever machine I have.

Another option might be to use another GPU altogether like an Intel Arc and AMD which may appear to have better support in both sway and ollama.


Last edited by o5gmmob8 on Mon Mar 17, 2025 12:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31679
Location: here

PostPosted: Mon Mar 17, 2025 6:16 am    Post subject: Reply with quote

Yes for use gpu acceleration you need nvidia-drivers.
Ollama not support Intel ARC official but AMD does.
The third option is to change WM to one that supports nvidia.
_________________
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Back to top
View user's profile Send private message
o5gmmob8
l33t
l33t


Joined: 17 Oct 2003
Posts: 614

PostPosted: Mon Mar 17, 2025 12:21 pm    Post subject: Reply with quote

Ok, that makes sense.

I tried installing nvidia-drivers-470 and it is masked for a reason, it is advised not to use it with kernels newer than 6.6, so I guess I'm stuck between a rock and a hard place.

This hardware is ancient, so that makes sense, get something newer, maintained and supported and it should work.

I glanced over the Arch Linux wiki page: https://wiki.archlinux.org/title/NVIDIA and it seems to allude to nvidia working with wayland provided a few things are configured.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 3033

PostPosted: Mon Mar 17, 2025 6:37 pm    Post subject: Reply with quote

o5gmmob8 wrote:

This hardware is ancient


Then you have no problem as it most likely won't run on it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
o5gmmob8
l33t
l33t


Joined: 17 Oct 2003
Posts: 614

PostPosted: Mon Mar 17, 2025 6:38 pm    Post subject: Reply with quote

I had it running, but it is one or the other. I was just trying to see if I can have both.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum