alt.hn

8/4/2026 at 10:00:55 AM

DeepSeek V4 Flash on a Single AMD MI300X

https://github.com/ryanzhou/deepseek-v4-flash-mi300x

by zhoutong

8/4/2026 at 10:44:26 AM

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.

by majke

8/4/2026 at 10:54:46 AM

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.

by zhoutong

8/4/2026 at 11:17:12 AM

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

by WASDx

8/4/2026 at 3:39:43 PM

There’s also input tokens. For many agentic use cases input/output ratio can be 2:1 or even 4:1. Non-quantised DeepSeek V4 Flash costs $0.14 / $0.28 on most inference providers with ZDR. When self-hosting the model, cache hits are basically free. RAM cache also helps with hit rate (prefixes may be around for hours instead of minutes).

To be clear this project doesn’t aim to achieve the best inference economics per token. MI300X doesn’t have native MXFP4 so it’s not even the right platform for the model. That’s why very few deployment recipes are available.

It’s interesting to me because MI300X is quite accessible to a small team with budget for just 1-2 GPUs. DeepSeek V4 Flash otherwise wouldn’t even fit on 2x H100s.

We can run several coding agents during the day and batch inference jobs overnight and serve the entire team with guaranteed privacy, without compromising precision or speed.

In fact we found that many inference providers are quantising the weights or even KV cache, and due to the low prices they serve at massive batches, resulting in unstable throughput. I ran GSM8K as a quick validation test and this deployment is “better” than the OpenRouter endpoint in a statistically significant way (I wouldn’t name the provider here). I will run some follow up benchmarks and update the repo when I find some time.

by zhoutong

8/4/2026 at 12:04:02 PM

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.

by lnenad

8/4/2026 at 12:29:32 PM

Bro 500 Aggregate. so that's 500 * 60 * 60 = 1.8M output which is .5$ at best... Not including pre-fill and stuff.

This is not the real margins, even if you are selling to 8 users it's 90 tps per median stream. So assuming that .6-.7$

This is not even remotely worth it.

You need to 3x this tps(~1500 tps) to be worth it, and that's what most providers are doing, at 20-30 users at 50-60 tps with better optimized batch processing and kernels you can make some profit.

by minraws

8/4/2026 at 12:49:14 PM

You are right, it's not 500x8 it's 90x8.

by lnenad

8/4/2026 at 12:09:49 PM

You get privacy for 4 times the cost

by Almondsetat

8/4/2026 at 11:53:55 AM

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

by krisknez

8/4/2026 at 12:08:44 PM

Agentic workloads are somewhere around 1%/0.5%/98.5% input/output/cached tokens. Cached tokens are pretty much free for inference providers (if they implement sparse and compressed attention properly) and throughput for input tokens is much higher.

Lets assume that you've got 2 million input tokens, 1 million output tokens and 98.5 million cached tokens to process. That would cost 2 * $0.14 + 1 * $0.28 + 98.5 * $0.0028 = $0.8358 with DeepSeek API pricing.

For comparison, it would take 2M / 8000 + 1M / 800 = 1500 seconds to process this amount of tokens with the linked framework, which is about $0.83 when we assume $2/hr for one MI300X.

However, other inference providers have 10 times higher prices for cached tokens, which results in a comfortable margin.

And we should not discount that DeepSeek also gets paid in data, which is probably more valuable to them.

And I believe that this framework still has some room for optimization for generation with high batch sizes.

by gpugreg

8/4/2026 at 1:19:39 PM

Your math is a bit funny if you're assuming the 1/0.5/98.5 ratios: you doubled input and output tokens but not cached. If you double cached tokens to match your original ratio it works out to around $1.11, and if you 10x the cached token cost it's around $6.08.

Based on your $0.83 estimate, the margin isn't great. This is within shooting distance of "at cost" which is probably pretty close to what DeepSeek is operating with, ignoring the value of the data they're collecting of course.

> And I believe that this framework still has some room for optimization for generation with high batch sizes.

If that optimization can bring this scenario closer to $0.50 then it gets pretty compelling, otherwise I'm not confident.

by xyzzy_plugh

8/4/2026 at 3:09:08 PM

Oh, I messed up. Half-way through, I thought it would be a good idea to double the numbers so I don't have to deal with half millions, but forgot to also double the 98.5. Unfortunately, I can not edit it anymore.

I think the margins of DeepSeek may be a bit better than with this vibe-coded framework here, since they had the liberty of optimizing their models for their own hardware.

For DeepSeek V3, they claimed a cost profit margin of 545%: https://github.com/deepseek-ai/open-infra-index/blob/main/20...

