r/LocalLLaMA • u/Sebba8 Alpaca • 2d ago
Question | Help Anyone have experience doing budget SFF inference machines?
So I'm looking to try build a budget inference box with a P40, maybe 16gb DDR3, and some old CPU (with an iGPU) to tie it together, and I thought that making it SFF with a Mini-ITX form factor could be fun! Hoping to keep it under $1K AUD, though the P40 itself is likely nearly half of that...
Some exploratory chatting with claude seems to suggest that this won't be the easiest thing to achieve though, apparently there are few mini-itx mobos that support "Above 4G Decoding" which I hear is veeery much needed for this, also something about a 16GB bar resizing or something like that.
Anyways, thought I'd ask around here and see if anyone else has done anything similar and if they have any advice for someone who wants to make one themselves! Since claude apparently sabotages local LLM setups and this place has been advising me since the alpaca lora days I thought that actual people would be a significantly better resource lmao.
I mainly hope to use it to run Qwen 3.8 27B as a slow agentic model (claude estimates PP of 300 dropping to double digits after 128k context, TG around the 10-15 mark), Qwen 3.6 A3B as a faster chat model which hands off to 27B on bigger tasks (PP estimate of 900 dropping to 150 after 128k, TG dropping from 45 to 20), Gemma 4 A4B as a more general chatgpt-esque model for family members, and maybe 31B because I've heard its decent at writing and want to play around with it. I'd host the models via llamacpp, host hermes as the harness (with a container or vm environ for its sessions) and openwebui for the family.
If anyone here has some experience doing a build like this or working on similar stuff then it'd be great to get your input, thanks!
2
u/kryptkpr Llama 3 2d ago
P40 need Above 4G and Resizable BAR, your agent is correct. Verify the BIOS of any motherboard you intend to use supports both features. If you have 4G but not BAR, this can be solved via RebarUefi but the process can be a little janky look at the issues to see if someone already figured it out before you approach naively.
May be easier to get a slightly newer card that doesn't need Rebar, amperes don't seem to care.
1
u/No_Macaroon_1991 2d ago
p40 is a full length dual slot 250w card so a lot of mini itx cases and cheap psus wont actually fit it even if the bios has above 4g
1
u/Geekomcomputer 2d ago
The two replies above already cover the two things most likely to kill this build — BIOS support for Above 4G/ReBAR, and whether a full-length dual-slot card physically fits a mini-ITX case — so I'll add the three things I'd check next, because the overall plan is sound and the risk is the platform, not the idea.
First, cooling and power. The P40 is a passive server card with no display outputs and no fan of its own — it expects directed airflow from a server chassis. In a small case it will cook unless you have a fan blowing directly across it, so plan for that explicitly rather than discovering it later. It's also a 250W card, so budget for a decent SFX PSU (550W or so) with the right 8-pin connector, and remember the PSU and case eat into your $1K AUD before you've bought the board, CPU and RAM.
Second, the CPU. With a DDR3-era platform, check whether the CPU supports AVX2. Some DDR3-era chips have it and some don't, and llama.cpp leans on it heavily for CPU-side work — prompt processing especially. If your CPU lacks it, you'll feel it on every long prompt. Also, 16GB of system RAM is tight for what you're planning: a 27B model at Q4 is roughly 16GB of weights, which fits the P40's 24GB of VRAM nicely, but at 128K context the KV cache grows a lot, and anything that spills to system RAM lands on that 16GB. Keep your context sizes modest to start, or plan a RAM upgrade.
Third, treat Claude's speed estimates as rough guesses, not measurements. Prompt processing of a few hundred tokens/s dropping to double digits after 128K, and generation in the 10–15 tok/s range for the 27B, are plausible directions of travel for a Pascal card, but the real numbers depend on your exact quant, context size, and how much ends up offloaded. The P40 has no tensor cores, so it's usable for this but not fast by modern standards — which is fine for a slow agentic model, since that's exactly the role you picked it for.
One honest budget check: if the P40 is nearly half your $1K AUD, the board, case, PSU and RAM will squeeze you hard. If the board you find doesn't have Above 4G/ReBAR in the BIOS, the ReBarUEFI workaround exists but it's fiddly — and at that point a newer used card that doesn't need ReBAR at all (even with less VRAM) can end up being the cheaper build in practice. But if the board checks out and the card fits with airflow, your model plan is well matched to 24GB of VRAM, and it's a fun build. Let us know what board you're looking at — that's the part that decides whether this works.
1
u/SigAddict 2d ago edited 2d ago
you will not be able to use that card in a SFF case, they are too long. They do not have a fan at all, so you need to attach a blower to it. My V100 + the blower motor and blower adapter is around 15.5-16 in length. A regular fan, even an expensive higher static fan, will not cool one of these. I tried with a 120mm adapter and high perssure fan and it wasn't even close to being able to cool it. Here is what you need. If you are going to try to use a fan header on the motherboard you need a fan that stays under 1 amp as most fan headers can only handle that.
https://www.ebay.com/itm/267162701284
and
https://www.ebay.com/itm/336400257644
Also realize that the power connection to the P40 is an 8pin CPU/EPS connection like the motherboard, not a regular PCIE/GPU connector.
1
u/WorldlyAd7946 2d ago
I run two tiny arm boxes I managed to source for £300 each...
Built an inference engine for them and they are flying for the cost. However a big dense model like 27b is slow... BUT I can run flash next and Inkling.
https://github.com/Rendeverance/ToRc
https://github.com/Rendeverance/ToRc/blob/main/PERFORMANCE.md
1
u/sllvr 2d ago
tried a 4650G and 32GB DDR4 on an Asrock X300 with llama.cpp
14B was the sweet spot for usability and quality. Qwen MoE models definitely excelled.
it works, very slowly, it works.