r/selfhosted • • 10d ago

Need Help Local AI question

if I wanted to host my own chatbot to help with research and writing on a hobby level, does anyone have a recommendation on which tool to start with?

unless it has to interact with data centers or rely on powered copyrighted materials, the better.

I have quite a few powerful computers around the house that aren’t doing much

11 Upvotes

38 comments sorted by

•

u/asimovs-auditor 10d ago

Expand the replies to this comment to learn how AI was used in this post/project.

→ More replies (1)

32

u/fligglymcgee 10d ago

This is a hobby with a rather high threshold for equipment to get into, do you already have a pc or high end laptop?

If you’re coming from cloud inference, you should prepare to temper your expectations a lot. Not to say you can’t get good results running local LLMs, but the activities that large ai providers claim their models can assist with are extremely difficult to define results-wise. For example, literally any size local llm (from minuscule to any ceiling) will passionately believe it can execute on “research” and “writing” assistance. If you’re expecting the same kind of experience as ChatGPT or Claude where you can ask very basic requests and it infers/iterates extensively before answering with a response close enough to tweak, you will have to build the harness around your smaller model to get a loosely similar result at home.

Really though, it would be unfair to gloss over how almost-necessary it is to already have 12gb-16gb of vram from a gpu (modern Mac machines can stand in, sort of) to get anything close to the kind of inference you’re expecting. Of course, you can find models that will run on minimal hardware but it will take a great deal of configuration and a serious amount of time will be wasted waiting for underpowered models to respond with responses you can’t fully trust.

r/localllama is your friend too.

7

u/EVJpodcast 10d ago

Thanks!  I appreciate the frank appraisal 

8

u/Intelligent-Key-8817 10d ago

I'd start with LM Studio on one of those machines and a downloaded local model. You can chat offline after setup. The copyrighted-material part needs a separate check: running a model at home doesn't tell you what went into its training data. What GPU and RAM does that machine have?

1

u/EVJpodcast 10d ago

So I have a 9070 XT with 16 GB of RAM on one machine

Another machine I have is an M4 Mac with 24 GB of RAM

I have a micro PC downstairs that has 32 GB of system ram and a pretty beefy AMD processor, but I don’t know what the GPU is

And then we have a machine in the garage that I think has a pretty powerful Nvidia GPU, but I need to get more detail details on that

4

u/coderstephen 10d ago

System memory isn't going to help you much, GPU memory is key.

Macs have unified memory (CPU & GPU share the same memory) which is why that memory works.

9070 XT and the M4 Mac are both enough hardware to get started with local AI, I'd say. Just give it a try and see what kind of performance you can get. If it is acceptable to you then you can start setting up more permanent software.

4

u/disgruntledJavaCoder 10d ago

System memory is more helpful than it once was: Newer inference engines (Strata prob the most known one right now) work with Mixture of Experts (MoE) Modles and split them between VRAM, system RAM, and streaming from an SSD. The models people are using for this are roughly in the range of 120B parameters, but only ~10% of those active at once. So AFAIK they're not as reliable for agentic work as the decently-sized dense models (like the 27B parameter ones), but they store a lot of knowledge.

I've been pretty pleased with Qwen 3.8 Flash Next in this setup. I'm lucky to be running on a 16 GB GPU and 64 GB of RAM, but I feel like I've seen people running these engines/models on 16 GB VRAM + 32 GB RAM (sometimes even 12 GB VRAM) with fairly good success

5

u/Feisty-Piglet7758 10d ago

Several machines don't help much here, you can't pool VRAM over ethernet in a way that feels good, llama.cpp RPC works but is slow. So pick the single strongest GPU box and ignore the rest. For writing you also need long context, and the KV cache at 32k can cost more than the weights themselves, which is why something like a 30B at Q4 on 24GB is the realistic target and a 12GB card is not, whatever the tool. The tool barely matters at that point, llama.cpp or Ollama, and the front end is taste.

3

u/o0genesis0o 10d ago

