NHacker Next on Rails
  • top
  • new
  • best
  • ask
  • show
  • jobs
login
GuidelinesFAQListsAPISecurityLegalApply to YCContact

Hacker News on Rails, powered by React on Rails Pro. Open the source on GitHub by ShakaCode.

Commit 06fc0df

Rendered at 09:05:35 GMT+0000 (Coordinated Universal Time) with Rails + React on Rails RSC.

Unmodified 748B DeepSeek-v4.1-Flash on one RTX 4090 (axel-labs.com)

404 points by bobbitybobob 1d ago | 105 comments

proxysna 1d ago
RAM offloading pushed to the max via a 500G of ram? It's cool sure, but would be cool to see some serious optimizations to NVMe offloading. It is much more likely scenario IMO.

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

hugmynutus 1d ago
> would be cool to see some serious optimizations to NVMe offloading.

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

zozbot234 16h ago
> 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.

This looks like a weird choice to me, unless you're only targeting single-stream decode (which is wildly inefficient in the aggregate)? SSD throughput is your bottleneck most of the time, so loading possibly wrong experts is not something you'd want to do. If you have free throughput available, you should probably split your workload into μbatches and overlap fetching and routing across separate μbatches.

hugmynutus 13h ago
> unless you're only targeting single-stream decode (which is wildly inefficient in the aggregate)

That is exactly what I'm targeting.

riobard 1d ago
> NVMe/PCIe 5.0 devices have a fair amount of race-to-sleep type builtin logic

will disabling ASPM and better cooling address this issue?

bayindirh 1d ago
NVMe drives provide a list of power states with their max power consumption and entering/exiting latencies in their SMART information (visible with smartctl -a).

If you limit the states your disk is allowed to switch with nvme command, you can trim this latency quite a bit, while keeping some of the power management in place, if you prefer.

hugmynutus 1d ago
water cooled + c states & ASPM disabled. NVMe controllers simply do not run at maximum power draw 24/7. Their peak draw can reach 10w during heavy transfers, that is why they get so hot, high speed busses need that power.
Aurornis 1d ago
> but would be cool to see some serious optimizations to NVMe offloading. It is much more likely scenario IMO.

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.

zozbot234 16h ago
> I doubt you can actually saturate all 128 PCIe lanes of bandwidth, but it would have some impressive numbers.

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.

lostmsu 20h ago
GPU is still connected with a single PCIe, so having more RAM and even faster SSDs won't help.
guybedo 1d ago
that's a cool setup, what team size can you serve with this setup ? what's the use case, mostly writing code ?
proxysna 23h ago
95% coding related tasks, some openSCAD work, red/blue exercises
ai_users_are_du 21h ago
Thats, but $70k + cost of your time for maintenance and fiddling.

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.

PcChip 1d ago
I have a 32-core Epyc and 512GB DDR4 RAM, with two 3090's and two 4090's using a quantized deepseek 4.1 flash with project maya

I'm only getting 40 Tok/s decode

very interested in trying their inference engine

walrus01 1d ago
Bottleneck difference might be that they're using an Epyc that uses DDR5, so higher GB/s throughput, and it's likely in 12-channel RAM configuration. Is your EPYC setup populating at least 12 DIMM slots?
bobbitybobob 1d ago
Nice setup. To be fair on the comparison, DDR5 on the 9534 has a big bandwidth edge over DDR4, and 78.8 tok/s was the long SVG run (our 18 short prose/code prompts averaged 42.81 tok/s). Still on the unmodified weights and a single 4090 though

Curious what quant and prompt mix you're getting 40 tok/s on with Project Maya

PcChip 1d ago
>Curious what quant and prompt mix

exl3 3.5bpw quant, full native context (268k?)

lnxsxu 1d ago
[flagged]
dang 1d ago
Some of your recent comments have been killed by our software because they've been classified as genai text, which is not allowed on HN itself (see https://news.ycombinator.com/newsguidelines.html#generated and https://news.ycombinator.com/item?id=47340079).

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

NooneAtAll5 1d ago
> 512GB DDR4 RAM

how do you live without an arm and a leg now?