At the time, open frameworks were not anywhere close to achieving that number. Not sure whether they caught up. The software wizards at DeepSeek are quite skilled.

by gpugreg

8/4/2026 at 2:21:15 PM

> should not discount that DeepSeek also gets paid in data, which is probably more valuable to them

That's agentic feedback loops for training, right? Any more detail on this, such as how they actually tell whether that data is good or not? That seems like a very hard problem, and like the value of that data is low compared to just building their own, controlled RL gyms.

by throw10920

8/4/2026 at 3:20:58 PM

Agents usually start with ingesting the existing code base, and DeepSeek can use those code bases for pretraining. And they will have filters on top of that to throw out garbage.

I am not sure how they are using the data for post-training, but there probably are ways to get signal out of it, e.g. sentiment analysis when the user begins cursing at the agent, or checking whether the user continued another session with the generated code, or started a new session with the same starting point as before, i.e. they git-stashed.

Generally, you can train on data that is quite bad (e.g. the entire internet). It will still work, but take much longer compared to clean data.

by gpugreg

8/4/2026 at 2:51:36 PM

> They are selling at a loss?

Definitely not. Inference is not as expensive to operate as many people seem to assume. The frontier labs are probably making a lot of money from selling tokens. It’s covering all of the R&D costs like salaries, collecting training material, and running the large training operations that costs a lot of money.

by Aurornis

8/4/2026 at 6:39:49 PM

> It’s covering all of the R&D costs like salaries, collecting training material, and running the large training operations that costs a lot of money.

Are you claiming that the frontier labs like OpenAI and Anthropic are actually making a profit contrary to all the claims?

by cheema33

8/4/2026 at 7:55:14 PM

They claimed that OpenAI and Anthropic have positive gross margins. I don't think there are many credible claims saying that's not the case (at least for API usage)?

by qwytw

8/4/2026 at 11:59:46 AM

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

by dietr1ch

8/4/2026 at 12:13:10 PM

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.

by pama

8/4/2026 at 1:59:24 PM

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

by simlevesque

8/4/2026 at 3:48:09 PM

[flagged]

by jingpostmedia

8/4/2026 at 2:02:09 PM

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.

by drob518

8/4/2026 at 12:02:34 PM

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.

by thrownaway561

8/4/2026 at 8:13:15 PM

It's expensive to run it locally at full quality, but at least on my setup, its about 5 times faster than any API, and is completely private.

by ak_t

8/4/2026 at 12:49:20 PM

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

by NitpickLawyer

8/4/2026 at 6:22:59 PM

[flagged]

by YKutsev

8/4/2026 at 1:47:36 PM

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.

by ux266478

8/4/2026 at 12:50:00 PM

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

by jorvi

8/4/2026 at 1:29:32 PM

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.

by Tepix

8/4/2026 at 3:59:46 PM

As other calculated, even with a Mi300 you could not saturae it enough with one stream to break even with the DS API, so I think renting sparks would make it even harder cause they are considerably slower.

(274gb/s vs 5.3tb/s)

by K0IN

8/4/2026 at 11:33:33 AM

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

by langs

8/4/2026 at 11:31:35 AM

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.

by Lwerewolf

8/4/2026 at 1:48:29 PM

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

by touisteur

8/4/2026 at 6:36:31 PM

There's at least one systems integrator selling a rack server with 2x MI350Ps.

I haven't seen the cards all by themselves yet.

by FuriouslyAdrift

8/4/2026 at 2:05:07 PM

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.

by throwawayffffas

8/4/2026 at 12:09:57 PM

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

by _joel

8/4/2026 at 12:19:50 PM

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.

by varispeed

8/4/2026 at 6:37:04 PM

It's a chopped down MI350X (roughly half the performance)

by FuriouslyAdrift

8/4/2026 at 9:04:46 PM

Basically right from Lisa Su's speech: "AMD is essentially taking one of its MI350X accelerators and cutting it in half, resulting in a card with half as many compute resources, half as much memory, and perhaps most importantly, a bit over half of the power consumption"

by FuriouslyAdrift

8/4/2026 at 10:49:50 AM

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

by baalimago

8/4/2026 at 1:13:58 PM

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

by segmondy

8/4/2026 at 2:48:54 PM

The big question is whether the demand will stay if the subsidized pricing ends. That's what the bubble talk is about. Right now all the players compete for market share and don't care about the losses (hence the debt). But what happens if no one wants to lend them anymore?

by atwrk

8/4/2026 at 3:55:25 PM

