Skip to content

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:

Intel Xeon W-2155 10-Core - $167.43 (used)

ASUS WS C422 SAGE/10G Intel C422 MOBO - $362.16 (open-box)

EVGA Supernova 1600 P+ - $285.36 (new)

(256GB) Micron (8x32GB) 2Rx4 PC4-2400T RDIMM - $227.28

PNY RTX A5000 GPU X4 - \~$5,596.68 (open-box)

Micron 7450 PRO 960 GB - \~$200 (on hand)

Personal Selections, Upgrades, and Additions:

SilverStone Technology RM44 Chassis - $319.99 (new) (Best 8 pcie slot case imo)

Noctua NH-D9DX i4 3U, Premium CPU Cooler - $59.89 (new)

Noctua NF-A12x25 PWM X3 - $98.76 (new)

Seagate Barracuda 3TB ST3000DM008 7200RPM 3.5" SATA Hard Drive HDD - $63.20 (new)

Total w/ gpus: ~7,350

Issues:

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.
19 points

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.

8 points

Noctua is the shit💯

That’s a sexy build - how’s the heat of that thing?

8 points

It's actually pretty manageable thermal wise. Has the side benefit of warming the upstairs while she waits for relocation.

1 points

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

1 points

Cost-effective 70b 8-bit Inference

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.

0 points

It was cost effective until you added GPUs, you could run 70b modem on CPU alone (at low tps).

-1 points

Erm this would run 8 bit at maybe 1ts without the GPUs. I get 170+ t/s concurrent with the GPUs.

2 points

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.

7 points

I was thinking this as well, the only thing is I hope DIGITS launch goes much better than the 5090 launch.

5 points

Idk if I would call it a launch. Seemed everyone got sold before making it to the runway hahah

1 points

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.

3 points

Ahh that makes more sense. Concurrent users is another thing to worry about 

1 points

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”.

2 points

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.

1 points

What do get for tps on a 70b 8q on that type of rig

3 points

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

2 points

What models + tokens per second?

3 points

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.

2 points

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.

2 points

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.

3 points

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.

3 points

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.

1 points

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

2 points

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.

1 points

Where are you seeing a5000 for less than 3090 turbo? Anytime I look a5000 are a couple hundred more at least.

2 points

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.

1 points

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.

2 points

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.

1 points

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.

2 points

[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.

2 points

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

1 points

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.

2 points

Alright then 1st order estimate compared with my setup then would be ~16x faster. Nice!

1 points

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

1 points

Very cool, I have builds like that. Sadly this one will live in a farm relatively unloved or admired.

1 points

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.

2 points

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???

1 points

Side gig currently. I use Letta for RAG and memory management. I use proxmax running Debian and VLLM on that

2 points

How are those blowers getting enough intake?

1 points

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.

6 points

Just seeing them that close together is making me uncomfortable 😝

1 points

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?

1 points

As for getting all the cards to work together it was as easy as adding a flag in VLLM.

3 points

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 😩

1 points

What's the memory bandwidth in this setup? And how many channels?

1 points

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.

1 points

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

1 points

Hmmm I have not tested this but I would suspect it would be at least 10x slower.

1 points

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.

1 points

I wonder how MTT S4000 would look like in similar case?

1 points
Low-Opening25Deleted · saved before deletion

A cost effective rig would be 2016 Xenon and 512GB ram. This is an overpriced gimmick

1 points

Is a 70b even worth it to run though?

0 points

Yes 100% especially when paired with Letta.

1 points

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!

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.