tehlike 1d ago
I have about 1.5TB, bought before craziness, 35$/64G stick.
ozgrakkurt 21h ago
Wow that is so sad to read now
tehlike 13h ago
I know. It also saddens me I feel like I'm not putting them to beat possible use. And don't want to sell them either
matheusmoreira 1d ago
I wonder if we'll ever see those prices again...
holoduke 22h ago
Soon enough. Production capacity is going up at insane speeds. There will be a moment of stabilization or even less demand.
matheusmoreira 21h ago
I hope you're right. I thought the memory manufacturers were against capacity increases due to the risk. They say the demand could simply vanish overnight and leave them holding the bag.
jahnu 1d ago
Within 5 years I guess.
busssard 23h ago
yeah but in 5 years anything worth running will probably need more than 128gb ram.
lolive 17h ago
I have a few spare Black Lotus, if you are ok for a fair trade.

#richGeeksJoke

red-iron-pine 14h ago
i got mox if you got RAM
az226 1d ago
I got 7TB DDR4 ECC and 2TB DDR5 ECC :-) I also have 6TB of VRAM.

Running in my homelab.

busssard 21h ago
do you have a small datacenter in your basement?
znpy 19h ago
you can have that kind of memory (7TB) in a single (server-class) machine.

Not sure about the 6tb vram, that might require more than one machine.

busssard 18h ago
7TB DDR4? wow TIL
zamadatix 1d ago
More like "how do you live without an extra arm and leg now?". I.e. for those of us lucky enough to splurge right before the price went to the moon, we're left asking "should I just sell it now that it's THAT much?".
bz_bz_bz 1d ago
on one RTX 4090 and ~$20k worth of RAM*
these 1d ago
I think that's the point, less of the hardware cost is going to NVIDIA and more to RAM
rdtsc 1d ago
> I think that's the point, less of the hardware cost is going to NVIDIA and more to RAM

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?

jacekm 19h ago
RAM prices will eventually drop, I am not that optimistic about GPUs. And once the prices drop it will put larger models within the reach of consumers without specialized, enterprise-grade GPUs.
plaguuuuuu 7h ago
When RAM prices drop, GPU prices will also drop.

It will be in about 20 years lol

leidenfrost 1d ago
Deep down, we're all expecting a huge breakthrough that magically makes frontier intelligence work on a 24gb vram card and 64gigs of ddr4 ram.
volkk 1d ago
i think more options is always a good thing
altmanaltman 1d ago
more options in terms of competition is good thing, but more options because you there is no direct competition is not really more options just different ways of doing things
neutrinobro 1d ago
Yeah, you missed Micron, they'll happily take your cash too.
swalsh 1d ago
Are we building more memory foundries? Demand for ram is going to keep going up.
mewse-hn 1d ago
According to other threads on this site, it's apparently not price collusion when the makers decide to not invest in foundries despite demand skyrocketing - just the free market choosing not to compete I guess? I forget the argument, it's confusing
SideQuark 21h ago
The cost to start new RAM foundries is such a massive investment and takes a long time, it is too risky to build one in the hope prices don't drop before one can even begin making back the $10B+ needed to even get started.

Just simply enter "why do not more ram makers enter the market" into google, read the AI summary, check the references it provides. There is no mystery and it's very easy to find things out.

walrus01 1d ago
12-channel RAM CPU, so more like $26000 USD these days if we're looking at market rates for something like 12 * 48GB DDR5 ECC Registered.

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.

gpm 1d ago
Why are we paying for registered ram? I might be behind on hardware but I thought unregistered DDR5 was cheaper and neural nets generally quite tolerant to the occasional bit flip?
pgraf 1d ago
The Epyc processor OP used only supports registered RAM. Unfortunately, most server CPUs that provide enough channels for good memory bandwidth don't support unregistered DIMMs.
pixl97 1d ago
Not sure what board type it is, but many server boards with craploads of slots require registered RAM.
logicallee 1d ago
if it's really "one RTX 4090 and ~$20k of RAM " then that comes to around $23,000 right now (the RTX 4090 goes for around $3,0000.) For $22,290 you can get a 512 GB Mac Studio with M5 ultra new right now:

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.

shadowpho 1d ago
It’s better (and cheaper) to get 2x256gb Mac and hook them up together. You get more performance because Mac is quite a bit gpu starved
teaearlgraycold 1d ago
Yeah for local inference Apple is one of the better options. Although modded 22GB 2080Tis are also important to consider. You can get 200 tok/s out of them running Qwen 27B with NVLink and a forked version of vLLM. Not in the same class as the other models mentioned in this thread. But certainly worth thinking about.
jachee 1d ago
> right now

“Order today, delivers: Jan 5 – Jan 13 — Free”

Not exactly right now.

