this post was submitted on 29 May 2024
2 points (100.0% liked)

Selfhosted

39167 readers
377 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I've a minipc running an AMD 5700U where I host some services, including ollama and openwebui.

Unfortunately the support of rocm isn't quite there yet and not to mention that of mobile GPUs.

Surprisingly the prompts work when configured to use the CPU, but the speed is just... well, not good.

So, what'd be a cheap and energy efficient setup to run sone kind of LLM for personal use, but still get decent speed?

I was thinking about getting an e-gpu case, but I'm not sure about how solid this would end up.

top 10 comments
sorted by: hot top controversial new old
[–] PlantObserver@lemmy.world 0 points 3 months ago (1 children)

You could try llamaCPP, I think its configured to run better on cpu's

[–] h3ndrik@feddit.de 0 points 3 months ago

You could also try the ROCm fork of KoboldCpp

Koboldcpp bundles an interface ontop of llamacpp. And generally it's relatively easy to get it running.

[–] passepartout@feddit.de 0 points 3 months ago* (last edited 3 months ago) (2 children)

I have my gaming pc running as ollama host when i need it (RX 6700XT with rocm doing the heavy lifting). PC idles at ~50W and draws up to 200W when generating an answer. It is plenty fast though.

My mini pc home server is running openwebui with access to this "ollama instance" but also OpenAIs api when i just need a quick answer and therefor don't turn on my pc.

[–] ad_on_is@lemmy.world 0 points 3 months ago (1 children)

I have the exact same gpu and tried that. But couldn't get ollama docker version (rocm) to work with the gpu. even changing the env variable to 10.30.1. (rocminfo reports gfx1031)

would you mind giving some instructions or a link?

[–] passepartout@feddit.de 0 points 3 months ago* (last edited 3 months ago) (2 children)

If you're lucky you just set it to the wrong version, mine uses 10.3.0 (see below).

I tried running the docker container first as well but gave up since there are seperate versions for cuda and rocm which comes packaged with this as well and therefor gets unnecessary big.

I am running it on Fedora natively. I installed it with the setup script from the top of the docs:

curl -fsSL https://ollama.com/install.sh | sh

After that i created a service file (also stated in the linked docs) so that it starts at boot time (so i can just boot my pc and forget it without needing to login).

The crucial part for the GPU in question (RX 6700XT) was this line under the [service] section:

Environment="HSA_OVERRIDE_GFX_VERSION=10.3.0"

As you stated, this sets the environment variable for rocm. Also to be able to reach it from outside of localhost (for my server):

Environment="OLLAMA_HOST=0.0.0.0"

[–] ad_on_is@lemmy.world 0 points 3 months ago (1 children)

oh man... I'm such a dumb dumb .. didn't even try 10.3.0, now I did and the docker version works and is extremely fast, compared to a CPU... Thank you so much.

[–] passepartout@feddit.de 0 points 3 months ago

Glad i could help ;)

[–] Banthex@feddit.de 0 points 3 months ago* (last edited 3 months ago)

For me it was 0.0.0.0:11434

[–] justdoitlater@lemmy.world 0 points 3 months ago (1 children)

Just a noob question: any advantage of doing this (except privacy) of using thar setup instead of using chatgpt4 from openai website?

[–] passepartout@feddit.de 0 points 3 months ago

You can get different results, sometimes better sometimes worse, most of the time differently phrased (e.g. the gemma models by google like to do bulletlists and sometimes tell me where they got that information from). There are models specifically trained / finetuned for different tasks (mostly coding, but also writing stories, answering medical questions, telling me what is on a picture, speaking different languages, running on smaller / bigger hardware, etc.). Have a look at ollamas library of models which is outright tiny compared to e.g. huggingface.

Also, i don't trust OpenAI and others to be confidential with company data or explicit code snippets from work i feed them.