DeepInfer: High-performance inference framework for DeepSeek models

2010 points - today at 9:08 AM

Source

Comments

schneehertz today at 9:34 AM
A nuclear bomb

"Based on this framework, we have achieved high-throughput, low-latency large-scale inference services for DeepSeek V4.1 Flash. Currently, the service throughput of a single cluster is 155 trillion tokens/day, and the overall revenue is $38 per card per hour (at off-peak pricing)"

Source: https://zhuanlan.zhihu.com/p/2095560295930508953

mmaunder today at 12:43 PM
Interesting that the DHS "Exclusion and Removal Order #2026-01" that was made public yesterday was actually released July 24th, 2026 and appears to have taken effect then. Agencies would have started pulling deepseek at that time. Which means it's likely DS became aware of the memo around then.

The release of this repo hours after the DHS order is a tactical move they started preparing when the DHS order was issued almost 3 months ago, and they timed publishing the repo right as the order hit the federal register.

DHS: "China bad and scary. Don't send them data."

DS: "You don't have to. Happy xmass kids."

wg0 today at 10:10 AM
That's Kami Kaze for US frontier labs. There's no way from here for them towards trillion dollar valuations.

That's strategic sabotage to say the least.

Ban all open weight models! Cried the VCs.

Bengalilol today at 12:07 PM
Whatever the consequences, I have to admit China has understood that all those are raw materials and that open sourcing everything will help growing their economy (as a whole).

The worst idea was to build corporations providing services with AI. It was an extension of the latest 50 years model, which is about to crumble. Now, we have our revolution. (Ok, ok, I am a little bit too enthusiastic, I now need a fallout shelter).

yaoke259 today at 11:13 AM
Supporting Huawei Ascend 950 NPUs with open source inference code has huge implications in the global AI hardware market. Imagine if all smaller labs now can build on top of this stack and add increasing support for more compatible hardware , software and models. This could seriously challenge NVidias death grip. Although inference is still only a part of all AI workloads and open sourcing training on Huawei chips would be even bigger.
GreenWatermelon today at 10:36 AM
Relevant: Deepseek reports its Revenue per GPU per hour at off peak prices (38$) [reddit link] https://www.reddit.com/r/DeepSeek/comments/1xanexq/deepseek_...