edg5000 21h ago
This post inspired me to run the new Qwen4 28B (MoE) on my old 6GB 2060, with 64GB of DDR4. This is an old Xeon. Got 30tok/s/ If GPT Astra is 50-60 tok/s this is not too bad speed-wise? The model was able to handle a simple spreadsheet task which involved some basic Python scripting. So maybe this thing will run some boring jobs for me. Pretty cool for such an old machine. I'm running the weights as released, not quantized.
edg5000 3h ago
Correction: I ran a Q4 quant. Oops. This hardware can absolutely not handle the native FP16 release. And it's more like 10 tok/s, that's why is feels kinda slow even compared to the relatively slow Astra.
127 1d ago
Something like full fat Deepseek v4.1 Flash quality on RTX 4090 AND ONLY 128GB of RAM would be revolutionary.
dietr1ch 1d ago
I'm guessing you can learn to time the DISK->RAM->GPU reads to make it feasible, which is probably the end-goal of many local-oriented inference engines.

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.

teleforce 9h ago
Please check Xolotl, open-source engine for running MoE models on a normal gaming PC [1],[2].

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

bilekas 21h ago
I can't figure these out, I am doing something wrong, because I have an AMD 9070(16 GB), with 64GB DDR5 6000, and when running Qwen 3.8 27B, with quant 3, I end up with maybe 9tokens/s.

LMStudio with full offload to GPU. 120k~ context.

I know nVidia is better suited than AMD but 10x the difference?

PaulKeeble 21h ago
You should be more like 35 token/s with that setup. I can't fit 120k context with quant 3 even with kv q4 in 16GB so I am going to guess that is your likely issue and you are spilling into RAM and then 9 token/s seems very likely. Try 16384 context and see if that fixes it and work upwards from there to find the right spot.

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.

aand16 20h ago
Sounds like the custom KV cache issue:

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.

l33tman 20h ago
I also tested that model with 64GB ram and a 5800 ryzen, including two RTX3080's in the machine, with llama.cpp doing auto-offloading to CPU/GPU/GPU but it also just reached 10-15 tps in that setup :/ Didn't investigate much further.
DA-Mike74 16h ago
Try project Maya, the 2.25 quant (you hardly lose anything over 3-bit), much lower context to start, say 16k and work your way up. Pin more experts, and turn on tail skipping, if needed (probably will be needed).

I think your main issue might be ram; you need closer to 160gb if I am correct.

nolok 18h ago
You're growing out of vram which tanks performance.

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

brador 19h ago
Context too high. Trim to 30k and up in 10k increments. You’ll settle around 60k imo.
robotswantdata 1d ago
5090 would be a better target card for KV optimisation.

512gb DDR5 ECC + 5090 setup was about $7k 2years back, but these days doesn’t make sense

matheusmoreira 1d ago
4090 makes sense for virtualization. It seems to be one of very few consumer nvidia cards that doesn't run into issues while resetting, which is necessary for good isolation per QubesOS documentation. 5090 can't be reset for some reason and requires full power cycles, lowering its value in a virtualized Linux setup.
ngl999 1d ago
Somewhat related, there's a PR sitting in the Maya repo that reportedly ran quantized DeepSeek on a single 7900XTX and a bunch of scrap Tesla T10s, with 64GB of DDR4, got 40 tps decode.

Adding another 7900XTX bumped prefill apparently.

https://github.com/mw00/project-maya/pull/1468

EDIT: add link

0x69420 1d ago
my immediate thought is this guy was a /g/ local models general poster. people on there love cobbling together wacky inference rigs out of varying degrees of ewaste. just a week ago there was this fellow: https://rentry.org/Max1100MAXX

...which, upon checking, appears to have made it into the master list of /lmg/ builds: https://rentry.org/lmg-build-guides

variety8675 1d ago
These ram cache projects are cool but the speeds aren’t anything usable unless you’ve got an absurd amount of memory
thrdbndndn 1d ago
Why does the article keep listing CPU + RAM as a bundle under the term "host", rather than listing them separately in a traditional CPU/GPU/RAM format as most people do when referring to their computer's specs? For what it's worth, it lists the GPU "normally".