Unsloth studio, which is an open source app, made by the unsloth team who makes a lot of high quality quantized models, and they run llamacpp under the hood, which is THE open source inference engine. This app handles the downloading of models, running inference, and supporting fine-tuning as well.

Or you can deploy llamaswap proxy and llamacpp binary on a headless server yourself, and deploy open webui service to access the AI via web browser.

Noted that llamacpp might not be the optimal choice if you want to run certain model on certain hardware as fast as you can. For example, folks with AMD R9700 card would run Radiance, and folks with Nvidia card would run Ninfer to utilise their hardware better. I can see up to 3x speed up on my R9700 using Radiance. But I still keep a llamacpp as fall back since it runs on more types of hardware.

3

u/arahknxs 10d ago

Piggybacking to ask a related question - with a typical gaming pc, local LLMs aren't as good as even free chatgpt.

Having said that, anyone got any cool use cases for self hosted LLMs that don't require that level of inference? Eg, agents checking websites for simple stuff and notifying you via HA, or basic categorisation of images, or something else?

4

u/time-lord 10d ago

scanning files, to categorize and de-dup stuff and organize photos. It isn't very intensive, but I don't feel like feeding Anthropic or OpenAI 20 years of backups.

1

u/curious_coitus 10d ago

Yeah, the privacy first aspect is key. No one needs to read through and sort all my files.

1

u/Asly97 10d ago

This is kind of where I landed too. The research and writing side is where local models fall over for me, but the boring jobs seem perfect for them.

Do you actually run any of those yet, like the website checking or the image sorting? Curious what breaks first in practice. In my head it is not the model being dumb, it is the agent forgetting what it already checked last time and either redoing the work or flagging the same thing twice.

1

u/cibernox 10d ago

There are many right answers and only one wrong one: ollama.

But beware, to get decent results you need decent hardware. I have 256gb of vram, soon 320gb, and I wouldn’t recommend going below 128gb of available memory for AI models.

1

u/EVJpodcast 10d ago

Wow. Damn. That’s intense. Noted. 

1

u/cibernox 10d ago

Yo clarify, not all the memory has to be vram, system ram also helps. But the more fast fast vram, the better. IMHO 24gb of vram is the absolute minimum for a somewhat decent experience

1

u/cheflA1 10d ago

What's wrong with ollama?

2

u/cibernox 10d ago

Technically, nothing. Is a tad less performant that other options but more convenient.

It’s similar to what bambu labs has done in the 3D printing world, just shamelessly copying llama.cpp code into their engine presenting them as their own with no credit. They even copy the bugs.

It’s not the tech but the shady people behind it.

1

u/cheflA1 10d ago

Oh I see. I wish I had seen this before, bow I need to find the time to migrate away from it. Thanks for the heads up

0

u/sshwifty 10d ago

Man just like months ago ollama was THE answer. So much so that places like r/localllama were created. Now it is an outcast

2

u/helios_xii 10d ago

Why? I'm so out of the loop

2

u/sshwifty 10d ago

It didn't keep up. It is a lot slower, less support, and harder to tune. The maintainers are also resistant to improvements by outsiders.

Llama.cpp essentially replaced it, which is kinda being replaced with Strata which is kinda being replaced with Basalt/Adamant

1

u/Leading-Compote-686 10d ago

Ollama or LM studio if you are okay with command line. Open webui on top if you need good looking interface. I just did a qwen 3.8 27b on ollama and open webui in my local machine. It is a bit slow but that is ok with me

2

u/EVJpodcast 10d ago

I am pretty confident with command line.

I am not great at it and I am not a power user there, but I’ve been tinkering with Lennox in different capacities since the mid 90s :). 

In another life, I feel like I was probably a command line power user  

So I’m going to do some research and see if my hardware will hold up to this and if I have the time I’m looking forward to exploring this option 

3

u/Leading-Compote-686 10d ago

Start with command line. Tinker with parameters to get the optimal results that could work for you with the hardware limits in mind. I could achieve a 4.6 tps for normal tasks and approximately 3 tps for thinking tasks. I run the 27b model jn my 16gb 3060. 10g in gpu and the rest in ram

