405 points · by bobbitybobob · 2d ago · 106 comments
A more traditional setup i am running since a few weeks ago deepseek 4.1 at around 300 tok/s with this. Exceptional stuff for medium sized teams. https://github.com/sybil-solutions/deepseek-v4.1-flash-4x-rt...
As somebody who has played around with this [1] one problem you run into is NVMe/PCIe 5.0 devices have a fair amount of race-to-sleep type builtin logic [2] so your replies can get into a really wonky space, just startup lag. What's interesting is you can LRU type things (in GPU & local RAM) which does noticeable improve performance [3]. What I haven't gotten around too is training a model to "race the beam" (so to say) and pre-load experts for future tokens. It definitely -seems- possible [4] [5]
---
1. Worked with agents to patch DMA support into xe2-hpg series GPUs https://github.com/valarauca/linux/pull/1
2. This is based off my own measurements but mostly conjecture from knowing how much power they suck & heat they throw out. Initial reads have a slow (100-200μs) ramp up before latency drops back to the predictable 10-20μs, at least from my measurements.
3.https://github.com/valarauca/Strata/blob/main/migration/NOTE... Granted I'm able to load ~60% of experts at once into my VRAM, so I'm slightly cheating.
4. https://arxiv.org/abs/2603.19289
5. https://arxiv.org/abs/2605.11537
*Edit Update* Somebody posted an engine 6hr ago to LocalLLAMA: https://github.com/runmyai/tokenwing haven't read the code but it claims to do some of these things
will disabling ASPM and better cooling address this issue?
The EPYC 9534 in the article support 12-channel DDR5. That's around 450GB/sec bandwidth. Less in practice, but still a lot.
That's about 30X faster than the fastest PCIe 5.0 SSDs you can buy. Interestingly, you could theoretically put 30 of them on to the PCIe bus of that CPU if everything worked out on the platform. $7000 of SSDs and enough adapters to make it all work, with a lot hope that the BIOS doesn't get in your way and no weird driver problems appear. Would be fun to see someone try this. I doubt you can actually saturate all 128 PCIe lanes of bandwidth, but it would have some impressive numbers.
For experimenting with one SSD, you can find a lot of projects that do a multi-tier split of experts across VRAM, RAM, and SSD, or SSD and unified memory. With quantized models and some intelligent expert selection strategies the speed can be almost reasonable, but the more they access the SSD the slower it gets.
Since you'd obviously be wildly overprovisioning SSD raw capacity in that scenario, you could leverage further gains by offloading sparsely accessed KV-cache layers to the SSD, and reusing that RAM as fast cache. This isn't generally done because SSD wear and tear is a concern, but KV cache in plain old transformer models is a bulk append-only workload which does not wear out the SSD too much (minimizes write amplification). More recent fixed-size attention is different though, that gets overwritten in place and is suited to RAM.
Whats tps with concurrency=4 (not sure what medium sized team is). I dont think this rig could pay for itself in any reasonable amount of time. But I concur there are other benefits outside just cost per token.
I'm only getting 40 Tok/s decode
very interested in trying their inference engine
Curious what quant and prompt mix you're getting 40 tok/s on with Project Maya
exl3 3.5bpw quant, full native context (268k?)
(It's fine, of course, to use AI tools—we use them ourselves. Just please don't use them to generate or edit text to be read by fellow humans on Hacker News.)
It's impossible to know for sure what was LLM-processed, but we have to rely on imperfect classifiers, or HN would be flooded by genai text, which is not what the community here wants to read, nor in the intended spirit of the site.
how do you live without an arm and a leg now?
#richGeeksJoke
Running in my homelab.
Does it matter? Is it just to keep the cash out of Huang's paws and hand it over to Samsung or Hynix instead. Or am I missing something obvious?
Considering the GPU, cost of the CPU, motherboard, one basic NVME SSD to hold the model, we're looking at a minimum of $30,000 to $35,000 of hardware here at full market prices, unless someone had the foresight and was lucky enough to buy the hardware for this at early 2025 market prices.
So yeah, uh, basically the claim is "we're getting 76tok/s decode on Deepseek V4 flash 1017 FP8 on $35,000 of locally hosted hardware", which doesn't seem like such a shocker to me.
I wouldn't be so sure that occasional bit flips are fine for LLM inference, but if they are, perhaps non-ECC registered RAM will become more common...
https://www.apple.com/shop/buy-mac/mac-studio
I'd be interested to know how it compares. This makes me think the Mac Studio might perform 20% better:
https://llamaperf.com/compare/m5-ultra-256gb-vs-rtx-4090
It has much faster memory than DDR 4.
“Order today, delivers: Jan 5 – Jan 13 — Free”
Not exactly right now.
Attacking the RAM->GPU problem first is a good way of defining how good performance can be prior to committing to the whole problem at once.
You can do DISK->GPU reads along the RAM->GPU ones too, but I guess it'll take some experimentation to find how to minimise GPU stalls.
[1] Xolotl:
https://github.com/Indras-Mirror/Xolotl
[2]Xolotl: Four Frontier Models on One Gaming PC:
https://indrasmirror.au/blog-xolotl-frontier-models-one-gami...
512gb DDR5 ECC + 5090 setup was about $7k 2years back, but these days doesn’t make sense
Adding another 7900XTX bumped prefill apparently.
https://github.com/mw00/project-maya/pull/1468
EDIT: add link
LMStudio with full offload to GPU. 120k~ context.
I know nVidia is better suited than AMD but 10x the difference?
If you want to see it "run well" just once to confirm use Unsloth Desktop instead of LM Studio, whatever affinity I have for LM Studio, Unsloth is a lot better at finding the right settings for your computer.
Then once you got it just copy its settings into lm studio (kv cache, quants, etc ...)
Personally I would recommend switching to unsloth and let it fit the context, it will max out out the card and its just a better app overall.
there's a longstanding "feature" of llama.cpp where if you use KV cache quantisation other than BF16, Q8 or Q4 for both keys and values, it silently uses a slow path on the CPU.
Llama.cpp project doesn't include optimizations for various mixed KV cache quant types in their released binaries, therefore each user of e.g. Q5,Q4 KV cache quant has to recompile the project with the appropriate flags for each local update.
I think your main issue might be ram; you need closer to 160gb if I am correct.
While you technically use the model expect seconds per token levels of experience.
On my Radeon R9700 (32 GB) and 256 GB of DDR4 using Strata (before the author nuked the DeepSeek kernels) and the drafter, I get about 35 tok/sec for both shallow context and 400k of context.
(This is a genuine question, as I'm not familiar with this field.)
Gemini implemented every tune/tweak it can find from top opensource llm engines to get that speed.
With the new loop overlays out, should bump up the intelligence some too, even for quants.
AMD Threadripper - 2-4k
Motherboard - 1k
512GB DDR5 RDIMM - 20-25k
4090 - 3k
so total cost is 25-35k
at this rate, replace 4090 with RTX PRO 6000 Backwell (adds ~10k, 30% more) - and you get much faster TTIT due to 96GB GPU RAM and 4bits native support.
This was a test of how large of an unmodified model we can serve on one machine, at respectable speeds. A few details the headline leaves out: the active 24 GB RTX 4090 isn't doing this alone - the engine ran with one AMD EPYC 9534 socket and 468.1 GiB of resident host RAM. Speed also varied by workload: the filmed SVG run averaged 78.76 decode tok/s, while a separate set of 18 short prose and code requests averaged 42.81 decode tok/s. DSpark speculative decoding was enabled, and the reported rates count committed output tokens delivered to the client. On the 128K-token retrieval test, time to first token was 196.9 seconds.
The engine is closed-source right now since it's part of what we're building at Axel Labs. The post has the original-speed recordings, exact prompt, raw SVG, run receipt, and SHA-256 checksums. Happy to answer questions about the setup and numbers
I think you ran this with thinking off, can you enable thinking and how does that affect performance? I'd also like to understand prefill performance and how stable it is over longer contexts lengths! finally, are you exposing an OpenAI or Anthropic endpoint such that this could hook into various harnesses? And how are you using the CPU in this case? Llama Swap uses CPU and GPU pretty well on my 16c Zen 5 + 5080m computer but I'm constantly chasing forks and patches to cover compatibility.
I hope you can find a way to open source it that drives business your way!
Yes 748B model "tolerates" well lobotomy and trepanation.