I don't think inference is subsidized, it's the training. So what happens is, there's no new models anymore or are released slower.

by jack_pp

8/4/2026 at 6:34:49 PM

API inference is probably not subsidized. Coding plans absolutely are.

by FeepingCreature

8/4/2026 at 4:28:05 PM

Good distinction. The demand is partially driven by the low costs, which are only low because the major providers are losing money.

by vehemenz

8/4/2026 at 8:00:29 PM

There is no evidence they are losing money on inference, though?

Also if they are keeping the price low because they want to gain market share and reduce the competitiveness of Chinese models they won't be able to raise prices without providers serving open models (at cost + low margin) severely undercutting them.

by qwytw

8/4/2026 at 10:55:42 AM

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.

by _factor

8/4/2026 at 11:39:57 AM

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

by aurareturn

8/4/2026 at 2:09:36 PM

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

by dghlsakjg

8/4/2026 at 12:27:26 PM

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

by amrit3128

8/4/2026 at 12:39:18 PM

Well, if no body can say when it will pop, then can we really say it's a bubble and it's overvalued?

I can tell you it will pop in 10 years and when it pops, it will still be 20x bigger than in 2026. Does that even make any sense?

People said AI bubble will pop soon in 2024 and that it was overvalued. Turns out, many AI stocks 10x, 20x since 2024. Actual usage has gone exponential as well. Anthropic revenue went from $100m ARR at start of 2024 to $80b ARR today.

by aurareturn

8/4/2026 at 12:57:03 PM

> Well, if no body can say when it will pop, then can we really say it's a bubble and it's overvalued?

Well, given the literal trillions being spent, the only ways this pays off are:

1. AI replaces a non-trivial fraction of human employees.

2. Someone builds a Culture Mind, and humans become (hopefully) pampered pets of AIs we don't understand. Seems unlikely, but it would arguably count as a payoff even if it made money meaningless.

Or maybe the AIs don't want pets, and you get SkyNet. Which definitely doesn't care about paying off anyone's investments.

When you look at various news articles about investors, yeah, there are definitely a lot of rich people who think that they're going to automate all human labor or just bring about the Singularity. Possibly with them in charge of the rest of us. If you don't make these kinds of wild assumptions, then yeah, this is looking like one of the biggest bubbles ever.

by ekidd

8/4/2026 at 1:29:32 PM

Can we see some actual numbers, projections, models instead of vibes?

by aurareturn

8/4/2026 at 8:03:15 PM

That's what you should ask the companies spending massive amounts of money on AI though?

by qwytw

8/4/2026 at 3:37:33 PM

1. AI replaces a non-trivial fraction of human employees.

I mean, it's pretty clear that's going to happen. How could it not?

The only question is whether resources are optimally allocated at the moment to prepare for this. That seems unlikely at best. So yes, there is probably a bubble, and if so, then yes, it will pop, and then life will go on, with resources better allocated. Just like when the dot-com bubble popped.

by CamperBob2

8/4/2026 at 12:56:22 PM

Many are saying July 2027, as in the past these market corrections have correlated with Shrek movie releases.

Debt-backed investors have to pay up eventually. =3

by Joel_Mckay

8/4/2026 at 12:03:24 PM

Next month perpetually

by baalimago

8/4/2026 at 12:30:32 PM

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

by slaw

8/4/2026 at 1:01:55 PM

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.

by tamimio

8/4/2026 at 1:42:23 PM

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?

by GTP

8/4/2026 at 3:17:55 PM

The focus of this repo is the MI300X and DwarfStar doesn't include any optimizations/fixes for it.

by MaKey

8/4/2026 at 1:28:21 PM

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.

by Tepix

8/4/2026 at 2:05:34 PM

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.

by WhitneyLand

8/4/2026 at 7:35:34 PM

For sure if you want to properly utilize the model with several users in parallel and large context you'll want two MI350P.

by Tepix

8/4/2026 at 4:54:40 PM

Just want to add that while the MI350P is a PCIe card, it is designed for servers. It just has a heatsink (with no fan) which the powerful full-case fans of a rackmount server are supposed to cool. So while the MI350P is certainly more attainable for us regular folk due to its formfactor, we won't be able to just drop it into our gaming PCs like a regular graphics card.

That being said, if you're dropping tens of thousands of dollars on graphics cards then picking up a rackmount case to go around the card is pretty insignificant.

by craftkiller

8/4/2026 at 5:49:50 PM

Just put a fan on it. It's just 600W, so nothing super-special is needed. Or add a water cooler.

by cyberax

8/4/2026 at 6:21:21 PM

