News for hackers. Stuff that matters.

Ask HN: Recommendations for Local LLMs in 2024: Private and Offline?

I'm in search of a local LLM that can run completely offline for processing personal documents. Key requirements include privacy (no data leaves my machine) and performance (efficient with large datasets). Any recommendations for open-source / commercial solutions that fit the bill in 2024? Also, what's the current state of local LLMs—are: Are they practical and useful, or still facing significant limitations?
( 29 comments | on HN )
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by fcautomation on Saturday April 06, 2024 @09:45AM (#39952418)
You can do this with Lamma2. There are multiple ways to compile it unless you use python. If you don't have familiarity with cpp i would just stick to python and save yourself time. Buy a big PC that can handle it.
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by dvt on Saturday April 06, 2024 @12:56PM (#39953676)
> Are they practical and useful, or still facing significant limitations?

They are. Working on a product using a fine-tuned Mistral-7B-Instruct-v0.2 model and it's pretty mind-blowing. Works flawlessly on my RTX3090 and serviceable on my M1 MBP as well. I'm building in Rust (using the candle crate), but for personal usage Python is probably the better choice since it's easier to get up and running.

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by malux85 on Saturday April 06, 2024 @07:36PM (#39956696)
Mistral-7B-Instruct-v0.2 - I'm using this exact model too, and it is mind blowing, but to get the most out of it, make sure you use llama.cpp and turn on self-extend (I'm not sure if support for self-extend has been merged into main yet, I manually merged a dev branch)
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by FezzikTheGiant on Monday April 08, 2024 @07:10PM (#39974637)
I asked this another place in this thread, but curious to know how you plan to run and deploy this model. What's the cheapest or I guess most cost efficient way to do this without burning money. I'm a college student for reference so I don't have a lot of money lying around to experiment.
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by malux85 on Monday April 08, 2024 @08:22PM (#39975108)
You’re right it’s expensive,

I have infra in my house, not gonna lie it cost a lot, I have a rack with 30k of equipment in it (including 5 GPUs)

But this would probably run on an AWS P2 instance with is 0.90 USD an hour, or there’s lambda labs which is also pretty cheap (no affiliation, just satisfied customer)

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by FezzikTheGiant on Monday April 08, 2024 @09:23PM (#39975452)
Thanks for the info! Appreciate it
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by bilsbie on Sunday April 07, 2024 @08:54AM (#39960430)
What’s the cheapest machine I could Buy to do this?
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by talldayo on Sunday April 07, 2024 @12:19PM (#39961751)
Mistral-7B will run on a Raspberry Pi at q04 and a little bit of patience. For good acceleration though, you'll want an Nvidia machine with enough VRAM to comfortable store the model.
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by sosuke on Sunday April 07, 2024 @11:35AM (#39961454)
Shooting from the hip here I’d say $800 would be a good start for all new parts. You might get down to $500 with used parts.

The most expensive piece in either build is a video card. You want to be able to load the LLM file into your video card RAM.

I just got a 16gb new card for this. I can load up to 34b models on it but poorly. Anything 13b or less runs perfectly. A 12gb card would be able to run 7b models and with the right training I think 7b models can be awesome.

New 4060ti Used 3090

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by FezzikTheGiant on Monday April 08, 2024 @07:09PM (#39974633)
What's the cheapest way to run and deploy a fine-tuned model today? If I understand correctly I'll need to run cloud GPUs right
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by ThrowAIAway on Monday April 08, 2024 @07:15PM (#39974676)
+1 interested to know this as well.
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by xyc on Wednesday April 17, 2024 @01:29AM (#40060801)
Mistral-7B-Instruct-v0.2 is amazing. I've set it as the default model of RecurseChat (a local AI chat app).

It works great, until recently WizardLM 2 came out and I tried it with local RAG. The difference is quite significant: https://twitter.com/chxy/status/1780101542311579942

Considering switching the default model after they put it back on HF.

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by nickdothutton on Saturday April 06, 2024 @01:32PM (#39953951)
My kingdom for a local LLM supporting my trusty Intel MacPro and AMD RX6900 XT!
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by Havoc on Saturday April 06, 2024 @02:41PM (#39954447)
You should be able to run something via openCL and llama.cpp on it
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by tharmas on Tuesday April 09, 2024 @01:59PM (#39982194)
This video demonstrates using LM Studio to run an LLM on an RX 7600XT 16gb so you should be able to run it on an RX 6900XT: https://www.youtube.com/watch?v=VXHryjPu52k
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by runjake on Saturday April 06, 2024 @01:46PM (#39954050)
Use ollama and browse the available models, download some, and try them out. Ollama is a llama.cpp front end.

https://ollama.ai

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by Zambyte on Saturday April 06, 2024 @02:25PM (#39954352)
That domain redirects to the new one, which should probably be linked directly instead now.

https://ollama.com

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by bilsbie on Sunday April 07, 2024 @08:55AM (#39960438)
How does that compare to gpt4all?
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by Havoc on Saturday April 06, 2024 @02:44PM (#39954469)
You need suitable hardware (ideally a 3090, 4090 or an Apple M device with a decent amount of mem).

Then set up software - ollama for easy mode (but less control) or text-generation-webui for more control.

After that you can just try models. The subreddit /r/localllama has whatever is flavour of the week. The Mixtral model at like Q3 quantization is probably a good starting point

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by daghamm on Saturday April 06, 2024 @04:13PM (#39955098)
With ROCm 6 I think new-ish AMD GPUs give you much better bang for the buck.

https://ollama.com/blog/amd-preview

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by Havoc on Sunday April 07, 2024 @06:48AM (#39959918)
Indeed...bought AMD shares on the bet that they'll catch up.

However this is still true only in a fairly narrow space - inference - once you stray off that very narrow path they're still a fair bit behind

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by FezzikTheGiant on Monday April 08, 2024 @07:10PM (#39974643)
So I can run local LLMs on my apple M1 air?
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by tharmas on Tuesday April 09, 2024 @02:17PM (#39982396)
Yes you can. Download LM studio and then search for a model such as Mistral-7B-Instruct-v0.2. LM studio will suggest variants of that model that suit your hardware to download. Here's a demonstration: https://www.youtube.com/watch?v=VXHryjPu52k
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by shreezus on Saturday April 06, 2024 @08:12PM (#39956904)
I run local LLM's (Mistral-7B-Instruct-v0.2) using LM Studio (Ollama works well too I believe) and host a local server on my Mac. I can hit the endpoints the same way you would with OpenAI's chat completions API, and can trigger it inline across my other applications using MindMac.
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by FezzikTheGiant on Monday April 08, 2024 @09:25PM (#39975456)
what about hosting? how would you recommend doing that
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by theolivenbaum on Sunday April 07, 2024 @03:12AM (#39958834)
> I'm in search of a local LLM that can run completely offline for processing personal documents. Key requirements include privacy (no data leaves my machine) and performance (efficient with large datasets). Any recommendations for open-source / commercial solutions that fit the bill in 2024? Also, what's the current state of local LLMs—are: Are they practical and useful, or still facing significant limitations?

We've added support for it in our app if you wanna give it a try: https://curiosity.ai

Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by datascienced on Monday April 08, 2024 @12:39AM (#39966260)
jan.ai
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by hollowpython on Tuesday April 09, 2024 @02:50AM (#39976761)
Are there any which can generate consistent characters (especially faces)?
Re:Ask HN: Recommendations for Local LLMs in 2024: Private a... by xyc on Wednesday April 17, 2024 @01:21AM (#40060744)
We recently added support for local document chat in RecurseChat (https://recurse.chat), including chatting with PDFs and markdown. You can see a demo here: https://twitter.com/chxy/status/1777234458372116865

RAG happens all locally (local embedding model and local vector db).

The app is secured by Mac App Sandbox, meaning it only have access to your selected file in the system dialog or drag and dropped files. If you use a local LLM, everything works offline.