Back

DeepSeek V4 Flash on a Single AMD MI300X

192 points5 hoursgithub.com
GTP1 hour ago

Strange that in the prior art they didn't list DwarfStar, as it is able to run the same model (probably quantized differently though) in less memory. Maybe the author isn't aware of it?

fergusfinn20 minutes ago

nice! i think the higher HBM on Mi300x is really useful for this kind of thing

we did some work on this for 2xMi300x (kindly referenced in the readme) https://blog.doubleword.ai/deepseek-v4-flash-mi300x. https://hotaisle.xyz/quick-start hotaisle is great for getting Mi300x to experiment with

majke4 hours ago

I don't think you can buy a single "MI300X" unit, right? Only the box with x8 of these at a cost of ~250K EUR.

zhoutong4 hours ago

It’s available on demand from a few cloud providers. Seems like the cheapest is AMD Developer Cloud (https://www.amd.com/en/developer/resources/cloud-access/amd-...) powered by Digital Ocean at $1.99/hour.

Edit: Now I think about it, this might be the cheapest way to run the DeepSeek V4 Flash 0731 on a dedicated inference server at original weights. I haven’t run mixed load benchmarks but I guess it’s possible to generate $3-$4 worth of tokens per hour and still maintain a usable per-user throughput.

WASDx3 hours ago

At 830tok/s * 1 hour that's almost 3M tokens which is just $0.54 worth of tokens at Deepseeks current output price.

lnenad3 hours ago

830t/s is burst aggregate. ~500 is sustained and it's for 8 concurrent users. Meaning for $1.99/hour if you serve 8 users it's 8*$0.54, not just $0.54.

You shouldn't rent one out if you're just serving it for yourself, but from a financial standpoint if you sell to users you can take a 100% margin.

+1
minraws2 hours ago
Almondsetat3 hours ago

You get privacy for 4 times the cost

krisknez3 hours ago

How is that economically viable? They are selling at a loss?

+2
gpugreg3 hours ago
drob51845 minutes ago

I think Deepseek is selling roughly at cost (perhaps a slight premium). They don’t guarantee that they don’t train on the submitted prompts, so I suspect they are mining the data. Mining for what? Well, who knows. Best case, mining to make Deepseek better. That said, I use Deepseek all the time. It has done a whole lot of ‘ls’ commands on my system, though.

dietr1ch3 hours ago

They claim their advantage is knowing how to serve their models efficiently, which is quite possible since they design for it.

simlevesque48 minutes ago

They get all our invaluable data which they'll use to train the next model, to get more data, to train the model after.

pama3 hours ago

Use nvidia hardware instead and use a larger cluster serving many more users concurrently. Easily 10x–20x higher token rate per GPU with public solutions like dynamo and sglang.

thrownaway5613 hours ago

This is exactly what I came to say. The price of Flash is so cheap that trying to run it locally or with your own hardware is pointless. I was using it about a month ago to program some stuff and ran it for 4 days non-stop and it cost me about $2.

ux26647860 minutes ago

If you don't do any attention steering, custom decoding or meddle with the weights maybe. Services are worthless unless all you do is write positive prompts.

As others have mentioned, there's the privacy factor as well.

jorvi2 hours ago

With the cost of electricity, hardware depreciation and tok/s it rarely makes sense to run locally.

NitpickLawyer2 hours ago

> trying to run it locally or with your own hardware is pointless.

Serving local models has advantages other than price. If you work in restricted industries, or have a strong need to protect your IP, or if you just value privacy more than cost, you now have options.

Tepix1 hour ago

If you have 2x DGX Spark it will run quite nicely. They cost only $8000 or so and use less power so you may be able to rent them cheaper than the MI300X.

I found an offer to rent two at $1.65 per hour https://spark.enverge.ai/#pricing

The MI300X will vastly outperform it for only a slightly higher price.

langs3 hours ago

You need to optimize the KVCache part(save to disk to save compute) to achieve this goal.

throwawayffffas42 minutes ago

You can get one on ebay for like 20k, but it comes without the backplane and i dont think there is a pcie card adaptor from china like the ones for h200.

Lwerewolf3 hours ago

The MI350p exists and should run a decent quant (say, the ~96GB antirez mix) well, but you can get two rtx pro 6000s for one of these, or 8x (actually more) r9700 + probably the gear to run them, etc.

Otherwise, you can probably buy one of these second hand from somewhere (SXM A100s are available that way) and run it in an adapter board.

touisteur59 minutes ago

I thought MI350P wasn't available yet, curious where to source it right now.

_joel3 hours ago

I thought it was a consumer grade GPU until I saw the 192GB of HBM and 256GB or RAM.

varispeed2 hours ago

To be fair the development of GPUs have stalled over the years. If they kept up with the progress instead of focusing on enterprise market, likely 256GB consumer GPU would be a norm today.

baalimago4 hours ago

Give it an AI-bubble pop and these will be flooding the market.

segmondy2 hours ago

no they won't , the bubble is a financial thing. the demand is real and not going away.

_factor4 hours ago

They will be instantly bought out by companies, not individuals. The consumer bubble won’t pop for quite a while yet. Production also won’t ramp up while lack of real competition keeps the demand high.

aurareturn3 hours ago

When is it popping? Is the AI bubble in the room with us now?

dghlsakjg38 minutes ago

Nvidia has ever so slightly underperformed the SP500 YTD (at the exact time this comment is being typed), so its basically the apocalypse already.

amrit31282 hours ago

Tomorrow? Next year? In 5 years? Nobody can say. But we do know that AI is overvalued, so it WILL pop.

+2
aurareturn2 hours ago
baalimago3 hours ago

Next month perpetually

slaw2 hours ago

The AI bubble will pop when China gets access to EUV, so the earliest it could happen is 2030

tamimio2 hours ago

Thing is, GPUs will always be on demand, look at their history, initially for gaming, then for hash cracking, then 3D rendering, then for crypto mining, and now AI training and fine tuning. When AI bubble bursts, there will be another bubble taking over.

The only solution is more companies making high end units, only competition will make it better for consumers.

xorfish2 hours ago

This is still quite a bit away from the performance that deepseek gets on their H800. In their DSpark paper they report a throughput of 15k tokens/s/gpu. The MI300 should be able to compete with the H800 so there are probably still quite a few optimizations that can be made.

WhitneyLand31 minutes ago

Another headline of “model runs on x”, which usually means “let’s list how much you give up to run on x”.

Dumbed down quantization?

No. Full intended inference weights preserved, so far so good.

Slow performance?

No again. Looks like you could get over 150 tokens/second.

Give up context window size?

Yes. Original model is trained for and served at 1M, this is 256k. A very practical tradeoff though. Codex is in this range, and quality does start to drop off toward the full size.

Tepix1 hour ago

Unfortunately, the MI300X is an OAM module. The MI350P is the one you want: It's a PCIe card, but it has less memory: 144GB.

Luckily, DeepSeek V4 Flash will run in 144GB too because it's 256 MoE exports are native MXFP4 quantized.

WhitneyLand42 minutes ago

How do you figure that?

When they just loaded the weights alone, it was taking 156GB in vLLM. After warm-up and adding a KV cache pool, it took over 200GB.

And this implementation is already cutting down the 1M token context window you would normally get.

sylware1 hour ago

Is their hardware programming interface reasonable for implementing inference of frontier models: no quantization, several tera params?

BTW, how many many params open weight frontier models have? A few teras, 100s of teras?

wren699153 minutes ago

Kimi-K3: 2.8T

Qwen3.8-Max: 2.4T

DeepSeek V4 Pro: 1.6T

DeepSeek V4 Flash: 284B

(all are total parameter counts, not active parameters)

jkwang4 hours ago

[flagged]

hn0tdqaek42 hours ago

[dead]