(This is a genuine question, as I'm not familiar with this field.)

alanhaha 1d ago
Because this is an Ad. It wants you to know that Axel can run a large model on a single card, but don't want you to know much about the cost.
zeroq 1d ago
I've tried one of these projects.

While you technically use the model expect seconds per token levels of experience.

mungoman2 1d ago
They report 40+ tok/s. Not bad at all for this model class.
zeroq 14h ago
In my case it was collibri with combination of SSD, DDR4 and 3080.

It got me ~3 tokens per second. Nice party trick, but nothing usable.

blaaarg123 1d ago
the number is good theoretically. Practically it's unusable imho.
teaearlgraycold 1d ago
Depends how interactive you need it to be. But for vibe coding or interactive chat I want >60 tok/s and ideally >100.
WarmWash 1d ago
For the fist 500 tokens of context, or when you are already 80k tokens deep?
entrope 1d ago
DS4.1F does not slow down very much as a function of its context depth because its context is so small: under 1 KB/token, so under 1 GB for a full million-token context. The dense experts are almost 7 GB, and routed experts add another 3-4 GB during decode -- so a gigabyte of context adds about 10% of additional memory traffic. Models like Qwen3.8-27B can have contexts as big as their weights, so 100% additional traffic.

On my Radeon R9700 (32 GB) and 256 GB of DDR4 using Strata (before the author nuked the DeepSeek kernels) and the drafter, using Unsloth's UD_Q2_K_XL quantization, I get about 35 tok/sec for both shallow context and 400k of context.

IronWolve 1d ago
I'm running UD-IQ1_M .basalt on my 5090/64gig/nvme with about 65-85 tok/s and it did 30 of 33 on the LiveCodeBench v6 33 Problem bench, took almost 5 hours to run.

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.

yalok 1d ago
RAM cost for this is way more than 4090; also, you can't install so much RAM on your regular PC - needs workstation level motherboard & CPU, iiuc...

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.

andai 1d ago
I slopped 12-24k as cost estimate earlier.

Damn that GPU sounds cool though, thanks for the tip.

tokarev1986 14h ago
did you measured how it holds with 8 or more requests, in term of total t/s, per user t/s, and time for first token?
zakki 1d ago
Do they use their own program to offload it to RAM?
walrus01 1d ago
Yeah, but with an Epyc 9534 and presumably 512GB of DDR5 server RAM.
jonasbrunner 1d ago
Running an unmodified 748B on a single 4090 is an impressive result.
aitechpulse 16h ago
How much Ram does it needs ? and what was tok/sec?
jackalBrowseNov 1d ago
"We’re building toward a machine people can own that runs Axel(opens in a new tab) privately." -> with 500GB RAM, this kind of spec is not a regular consumer PC
znpy 21h ago
How lovely, i can skip buying a gpu, i just need 755.2 GiB of memory.
inshard 1d ago
All these local model efforts ignore one big thing: you can’t run parallel agent sessions? It’s, it’s pretty much a mono session, so we should start measuring like how many parallel sessions are running on the cloud versus what’s going on in your local stack because I don’t think you can really get the same work done if you go local unless you invest a quarter of a million dollars on hardware.
bobbitybobob 1d ago
Hey HN, I'm Joel, founder of Axel Labs. We're building Axel, a highly capable agent designed around persistent, long term context. This inference R&D is aimed at running Axel fully local and private on hardware you own, designed and built by Axel Labs, without shrinking the model.

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

kphorn 1d ago
This is cool and I like that you're publishing the results here. I think there's an important benefit to getting hybrid inference more widespread and I've been a big fan of Strata for a 16GB+64GB computer and am constantly looking for more and better tools here!

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!

antoinegirard 1d ago
A full 748B model running unmodified on a single 4090 is a genuinely impressive result
cjbprime 1d ago
It's basically not running on the 4090. Only 24GB / 748GB (3% of experts) is, right? The EPYCs have memory bandwidth closer to video card bandwidth than normal PC bandwidth, like Apple Silicon does.
xlayn 1d ago
yes... Q0.00001xxxxxxxxxs REAP 10% at 0.000001t/s, you can run it on a ESP32... is all about expectations.

Yes 748B model "tolerates" well lobotomy and trepanation.

walrus01 1d ago
While I am also extremely skeptical of these "we are running a giant 500GB+ model on one consumer GPU" claims, they do specifically say they're using the full FP8 weights.
Azantys 1d ago
Yes, one consumer GPU... and 20000€+ of RAM. Also a few thousand more for the Epyc board and CPU etc. and you are quickly at 25-30000€+. Thats the part no one wants to write in the headlines.
teaearlgraycold 1d ago
Pretty sure an M5 Ultra is the best option for someone trying to run models like this.
jubilanti 1d ago
Yet another boring system RAM caching project for those with 512GB to spare. Yawn.