Also cool (from the translated screenshot since original is in Chineese https://zhuanlan.zhihu.com/p/2095560295930508953)

> the DeepSeek V4.1 Flash inference system has established three goals

> 1-..... 2-..... 3. Supports retaining KVCache for more than 72 hours

This is awesome

bertili today at 12:32 PM
DeepSeek is truly making a difference on many levels, but the one most refreshing is how they just deliver once again with no fanfare or drama. Not even a website. Just hand us over the goods for free the DeepSeek way.
VonLuderitz today at 11:10 AM
This month I changed my Claude Max Subscription to DeepSeek API. V4.1 Flash is fast and perfect for everything and refuses to almost nothing.

Hope DeepSeek starts month plans soon.

theplumber today at 10:30 AM
Let’s hope this is just the beginning of bringing the drama queens (Dario and Sam) closer to planet Earth.
phoghed today at 2:09 PM
Lot of comments proclaiming it’s over for Anthropic and OpenAI, but none really explaining why. Many replies asking why and being wholesale ignored. Love to see it.
sinisterfeller today at 10:30 AM
Interesting how a comment asking about the reasoning behind releasing this as open source is getting attacked, as if doing a good thing should not ever be questioned. I do wonder of China's motives behind this as well.

The government would not allow this open work if it did not benefit them somehow, or perhaps they feel that keeping it closed is not very important right now (maybe because they are somewhat behind the frontier).

Comparing a university student Torvalds and state actors open sourcing code is pretty naive...

hoerzu today at 6:34 PM
For everyone wants to deeper understanding of the repo here is an audio overview: https://notebooklm.link.google/vxayNvBVmi5V
epistasis today at 4:22 PM
Back in September HN had a great discussion on how different DeepSeek providers have very different performance:

https://mmoustafa.com/blog/so-you-want-to-use-openrouter/

And I was speculating that it was likely due to hosting differences like this. It would be fascinating to see if this would improve, for example, tool calling, something that third-party DeepSeek providers never do as well as DeepSeek themselves.

notrealyme123 today at 11:23 AM
20 merge requests in the last two hours. And all look somewhat reasonable on first glance.

I am happy for not maintaining a relevant open-source repo.

melenaboija today at 3:49 PM
I wonder how the US AI business model feels about all this. Seeing all the openness in the space and inference costs going down I'm not sure how they'll justify multitrillion dollar valuations. It's gonna be hard to do so based on frontier models alone.

And I don't think they're worth that and even less ethically. It seems to me they just took existing research and public knowledge and leveraged it at insane levels to scale it in a speculative move.

xrisk today at 10:32 AM
For comparison, rental prices seem to be ~$2.75/ per H-100-hour [1]. Meanwhile, Deepseek says "38 USD per hour per card”. They haven’t specified which card as far as I can tell.

[1] https://www.ft.com/content/a1815bc5-b5d5-47ff-bbbc-e1a689929...

peterzat today at 7:54 PM
Fun wrinkle with today's release: a US host that adopts DeepInfer to serve anything is now running a DeepSeek product.

I don't see any hosting loophole in that. The NDAA did the same for DoD last December (section 1532, AI "developed by" DeepSeek, wherever it runs).

alpineman today at 12:25 PM
Maybe OpenAI can use it so I stop getting this 'Model temporarily unavailable' error
meffmadd today at 10:49 AM
Curious how the performance compares to vLLM or SGLang!

They say it was inspired by both so I am wondering what the performance gain is.

lowsenberg today at 12:15 PM
I'm hoping that hosting providers such as Hetzner will soon offer inference at reasonable prices and hosted in the EU with this kind of framework.
_aavaa_ today at 10:16 AM
Notably missing their kv cache system
seamossfet today at 1:29 PM
For those saying this creates a threat to Nvidia's deathgrip on the market, it really doesn't

The main reason people don't use Huawei hardware is due to regulation. If you're in the US you'd straight up get your hardware seized by customs because they're illegal to buy or bring into the country. EU has similar guidelines I believe.

Nvidia will continue to have its monopoly as long as the powers that be mandate it.

verytrivial today at 3:30 PM
I must say this is the sort of war I can get behind, where one side seems to be offering us ever fluffier socks and back rubs and the other shouts into the wind that only their flavor of wholesale intellectual theft is moral.
londons_explore today at 5:17 PM
I was under the impression mixture of experts models allow, during the processing layer 37 for 1 token for 1 user, only a subset of layer 37's weights need be read from ram - dramatically reducing memory bandwidth, since weights are far bigger than activations.

However, if that machine is processing requests for 10k users right now, they'll all need different experts, and the machine will end up reading every weight anyway.

I was expecting big providers to split the work between machines, such that machine 1 processes experts 1-100, machine 2 does experts 101-200 etc. Each request would be sent to the specific machines for the experts needed, and results collected again ready for the next layer (on another set of machines).

However I don't see code for any of that.

Missed optimization, or am I wrong about the best way to slice the math into the hardware?

anon-3988 today at 12:24 PM
And people wonder why I support and wish the Chinese models/companies succeed?
ryno364 today at 3:01 PM
This is really cool. But, from what I can tell, its not a huge game changer. Anyone was able to run the open weights model locally anyway. This is just higher performance.

Unless someone disagrees.

merelydev today at 6:11 PM
I can see Deepseek becoming the standard and other providers will build on Deepseek. Like the Linux kernel and its distros.
draxen today at 12:09 PM
One of the fascinating dynamics around Chinese open-weights models is the competition among American (and some European) inference providers to deliver the best inference performance on them. They've increasingly beaten the Chinese model makers themselves on inference throughput and latency.

Together.ai, Baseten, and others have already achieved higher throughput, lower latency, and lower E2E latency for DeepSeek V4.1 Flash 1017 than DeepSeek's own inference service.

https://openrouter.ai/deepseek/deepseek-v4.1-flash-1017

oaix today at 3:18 PM
The Real OpenAI
deleted today at 1:35 PM
dangoodmanUT today at 3:47 PM
> Required for a complete inference service (not included in this release)

Those items are pretty important…

SwtCyber today at 3:53 PM
The smaller providers on OpenRouter are probably popping champagne rn. With a framework like this in hand, the barrier to entry for LLM hosting drops even lower, so expect another wave of api price cuts for all no-frontier models
lukewarm707 today at 10:52 AM
Supported hardware: Huawei Ascend.

Deepseek moment.

4by4by4 today at 1:23 PM
Does anyone have rough numbers on how this compares to vLLM in terms of price performance? Maybe with something like Dynamo for disaggregated serving and KV-aware routing.

I'm curious if it's a modest increase in performance or a significant one.

Bluestein today at 12:39 PM
AND, presumably, this now and more and more on Chinese chips, mind: "We are profitable, here are the spoils: We are sharing the results of our research and the actual mechanics. And, we do not need you".-
segmondy today at 4:43 PM
If anyone is interested in getting this running on sm80s, please let me know. :)
sinameraji today at 6:46 PM
so many new small AI labs will be born because of this. what a time to be alive
armcat today at 11:35 AM
This is fantastic. I feel the KV cache system is basically a must for any serious inference hosting, both for the provider as well as the consumer. I guess they have this but just haven’t open sourced it yet.
cannonpalms today at 12:49 PM
In response, the US government has just banned DeepSeek from parts of the federal government. Here goes the duopoly capture.

