Stop Giving Bad Build Advice People
TL:DR : 3090s and A series cards are best. 24 48 and 96gb are the target vram amounts. MAC is terrible at processing long prompts and generally everything. AMD is so far behind don't waste your time or money.
If you are looking to build a rig avoid 99% of Reditt recommendations. I wasted so much time following bogus keyboard surfers buying sub par gear. Currently I am serving over 100k users running llama 3.1 70B 8bit and have now build over 10 separate clusters for friends and clients. It's pretty straightforward.
This is my preferred GPU list in order from best to worst on value for performance..
3090 X1-4 A5000 X1-4 A6000 x1-2 Ada a6000 x1-2 Ada a5000 x1-4
You may ask where is Mac. I happen to own M4 max 128gb and M3 Max 48gb. Both are painfully slow. Fanboys ignore prompt processing speed and several other measures. Even under ideal situations every Mac is half as fast at best to a 3090 in inference and 1/5 as fast in prompt processing.
What about AMD? CUDA is king and AMD can't catch up. I'm big sad about this as a huge AMD fan. Is what it is tho.
Feel free to comment if I missed any GPUs that offer acceptable speed, overall compatibility, reasonable cost. :)
About this post
- Posted
- Archived
- Score
- 218 · 95% up
- Kind
- Gallery · 3 files
- ID
- 1halouk
112 comments
I agree with everything you just said... to bad this would get downvoted in to oblivion if you suggested it to the people buying tokens left and right to burn them on LLM cloud services that don't work half the time.
Currently we run a chatbot used by a third party to directly interact with clients. We host on VLLM and pipe that into Letta. From there were put that behind a API router and serve the open ai endpoints to our client to use. Luckily we colocate and have 10gb up down so it's pretty quick. Also it's messaging so the throughput requirements are much lower than instant chat.
i recommend looking into sglang if u are serving that many. or even vllm with lmcache happy to help
Very true plus privacy is a concern. I do recommend runpod for many instances where data may not be as big a deal however. Much cheaper than hardware if not running 24x7
For someone like me who has limited resources and Mac Mini sounds best right now. What would you recommend for starters? I want to build something that can be scalable and best long term for a family of 5 with adhd.
I want to build pretty much an AI for us to help my wife and kids with their adhd later (wife right now and kids are below 10yrs old so I still have time) and help me manage everything else that might have been missed by them plus help me with my things too.
Right now I just have Ollama on an old i5 and 16gb of ram so 3B are best but I would like to run the 70B or at least a 32B.
Honestly Im just taking advice from everywhere that seems in the right path right now and so far you have been pretty spot on with the 3090. It seems that a 3060 is a bare minimum but 3090 and Nvidia are best right now. AMD seems to be the company of choice for cpu.
I would recommend you use runpod for much cheaper development and inference. Then when ready to invest in a dedicated Linux system. For general computing tho the mini rocks!!!
Forgive my ignorance, but what does adhd have to do with local llm’s?
I am not op, but I thought it was a good idea. Having an assistant with a natural language interface probably.
A fellow p620 Chad. I’m ordering a4000s right now to maximize the PCIE on the system, but I’m generally in agreement.
I find a4000 compelling when running 4 cards. 3 running 70b and 1 running a smaller model. However the math on 16gb is a bit of a bummer. 24 48 96 I find pretty standard thresholds.
It’s the single slot tax.
rtx 4000 ada is 20gb for 200 buks more and good power saving.
So 3090 would be better than 4090? How many 3090s you running? Was planning to pick up some 4090s today but the price tag is making me consider 3090
4090s were such a drag in our clusters. I was running 12, 4 standard size (terrible, bad stability, hot AF, lots of power, expensive) and 8 Turbo data center like cards (more stable but still hot and power hungry. And very expensive) my 3090s are a mixed type and all great! I run 4 for local dev work and never had a problem. Now for prod I went with and recommend A series cards. I did keep 1 4090 paired with a 3090 for gaming and some LLM. That setup rocks but idk if worth the extra spend.
Thanks for the feedback, I have 1 4090 gaming trio. I may buy 3 3090s today. How is getting them to all work together? I heard that it may be difficult with getting them to work together and evenly distribute loads. Would you say that is easy to configure?
What about the times spent? do those seconds and minutes do add up over time and give the 4090 a good lead.
How do you perform inference on a Mac? I prefer MLX to llama.cpp. While it's true that Macs are slower with long prompts, recent versions of MLX have improved inference speed even for long prompts. And if your primary goal is chat, consider using a key-value (KV) cache for each turn. This way, only the newest message needs to be evaluated, significantly reducing the number of tokens processed.
This is an excellent point I will have to try MLX again.
LM Studio runs MLX on Mac and is super straightforward to use. I use it daily.
I wonder about how you host the Llama to handle the 100k users. VLLM for the API? Do you let the users directly interact with the API or have something in the middle?
I was wondering about how this solutions works.. I feel like I should have clients talking with some kind of middleware, maybe queueing prompts and have the API in the back processing the queue?
Check out litellm. You can add multiple backend/servers to get served at one endpoint, with automatic load balancing for identical models.
Oohh nice I'ma check this out!
Correct there is a middleware that feeds my external apps and serves an openai compatible list of endpoint.
And yep VLLM to actually run the LLMs
yeah I don't understand mac fanboys too, i own a m3 max 64gb and it can run most models duo to the large memory but this doesn't mean its fast especially for image generation but if you use it just sometimes its really good for it coming out of the bix like that
Facts hard to beat the general value of the Mac.
yes battery is amazing
I use my M2 Ultra 192GB to run large models (70GB+). At a max power draw of ~120W it is super efficient.
Sure 4x $7000 Nvidia cards would be faster, but would use 10x more power, loud, and much more expensive.
Why the max of 2 A6000 / RTX 6000 ADA?
I find that 96gb is the most vram that presents a reasonable value outside of training larger models. It allows 70B at 8 bit which with 3.3 is more than enough for most tasks. I currently run 3.1 and have almost no limitations. Now if one needed more to run a larger model multiple a6000 could make more sense than multiple a5000s. One benefit at least in my market is a5000 are less than half the cost of a6000. So if your build can handle more cards the a5000 may make more sense. More tensor cores and same vram.
Just ran an LLM benchmark at work, and can confirm 3090 crushes, especially at its price point.
Yep and you can game on them and easily flip later. For strictly LLM the a5000 is my favorite RN
This looks pricey for a home setup. 😬
Yes just a bit. It's colocated now.
Any specific requirement for CPU? Ryzen? 8 cores or 16 cores, does it matter? Thank you for sharing!
I really like Ryzen and the rule of thumb I hear is 2 cores per GPU. As a result 8 cores should be fine for 2 GPUs.
What about L40s? I thought they are basically A6000 Ada but without active cooling and built for servers? How long would an A6000 Ada last compared to an L40s under constant load?
Is that an external GPU? Any recommendations for an egpu build? ( Not the gpus I like your list)
Ya know I have not looked into this much but it's appealing. Would be cool to pair with a mini PC or laptop.
I have a happy with 8gb GPU...I'm creating a new LLM model and it's going slowly sloth like
Thanks for the info!
Does PCI-E lane count matter? Or can you just use any mobo?
I’m only at 3T/s on 2x 3090 and Llama 70b Q4 on Ollama Windows. Have a b550 mobo. Nvidia-SMI shows both GPUs at partial utilization (loading a single GPU-sized model has 100% utilization). Not sure what I’m doing wrong. Any pointers or lessons you’ve learned would be very much appreciated!
What kind of token generation speed do you get?
Running 40-80 t/s with llamacpp and qwen 2.5 72b iq4_xs on 3090+4090. Just given up on ollama with all its fancy bullshit about memory estimations and obsolete version of llamacpp. Download llamacpp, run it with speculative model and q8 cache - simple and straightforward.
Thanks for the advice!!
Hmm I'm getting 24 tokens at minimum. Are you using VLLM and setting tensor_parallel_size to 2?
No to either, this is just a bog standard windows install with Ollama. Looks like you’re on Linux with vLLM.
Looks like I have a project to embark on! What kind of motherboard are you using?
What chassis is this?
https://www.gigabyte.com/Enterprise/GPU-Server/G292-Z20-rev-100
I bet this has an exponentially lower WAF than a Mac Mini that is entirely silent. No way would want a Datacenter server sitting in the same room that I am in, but I wouldn’t even notice a shelf full of Mac Minis.
Whoah thanks fren!
Oh and the last pic is a Lenovo p620, my favorite workstation.
Idk man, I had the exact opposite experience of you and I can safely give Reddit's AI community a lot of props, but I agree that there is SO MUCH bullshit out there that, fortunately, when you look at it enough, it gets easier to spot.
Since you've got an impressive rig, may I ask some advice? This is my setup now.
https://preview.redd.it/l2pmeqe6ox5e1.png?width=1903&format=png&auto=webp&s=8c5b2187273e4950e3b43d01f10cdc37a55ae8cd
But unfortunately, I'm kneecapped with 8GB VRAM (as you can probably assume with some of my smaller models).
I have landed a consulting gig with a law firm and a business consulting practice to help implement their AI systems and I intend to build them something similar to my own interface. But, for my own edutainment purposes, as well as helping learn the ins and outs of my configuration even better...
I want to build a system that's not quite homelab territory, but not far from. I intend to leverage an open chassis design, but what I want is a DDR5-capable motherboard that allows me to SLI (not really SLI, but hopefully you know what I mean) 2x 3090s or, if I have to settle due to pricing, 2x 4060s.
Do you feel as if this is this configuration here is a good compromise? Or what are your thoughts?
Given I still have so much to try and learn and figure out (finetuning, training, true image generation instead of the lazy DALLE-3 stuff I do), I'm pretty dead set on not going the homelab/server route. What are your thoughts or opinions?
I think your base build is pretty good but I would make a few changes. First I would go AMD for CPU over Intel. Price for performance Ryzen tends to come out ahead. Nothing wrong with Intel I guess tho. Another thing is to usually avoid 4 sticks of ram. Ideally you want dual channel in 2 slots, at least for Ryzen. I find 64gb ram to be a good spot to aim for. Your storage solutions look good. I would definitely get 3090 or a5000s over 4060s. I would probably start with a single 3090 and save for another over 4060s.
Unfortunately, AMD ain't it for me.
Not that I'm knocking AMD at all, they def have a special place in my heart, but I'm spread pretty thin these days with all the configuring and tinkering, and to know that I'd be in for a massive re-thinking of everything I know due to the AMD name, and that'd run up a lot of billables for potential biz clients...I'm sighing just thinking about it hahahaha. Probably also traumatized trying to help friends set up for games on an AMD system too from way back in the Athlon days.
I'll definitely take a harder look at the RAM though. I have 48GB RAM currently, so while my PC rips with general use...I'm for sure noticing that the WSL2 kernel and running heavy AI-related loads pushes my available RAM to the limit (I'm usually left with about 8-10GB if I have RAM spillover for some of my larger models).
Thanks for the recommendation! I appreciate you taking the time out to look! I'll definitely be looking toward the 3090 and iteratively upgrading, instead of wanting it all right now lol.
What would be the average cost? M4 pro Mac mini 64 gb ram is 2000.
3090 setup is around $1300 add another card for $800 and you're in the Goldilocks 48gb range. Unfortunately with the Mac the 64 gb is shared limiting you. Plus interface and processing are unacceptably slow on Mac.
Oh and the pro is even slower than the Max. And the Max is way slower than the 3090. Pretty low value proposition for LLM. General programming the Mac excellent 👌
I have recently found that a solid V100 Pcie 32GB card if found cheaply can actually give slightly better performance than 3090. But they usually go 1.5k a pop. Sometimes though….
Mind sharing some details about how you run it? I have four 16GB V100s that I got very cheap, but all the comments I see on this sub about how Turing is better supported than Volta (plus having 3090s and P40s) has stopped me from spending the time to install them in one or two of my rigs.
The V100 16GB are a few generations old so they’re not the same as V100 32GB. I haven’t found really cheap ones on eBay and also read few benchmarks where the V100 is basically better than 3090 and just a tad slower than the 3090Ti but since I’m yet to setup my 3090s I’m pretty happy just focusing on that.
Very interesting I don't have any experience with that card. Might have to check them out.
3090s are good and all, but they cost an arm and a leg. I could get near 100G of VRAM using P40s for the same price(
P40s I think are viable when paired with another GPU. Naked I find them too slow.
3060+dual P40 then? IDRK if that'd work though. 60G of VRAM sounds amazing
Very helpful post. Thank you. Looking to build something myself soon, albeit on the lowest end of what you have haha. Would be curious to see any approx benchmarks for the various systems you listed (and Macs)
I get over 24 tokens a second running llama 70B 8 bit quant. My Macs gets like 6-8 on a good day. However that's not the biggest difference. Long context processing is 5-10x faster on my 3090 and a5000 rigs than my M4 max Mac. :(
Wow that’s wild. Thanks for sharing 🙏
What OS are you hosting on? Sorry if I missed it.
Debian Linux :) I have heard the Windows linux subsystem is pretty good as well.
Awesome TY
What about for a consumer pc build? Intel i9, 4090, 64GB RAM?
I want to play with local LLM but want to put the best LLM I can on it.
That's a pretty great build for general computing and running some LLM models. Can also play games like a champ.
I’d like to see more pictures, but you are going to choke those A6000 cards out packed like that in the 2U server.
Not enough clearance air intake wise.
They are stacked a5000, each a6000 has its own bay. With the design of the server plenty of air is pushed to the cards and I've never had thermal issue.
Great points. I am curious for doing something similar but on a smaller scale. Can you suggest where to start? I can build a rig(basic one done already). And what tools do you use for services and serving? How to manage it all? Thank you again : )
What is your goal or target model? A p620 Lenovo with an A series card is my ideal LLM server. A gaming PC with a 3090 or 2 is ideal if ya wanna play games. A 4090 and a 3090 is also good if you play lots of high demand games off the 4090.
So you haven't even tried any Intel or AMD cards via vLLM?