1

u/EVJpodcast 10d ago

Ok. Cool. So something like that would definitely be doable with my set up as long as it runs on AMD or Apple Silicon. Thanks!  

So based on our conversation, I’m thinking LM studio would be the next thing I would want to look at huh?

2

u/Leading-Compote-686 10d ago

I was also reading about Colibri engine. May be you can try this

https://abhijayvuyyuru.substack.com/p/a-744b-ai-model-can-run-on-a-laptop

0

u/cheflA1 10d ago

I just installed the same. Ollama with openwebui and works pretty well. I also installed an uncensored model which needed an extra llama server and a little bit of adjusting on the config for optimal vram/token usage. It runs on my 4090 with around 23gb of VRAM and it's quite slow and seems to be worse than sonnet5. 5, but it's still cool to have something running locally.

2

u/Leading-Compote-686 10d ago

You don't need a second Llama server. The existing Llama server can switch models. Switching models need about 5-8 seconds. I have qwen3.8, and comfyui running. Comfyui running as mcp. I tweaked the python call for comfy to run the image generation on GPU and immediately after it is done, handover GPU back to llama. Model switching takes time but I am ok with that. Atleast my data stays inside

1

u/cheflA1 10d ago

OK I understood the requirements for the uncensored model that I needed a second server. It works like this so whatever I guess

2

u/xewebbe 10d ago

Ollama or LM studio? Both are pretty user friendly. The performance really depend on your hardware. If you don't want instant answers, this may be a good start on "normal" hardware.

2

u/andurux 9d ago edited 9d ago

Big subject here...lets breakdown some items:

  • Backend/processing/inference: This is where the model runs, where the GPU needs to be, and potentially load up as much RAM as possible. Example: Ollama, llama.cpp.
  • Frontend/Chat: Where you interact with the model, does not need to be on the same system as the model. Exmaple: Open WebUI, LibreChat.
  • Agents: An assistant that can tap into the model, does not need to be on the same system as the model. Example: Hermes, OpenClaw.

The more VRAM you have, the bigger models you can run on memory directly, which speeds up processing.

However, there are solutions like: Strata, Basalt, Polystrata, that can use your VRAM AND your system RAM to load bigger models. The more RAM you have, the bigger the model. Though processing speed is affected since the model is not fully loaded into VRAM but split across VRAM and RAM.

You also need storage space to download the model files. Some models are a couple gigs, but the bigger models can be hundreds of gigs. So plan storage accordingly.

Now, going back to the Backend vs Chat vs Agent. You don't have to have all of these on a single system. For me I have:

  • System 1: Desktop PC with 16GB VRAM GPU + 64GB of RAM running CachyOS and using Strata. Runs a 125B parameter model.
  • System 2: Proxmox server with low power xeon cpus running Hermes and Open WebUI in containers, no gpus.

I point Hermes and Open WebUI to my desktop via API/API key. I do it this way so I can blow away my desktop at any point and reload it with whatever hardware or models or OS and then reconnect it to my frontend via the new API. I can also do snapshots of my Hermes agent and restore if needed without effecting Open WebUI or my model.

My recommendation(s):

  • If it's just you using it: Run all of it on one system in docker containers. Use llama.cpp, NOT Ollama. Ollama causes performance issues.
  • If you have 16GB VRAM and 64GB of RAM: then use Strata or Basalt or Polystrata instead of llama.cpp and run a bigger model. It will be slower processing wise, but the reasoning and quality output of a bigger model is a huge benefit over smaller models, especially for your research/writing needs.

1

u/ahorsenamedjeff 10d ago

You're gonna need a lot more compute than you think to do anything useful tbh.

1

u/cawlisseDeTabarnak 10d ago

There project colibri that runs some LLM with reduced memory; I’ve only scratched the surface, don’t know how useful or how well this actually works IRL

1

u/prodigiouspianist 10d ago

How much vram do you have

1

u/shortsteve 9d ago

a lot of people have given their recommendations, but it also depends on the hardware you want to use for AI.