RAM issues. It seems they must be paired and it was picky needing micron.
Key Gear Reviews:
Silverstone Chassis:
Trully a pleasure to build and work in. Cannot say enouhg how smart the design is. No issues.
Noctua Gear:
All excellent and quiet with a pleasing noise at load. I mean its Noctua.
Any idea what the total power draw from the wall is? Any chance you have a UPS that lets you see that?
Honestly, this build is gorgeous and I really want one lol. I just worry that my breakers can't handle it. If that 1600w is being used to full capacity, then I think it's past what I can support.
You'll need about 2 years at full concurrency working 24/7, or about 10 years of single user to break even. That's without assuming you pay nothing for electricity and that inference prices won't move down any more.
This is a dream machine! I don’t mean this in a bad way, but why not wait for project digits to come out and have the mini supercomputer handle models up to 200B. It will cost less than half of this build.
Genuinely curious, I’m new to the LLM world and wanting to know if there’s a big gotcha I don’t catch.
The digits throughput will probably be around 10 t/s if I had to guess. Also that would only be to one user. Personally I need around 10-20 t/s and served to at least 100 or more concurrent users. Even if it was just me I probably wouldn't get the digit. It'll be just like a Mac, slow at prompt processing and context processing. I need both in spades sadly. For general LLM maybe they will be a cool toy.
You are assuming you will be able to buy one as a consumer for the first year or two at anything near retail price, if even at all. Waiting for technology works for some cases but if i needed 70b “Now”, your options are pretty slim at “cheap”, and in many countries, basically impossible to source anything in sufficient quantity. We are all hoping digits will be in stock at scale but, “doubts”.
Why RX5000 instead of 3090s. I thought 3090 would be more cost effective and slightly faster? You do have to use pcie extenders and maybe a card cage though.
Much Lower TDP, smaller form factor than typical 3090, cheaper than 3090 turbos at the time, they run cooler so far than my 3090 turbos. Also they are quieter than the turbos. A5000 are also workstation cards which I trust more in production than my RTX cards. My initial intent with the cards was collocation in a DC. I was told only pro cards were allowed. If I had to do it all again I would probably make the same decision. I would perhaps consider a6000s but not really needed yet. There were other factors I can't remember but the size was #1. If I was only using 1-2 cards then ye 3090 is the wave.
Thank you. I didn't think about Colocation. Data centers do not allow having a pci-extension mess to a card cage is likely why they only want pro cards. My home server has 3 undervolted 3090s in a card cage with pci-e extenders running on Asrock Rome8-2t with Epyc 7443 epyc 512 gb ram on an evga 1600 watt psu but it runs game servers, plex, zfs, cameras in addition to AI stuff. I paid a premium for the 7443 for the high clock speed for game servers. If I wanted to pay A6000 prices would get 5090 instead but we no longer talking cost effective at that point.
So nice! I've almost pulled the trigger on a similar build for training and probably will soon. Are you getting x16 lanes on each card with that motherboard? less familiar with it compared to threadripper
For training I would get a threadripper build. These only run 4 lanes at 8x. The Lenovo PX is something to look at if you're stacking cards. I use the Lenovo p620 with 2 a6000 for light training. Anything else in the cloud.
My apologies I should have clarified. My partner wanted new/ open box on all cards. At the time I purchased 4 a5000 at 1300 each open box. 3090 turbos were around 1400 new/ open box. Typically yes a5000 cost more tho.
Ah ok. Yea I recently got a gigabyte 3090 turbo in my threadripper server to do some AI self learning, I've got room for more cards and I had been looking initially at both cards, I set 250w power limit on the 3090.
A5000 doesn't have perf boost from going from FP16 to FP8, but you get double the compute if you drop the activations to INT8. LLMcompressor can do those quants and then you can use it in vllm.
What kind of total throughput can you get when running with 500+ concurrent requests? How much context can you squeeze in there for each user with particular concurrency? You're using tensor parallelism and not pipeline parallelism, right?
If I did it myself and I wouldn't have to hit 99% uptime, I would have made an open build with 4x 3090s without consideration for case size or noise, but focusing on bang per buck. Not a solution for enterprise workload which I think you have, but for personal homelab I think it would have been a bit more cost effective.
Thank you for the excellent suggestions. I will try INT8 when I do the benchmarks. I agree 3090s are typically the wave but rules are rules if I colocated.
[Here]{https://huggingface.co/neuralmagic-ent/Llama-3.3-70B-Instruct-quantized.w8a8} is a quant of llama 3.3 70b that you can load in vllm to realize the speed benefits. When you're compute bound at higher concurrency, this should start to matter.
That's assuming you don't have bottlenecked because of tensor parallelism. Maybe I was doing something wrong but I had bad perf with tensor parallelism and vllm on rented gpu's when I tried it.
I'm not sure if sglang or other engines support those quants too.
Thank you I will be posting stats in a few hours. Want to get exacts. From initial testing I get over 50 t/s with full context. On the other hand my Mac M3 max gets about 10 t/s with context.
This is actually quite beautiful. I'm a PC builder so I'd pick up a completely different case - something white - more aesthetically pleasing RAM and I'd hide all the cables. It would be a really, really beautiful machine for graphics work & AI. Kudos for IfixIt :-P
Really sad. Noctua fate, I guess :-P But some Noctua builds are really, really great - and those GPUs look super pleasing with all the rest of Noctua fans.
The A series cards are special made for this level of stacking thankfully. At full tilt they hit 80-83 degrees at 60% fan. That under several days load as well. I was very impressed.
Regarding CPU the memory is 2400 mhz and 48 lanes total. As it stands memory bandwidth related to ram is inconsequential as everything runs on the GPUs. I could have gotten away with a quarter or the installed ram.
That's a nice clean build! How are the temps? Do the cards get enough airflow? I found that when I ran 4x A4000s next to each other, the inner cards would get starved for air, though not so much that it really caused any problems for single user inference.
114 comments
Thank you for viewing my best attempt at a reasonably priced 70b 8 bit inference rig.
I appreciate everyone's input on my sanity check post as it has yielded greatness. :)
Inspiration: https://towardsdatascience.com/how-to-build-a-multi-gpu-system-for-deep-learning-in-2023-e5bbb905d935
Build Details and Costs:
"Low Cost" Necessities:
Personal Selections, Upgrades, and Additions:
Total w/ gpus: ~7,350
Issues:
Key Gear Reviews:
Any idea what the total power draw from the wall is? Any chance you have a UPS that lets you see that?
Honestly, this build is gorgeous and I really want one lol. I just worry that my breakers can't handle it. If that 1600w is being used to full capacity, then I think it's past what I can support.
I am actually transitioning it to the UPS now before speed testing :) Ill let you know shortly.
It pulls 1102w at full tilt. Just enough to throw a consumer UPS but can run bare to the wall.
Noctua is the shit💯
That’s a sexy build - how’s the heat of that thing?
It's actually pretty manageable thermal wise. Has the side benefit of warming the upstairs while she waits for relocation.
Looks nice! What are you going to use it for?
NSFW roleplay
This particular one will probably run an accounting/ legal firm assistant. Will likely run my DandD like game generator as well.
Why letta? Any particular reason?
I have a good relationship with the founders and trust the tech and the vision.
Initial testing of 8bit. More to come
python -m vllm.entrypoints.openai.api_server \
--model neuralmagic-ent/Llama-3.3-70B-Instruct-quantized.w8a8 \
--gpu-memory-utilization 0.95 \
--max-model-len 8192 \
--tensor-parallel-size 4 \
--enable-auto-tool-choice \
--tool-call-parser llama3_json
python token_benchmark_ray.py --model "neuralmagic-ent/Llama-3.3-70B-Instruct-quantized.w8a8" --mean-input-tokens 550 --stddev-input-tokens 150 --mean-output-tokens 150 --stddev-output-tokens 20 --max-num-completed-requests 100 --timeout 600 --num-concurrent-requests 10 --results-dir "result_outputs" --llm-api openai --additional-sampling-params '{}'
25-30 t/s single user
100-170 t/s concurrent
You'll need about 2 years at full concurrency working 24/7, or about 10 years of single user to break even. That's without assuming you pay nothing for electricity and that inference prices won't move down any more.
It was cost effective until you added GPUs, you could run 70b modem on CPU alone (at low tps).
Erm this would run 8 bit at maybe 1ts without the GPUs. I get 170+ t/s concurrent with the GPUs.
This is a dream machine! I don’t mean this in a bad way, but why not wait for project digits to come out and have the mini supercomputer handle models up to 200B. It will cost less than half of this build.
Genuinely curious, I’m new to the LLM world and wanting to know if there’s a big gotcha I don’t catch.
I was thinking this as well, the only thing is I hope DIGITS launch goes much better than the 5090 launch.
Idk if I would call it a launch. Seemed everyone got sold before making it to the runway hahah
The digits throughput will probably be around 10 t/s if I had to guess. Also that would only be to one user. Personally I need around 10-20 t/s and served to at least 100 or more concurrent users. Even if it was just me I probably wouldn't get the digit. It'll be just like a Mac, slow at prompt processing and context processing. I need both in spades sadly. For general LLM maybe they will be a cool toy.
Sorry for the dummy question but what is the concurrent vs single use case?
It is said to have a petabytes of processing power, would this make it good for training models?
Ahh that makes more sense. Concurrent users is another thing to worry about
You are assuming you will be able to buy one as a consumer for the first year or two at anything near retail price, if even at all. Waiting for technology works for some cases but if i needed 70b “Now”, your options are pretty slim at “cheap”, and in many countries, basically impossible to source anything in sufficient quantity. We are all hoping digits will be in stock at scale but, “doubts”.
In scale is the question, and that’s up to Nvidia. Scalpers usually get the stuff average end users can afford, not the expensive and niche items.
That said, the US is a special case. The rest of the countries yeah will have a different set of issues before they get their hands on it.
Sorry if it's obvious to others, but what GPUs?
PNY RTX A5000 GPU X4
What? He didn’t get H200s? Lame.
What do get for tps on a 70b 8q on that type of rig
python -m vllm.entrypoints.openai.api_server \
--model neuralmagic-ent/Llama-3.3-70B-Instruct-quantized.w8a8 \
--gpu-memory-utilization 0.95 \
--max-model-len 8192 \
--tensor-parallel-size 4 \
--enable-auto-tool-choice \
--tool-call-parser llama3_json
25-30 t/s single user
100-170 t/s concurrent
What models + tokens per second?
Llama 3.3 70b 8bit 25-33 t/s sequential 150-177 t/s parallel
I'll be trying more models as I find ones that work well.
Why RX5000 instead of 3090s. I thought 3090 would be more cost effective and slightly faster? You do have to use pcie extenders and maybe a card cage though.
Much Lower TDP, smaller form factor than typical 3090, cheaper than 3090 turbos at the time, they run cooler so far than my 3090 turbos. Also they are quieter than the turbos. A5000 are also workstation cards which I trust more in production than my RTX cards. My initial intent with the cards was collocation in a DC. I was told only pro cards were allowed. If I had to do it all again I would probably make the same decision. I would perhaps consider a6000s but not really needed yet. There were other factors I can't remember but the size was #1. If I was only using 1-2 cards then ye 3090 is the wave.
Thank you. I didn't think about Colocation. Data centers do not allow having a pci-extension mess to a card cage is likely why they only want pro cards. My home server has 3 undervolted 3090s in a card cage with pci-e extenders running on Asrock Rome8-2t with Epyc 7443 epyc 512 gb ram on an evga 1600 watt psu but it runs game servers, plex, zfs, cameras in addition to AI stuff. I paid a premium for the 7443 for the high clock speed for game servers. If I wanted to pay A6000 prices would get 5090 instead but we no longer talking cost effective at that point.
You didn’t get the NVLink bridges.
The A5000 has only 64 SMs, so a lot of optimizations are not enabled by default for most software.
So nice! I've almost pulled the trigger on a similar build for training and probably will soon. Are you getting x16 lanes on each card with that motherboard? less familiar with it compared to threadripper
For training I would get a threadripper build. These only run 4 lanes at 8x. The Lenovo PX is something to look at if you're stacking cards. I use the Lenovo p620 with 2 a6000 for light training. Anything else in the cloud.
Any chance you've used Titan RTX cards?
Where are you seeing a5000 for less than 3090 turbo? Anytime I look a5000 are a couple hundred more at least.
My apologies I should have clarified. My partner wanted new/ open box on all cards. At the time I purchased 4 a5000 at 1300 each open box. 3090 turbos were around 1400 new/ open box. Typically yes a5000 cost more tho.
Ah ok. Yea I recently got a gigabyte 3090 turbo in my threadripper server to do some AI self learning, I've got room for more cards and I had been looking initially at both cards, I set 250w power limit on the 3090.
RM44 gang. love that case so much.
Same! Worth every penny. Especially having all 8 pcie slots is grand.
Similar to me. rtx a6000 and w-2155 and 128 gb.
I'm currently wasting effort trying to see if I can share inference with a Radeon Instinct mi 50 32 gb.
Best of luck!
Are you running W8A8 INT8 quant of llama 70b?
A5000 doesn't have perf boost from going from FP16 to FP8, but you get double the compute if you drop the activations to INT8. LLMcompressor can do those quants and then you can use it in vllm.
What kind of total throughput can you get when running with 500+ concurrent requests? How much context can you squeeze in there for each user with particular concurrency? You're using tensor parallelism and not pipeline parallelism, right?
If I did it myself and I wouldn't have to hit 99% uptime, I would have made an open build with 4x 3090s without consideration for case size or noise, but focusing on bang per buck. Not a solution for enterprise workload which I think you have, but for personal homelab I think it would have been a bit more cost effective.
Thank you for the excellent suggestions. I will try INT8 when I do the benchmarks. I agree 3090s are typically the wave but rules are rules if I colocated.
[Here]{https://huggingface.co/neuralmagic-ent/Llama-3.3-70B-Instruct-quantized.w8a8} is a quant of llama 3.3 70b that you can load in vllm to realize the speed benefits. When you're compute bound at higher concurrency, this should start to matter.
That's assuming you don't have bottlenecked because of tensor parallelism. Maybe I was doing something wrong but I had bad perf with tensor parallelism and vllm on rented gpu's when I tried it.
I'm not sure if sglang or other engines support those quants too.
Hi mr Koalfied! Thats for sharing your build. How is the performance? I have an Mac M2 with reasonable performance and price (see https://github.com/ggerganov/llama.cpp/discussions/4167 for tests). How would
Thank you I will be posting stats in a few hours. Want to get exacts. From initial testing I get over 50 t/s with full context. On the other hand my Mac M3 max gets about 10 t/s with context.
Alright then 1st order estimate compared with my setup then would be ~16x faster. Nice!
Oh that's with 70b not 7b. I can test 7b as well.
This is actually quite beautiful. I'm a PC builder so I'd pick up a completely different case - something white - more aesthetically pleasing RAM and I'd hide all the cables. It would be a really, really beautiful machine for graphics work & AI. Kudos for IfixIt :-P
Very cool, I have builds like that. Sadly this one will live in a farm relatively unloved or admired.
Really sad. Noctua fate, I guess :-P But some Noctua builds are really, really great - and those GPUs look super pleasing with all the rest of Noctua fans.
Lovely build. You mentioned it's going to be a legal assistant. I assume there's going to be a RAG layer?
Second question, what's your tech stack to serve/manage everything???
Side gig currently. I use Letta for RAG and memory management. I use proxmax running Debian and VLLM on that
I envy you. Thanks for sharing your photos and details. Hope the deployment goes well.
How are those blowers getting enough intake?
The A series cards are special made for this level of stacking thankfully. At full tilt they hit 80-83 degrees at 60% fan. That under several days load as well. I was very impressed.
Just seeing them that close together is making me uncomfortable 😝
Which models are you running on it? Are you also using rag and which software do you use?
Was it hard to make the graphics cards work together?
As for getting all the cards to work together it was as easy as adding a flag in VLLM.
LLama 70b 3.3 wither 4 or 8 bit paired with LETTA
It's more cheap to put your llm on a Serverless Bedrock Service than spend 10,000 dollars to run a Makima llm waifu in your own device 😩
Sounds more like a prostitute if she on public servers.
What's the memory bandwidth in this setup? And how many channels?
Regarding CPU the memory is 2400 mhz and 48 lanes total. As it stands memory bandwidth related to ram is inconsequential as everything runs on the GPUs. I could have gotten away with a quarter or the installed ram.
What sort of token generation difference do you get out of this compared to just putting a great 48gb card and spilling over into system memory.
This is all so new to me
Hmmm I have not tested this but I would suspect it would be at least 10x slower.
That's a nice clean build! How are the temps? Do the cards get enough airflow? I found that when I ran 4x A4000s next to each other, the inner cards would get starved for air, though not so much that it really caused any problems for single user inference.
Blow a fan on that bitch and doing it in the winter time with the window open.
Not going to link those cards?
Nope, it provides very little if any benefit to inference.
I wonder how MTT S4000 would look like in similar case?
A cost effective rig would be 2016 Xenon and 512GB ram. This is an overpriced gimmick
Is a 70b even worth it to run though?
Yes 100% especially when paired with Letta.
Is this the same thing as Letta AI, which gives AI memory?
p.s. thanks for sharing your setup and giving so much detail. Just learning to make my own setup. Your posts really help!