You're going to need at least a couple loud ass IPPC 3000s to usefully move that kind of heat if you don't want it to throttle. And then another normal sized fan for the doorway of the room it's in.

Not exactly super special, but a ~constant 600W+ of heat tends to be a learning experience. It's worse than a high end gaming rig, much closer to a literal space heater. I don't work during the summer because it sucks fighting both this and the sun with AC. I do have a fan that slots into the window and can push or pull, but kicking the waste heat outside doesn't help when its humid.

by monster_truck

8/4/2026 at 2:16:31 PM

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.

by WhitneyLand

8/4/2026 at 6:08:56 PM

In my experience the 1M context is genuinely too much. The first time I swapped from OAI to DSv4P, I checked and double checked that the harness/etc was working correctly over the course of hours and hours of work thinking that I had set something up wrong because it simply never had to compact! The drop in quality is arguably less than that of what you get from compact to compact on Codex, which is good for what it is or was.

Was also surprised to learn just how much of Codex's window was being burnt on shit I didn't want or use. Sure I can pass this and that flag to eliminate most of it, but for a $200/mo product aimed at professionals, that isn't something anyone should have to janitor (also totally ignoring the bandaid of banked resets they've slapped over their repeated mistakes).

It's wild just how far $20 will get you with Deepseek, even at their new rates. Buyers Remorse is my very least favorite feeling, I felt sick thinking about what the $1200 I had given OAI this year would have gotten me had I only tried sooner.

by monster_truck

8/4/2026 at 3:09:47 PM

I am curious if there has been work to remove experts from an open-weights model. The goal would be to reduce the size to be able to run on desktop GPUs without compromising quality. For a focused usecase - say coding, you dont need a model that knows world history. And, I am not talking about quantization. If it is possible to determine which experts are active for some usecases, and surgically remove the others.

by bwfan123

8/4/2026 at 5:10:45 PM

Experts aren't trained on separate tasks. More recent routers are designed to spread out requests even more evenly, and they were already pretty even.

by smallerize

8/4/2026 at 6:11:24 PM

Glazing over a lot, that's how they work already, just not in the way you think. A relatively small fraction of the model is active at any given time

by monster_truck

8/4/2026 at 7:37:03 PM

Yes. It's called REAP and from what I've seen, results aren't stellar.

by Tepix

8/4/2026 at 12:51:45 PM

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.

by xorfish

8/4/2026 at 4:43:18 PM

throughput scales superlinearly with number of GPUs when networked well and deployed with wideEP, so 1x won't compare.

also it would be interesting to figure from the DSpark paper whether their numbers are consistent with the GPUs still being H800s, since they never actually say...

by somnial

8/4/2026 at 1:41:07 PM

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?

by sylware

8/4/2026 at 6:43:25 PM

Yes, ROCm can be used to run frontier models and is being used by OpenAI, Anthropic, and Meta.

by wmf

8/4/2026 at 7:52:48 PM

I would prefer direct hardware kernel interface.

Like linux DMABUFs with userland hardware command ring buffers (I guess this hardware ring buffer instance would be specific to a VMID and a PASID).

by sylware

8/4/2026 at 8:42:58 PM

You can do that (tinygrad style) if you want.

by wmf

8/4/2026 at 1:54:03 PM

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)

by wren6991

8/4/2026 at 7:40:19 PM

Rumors say chatgpt/claude/gemini/etc are in the 100s of teras. True?

by sylware

8/4/2026 at 7:52:46 PM

I'll ask my uncle (he works for Nintendo) and get back to you on that one

by wren6991

8/4/2026 at 7:54:38 PM

My question is that wrong?

by sylware

8/4/2026 at 8:01:11 PM

Sorry if the joke didn't land; I have heard a lot of different numbers for the size of US labs' models, but never seen any of them substantiated, so I think you're likely to just get more rumours in answer to this question.

My personal take, with no sources: 100T sounds excessively high given they need to be able to actually serve these things on commercially available hardware. I would guess they are in the same order of magnitude as the Chinese frontier models. It's possible their edge is in RL training methods, training-time compute, and access to data (e.g. from customers' CC/Codex sessions), not in model size.

by wren6991

8/4/2026 at 8:43:26 PM

No, rumors say 5-10T.

by wmf

8/4/2026 at 5:36:12 PM

[dead]

by pop3zxcv

8/4/2026 at 11:03:56 AM

[flagged]

by jkwang

8/4/2026 at 12:52:28 PM

[dead]

by hn0tdqaek4

8/4/2026 at 5:55:02 PM

Great

by PrimeAli