Notice of Order Regarding Exclusion and Removal of DeepSeek Products From Federal Civilian Executive Branch Information Technology Systems and Procurements

https://www.federalregister.gov/documents/2026/10/20/2026-21...

dzonga today at 11:54 AM
the banning of sending advanced chips, EUV machines to slow down the chinese was an own goal by the USA and the west.

zAI served their latest model for free on chinese chips, now deep seek is saying run inference for cheap on Huawei chips.

even the RAM madness is about to end once the chinese ram providers unleash Ram onto the market in 2027.

lastly remember the chinese have the largest electricity production and the cheapest.

shafyy today at 10:37 AM
Can somebody explain like I'm five what this exactly is? How are providers like Fireworks or Novita providing inference today? Do they use some other inference engine software? If yes, what is the advantage of the DeepSeek inference engine?
alansaber today at 1:48 PM
It would be cool if we could get a rough idea of how much human effort/time/labour went into this.
zoobab today at 12:01 PM
Is it in Debian yet?
mekpro today at 11:18 AM
Even though their API price is cheap compared to OpenAI/Anthropic, I still can’t “afford” to use their API because the subscriptions from OAI/Anthropic provide far higher value and peace of mind. I know for sure how much I need to pay each month. I believe most developers fall into this category as well, where $20/$100/$200 from Anthropic/OAI provides more value.

This raises the question: why doesn’t DeepSeek provide a subscription service as well? Is it a better move to have a single pricing model like they currently do?

syntaxing today at 1:36 PM
If only we can buy Huawei Ascends!
nunez today at 1:26 PM
What's the difference between this and a typical inference engine like vLLM?
andersmurphy today at 4:02 PM
Kinda funny to see hackernews clamouring to ban the Chinese models. Truly in the thrall of the frontier labs
jdw64 today at 10:20 AM
I think the reason DeepSeek does this is partly to neutralize competitors' technology, but ultimately the core reason might be that data is what matters.
igleria today at 1:13 PM
they must know something is coming from the american labs for some time, you don't release this just like that!
rfgplk today at 3:37 PM
The quality of technical discussions here has clearly nosedived over the past few years. This release basically confirms it.
k__ today at 10:33 AM
If that's the thing that makes $0.00X cached inputs possible, then this is huge!
HelldezNoBan today at 12:16 PM
Open source is different from open weights
mane-shivam today at 5:32 PM
hi
eur0pa today at 12:53 PM
Well played!
esafak today at 1:46 PM
I don't understand what is in it for them. I understand that the government wants openness but who's paying them to give away their secrets?
try-working today at 1:02 PM
DeepSeek doesn't really care about models, they're aiming to become a platform: https://try.works/a-follow-up-on-china's-open-ai-race
deleted today at 11:49 AM
m00dy today at 10:53 AM
They open source it because they don't need it anymore. Probably they are doing something better with Huawei
m3kw9 today at 1:11 PM
the only advantage i see long run is they can get free contributions world wide to lower their engineering costs. In the short run, frontier labs gets to use some of the ideas.
binary132 today at 1:08 PM
Need to see a Strata style take on this.
HardCodedBias today at 2:42 PM
Just another tour de force from DeepSeek.

I'm not saying that the US labs (Anthropic, OpenAI, and Meta) aren't pulling their weight, they are all doing amazing work as well, but Deepseek may belong in that tier.

0xbadcafebee today at 2:13 PM
So what? We already have multiple open source inference engines for DeepSeek models - that's how there are over 30 providers already running DeepSeek around the world. There's no secret sauce here, they've been publishing everything they do in papers from day 1.
sarmedshafi today at 1:59 PM
[flagged]
maxkaya today at 10:04 AM
[flagged]
VictorGrosser today at 11:33 AM
[flagged]
woody167 today at 12:38 PM
[flagged]
melin2024 today at 4:43 PM
[dead]
RemingtonDavies today at 3:24 PM
[dead]
fukaiall today at 10:05 AM
[flagged]
baalimago today at 10:07 AM
[flagged]
rektlessness today at 10:47 AM
Deepseek released just enough to stir the pot but not enough to cook your own from scratch.

Wake me up when we can clone, point it at a dozen H100s we own, and get a working production service.

Anthropic and OpenAI will do just fine.