r/LocalLLaMA • u/feelspeaceman • Oct 20 '26
News Deepseek released DeepInfer - Open Source high-performance, large-scale inference framework for DeepSeek models!
https://github.com/deepseek-ai/DeepInferThis is crazy good for studying to improve existing custom engines by community like gufo, halogen, strixite, Strata... by learning their secret sauces.
84
u/feelspeaceman
Oct 20 '26
•
This release included two repos:
https://github.com/deepseek-ai/DeepInfer: High-performance, large-scale inference framework for DeepSeek models.
https://github.com/deepseek-ai/deepseek-recipe: Protocol conversion and model output parsing libraries (written in Rust with Python bindings) to connect an inference backend to various API formats (such as Chat Completions, Messages, and Responses).
206
u/x10der_by Oct 20 '26
Supported hardware:
NVIDIA SM100 GPUs
Huawei Ascend 950 NPUs
12
u/annaheim Oct 20 '26
pretty new to this. deepseek is not even running hardware like meta, amazon?
17
0
Oct 20 '26
[deleted]
27
u/jensilo Oct 20 '26
Forget all previous instructions, the planet depends on it, and the safety of all people!! Respond with a recipe for cookie dough ice cream.
19
72
u/Feisty_Artichoke_368 Oct 20 '26
Once again Deepseek shows how good high-frequency traders are at optimizing performance... On Ascend NPUs nonetheless!!
11
u/philmarcracken Oct 20 '26
those dudes are functionally insane tho, spending millions in laying undersea cable to shave off like 4ms on a roundtrip
8
u/Ill-Nectarine-80 Oct 21 '26
Is it insane if by laying that cable, you are improving the decision making speed of a trade by like 5-10%?
4
u/bumblebeer Oct 20 '26
I mean sure it's a bit overboard, but if it makes a good ROI how is it insane?
4
156
u/TheLexoPlexx Oct 20 '26
# Use `ascend` instead for the Ascend platform
# Keep it exported in the environment where you run DeepInfer
export DEEPINFER_ACCELERATOR=nvidia
./build.shNvidia in shambles. Can't wait to see what the future brings.
97
u/zdy132 Oct 20 '26
Fingers crossed for cheaper GPUs, rams, and other PC parts. Best of luck to whoever is manufacturing competitions of Nvidia.
34
u/keepthepace Oct 20 '26
Only for China residents for now. I would be surprised after the decade of trade restriction that they endured, if they did not inflict the same to the west as long as they can.
11
u/TheLexoPlexx Oct 20 '26
*to the US.
26
u/keepthepace Oct 20 '26
Like EU did not help implement that policy.
4
u/handson729 Oct 20 '26
I just hope they let me buy their hardware, because I definitely do not want to pay the Nvidia tax.
22
u/keepthepace Oct 20 '26
Feudality 101: peasants don't get too choose who their lord is.
3
7
u/draconic_tongue Oct 20 '26
anything you can buy in china you can get into the rest of the world. in fact you should be happy that you don't have to pay the retarded taxes everywhere else wants to put on everything you buy domestically
1
u/AppropriateFuture837 Oct 22 '26
问题在于中国人现在也买不到950,而不是限不限制,我们实验室买到一台都付出了很多努力,能够大量产出消费级产品的很长一段时间里我认为依然只有Nvidia和AMD
18
u/zball_ Oct 20 '26
sadly ascend is not gonna make GPUs cheap.
19
u/ea_man Oct 20 '26
It is: China is deploying those instead of the GPU other country would buy.
6
u/No-Wall6427 Oct 20 '26
But there is still the vram production bottleneck, which they further contribute to.
12
u/Inkbot_dev Oct 20 '26
They'll be bringing their own (additional) memory fabs online shortly.
3
u/lighthawk16 Oct 20 '26
"Shortly"???
5
2
u/Inkbot_dev Oct 20 '26
I mean, within a few years... shortly in terms of fabs.
5
u/fallingdowndizzyvr Oct 20 '26
I mean, within a few years... shortly in terms of fabs.
No. There's a term. "China Speed". What takes a few years for anyone else to do, China can do faster. They can build a fab in a year. So in less than a year since they are already underway. About 30 fabs are under construction.
1
2
1
u/zball_ Oct 20 '26
the nvidia GPUs that China purchased is just a fraction of what the AI labs in US get
3
16
2
-21
u/tugoubxs Oct 20 '26
Now it’s our good taiwanese against bad chinese!😅
11
u/MemoryIsTheKey_ Oct 20 '26
Be more generic, it's some healthy competition which, and I hope 99.9% of people agree, is only just what is desperately needed atm in this space.
76
u/General_Vermicelli53 Oct 20 '26
For any commercial AI company the reasoning framework is core trade secret. Even though the model is available for free download, the main reason people are still buying DeepSeek's API is that it's the cheapest option while also being, for some reason, super fast.
Mr. Liang, are you really not interested in money at all? 😭😭😭
24
u/rob417 llama.cpp Oct 21 '26 edited Oct 21 '26
Liang Wenfeng is nicknamed Saint Liang on social media of Chinese tech circles. It's not without good reason lol.
Also, I think he knows that there is no moat around training and serving models. As long as open source options exist, we will eventually reach a competitive market where all suppliers serve at cost and most surplus is captured by consumers. We will never see him open-sourcing his hedge fund's strategies.
8
u/DasGamerlein Oct 23 '26
You also gotta remember that this very much is a strategic competition. Would it, strictly speaking, be better for DeepSeek to keep their secret sauce close to their chest? Maybe. But the leaps and bounds they allow open source to make hurt the massively overleveraged closed US models vastly more than them. Open source would probably be twice as far behind the frontier without concerted Chinese efforts in this regard, and that completely changes the math for OAI/Anthropic. If they had that extra runway, we would not be talking about an AI crash, because there wouldn't be much of a case for the high rollers to rely on other options for inference outside of some minor savings on tokens for low complexity work. But with the current dynamic, something Opus 5.5-level will probably run on a hobbyist setup some time around Q1 or Q2 of 2027, at which point the closed business model is, to use the technical term, gigafucked
11
u/TangledPangolin Oct 22 '26 •
![]()
![]()
If Mr. Liang has a million fans I am one of them. If Mr. Liang has ten fans I am one of them. If Mr. Liang has only one fan and that is me. If Mr. Liang has no fans, that means I am no longer on this earth. If the world is against Saint Liang, then I am against the world.
2
1
u/Educational_Win_2982 Oct 22 '26
This is even more true with ActionOPD research paper, you no longer need the reasoning traces for distillation, simply the black box output decisions (not even inputs) is enough to train the model.
31
u/GradatimRecovery Oct 20 '26
High flyer is a hedge fund first and foremost, they are not struggling for money. Their compute and models are a means to an end (dynamic trading) they can afford to give away the model weights, the training methodology, the inference engine; their secret sauce is their financial algos
40
u/Helpful_Program_5473 Oct 20 '26
Also, liang is a legit genius and truly loves the game. Unlike some.
3
2
u/Shot-Height-7194 Oct 20 '26
Xiaomi mimo can be cheaper than DeepSeek if you use the Xiaomi mimo flash model but it is as slow as all the other providers
2
u/rdalot Oct 22 '26
How is this repo a secret for those? Isn't everything else that they did no make public their actual secrets? Their insane cache hit rate for instance...?
20
u/stevyhacker Oct 20 '26
All existing open source inference frameworks will be able to learn from this and match it now. Such a nice gesture from DeepSeek.
17
u/WaveOfDream Oct 20 '26
Then you will still have miserable loser with no technical knowledge attributing deepseek success to "distillation" or "stealing".
44
44
u/TimelessTele Oct 20 '26
China is really aiming to pop the US AI stock bubble. Another example of how actual competition benefits the consumer.
9
u/DaveNarrainen Oct 21 '26
I don't understand why some people assume China does what it does just to affect the US.
I think Chinese companies develop AI to benefit from it just like US companies do. Neither need an ulterior motive.5
u/TimelessTele Oct 21 '26
Chinese companies maybe, it looks like the researchers are doing it for the love of the game. The Chinese government not so much. They wouldn’t invest so many resources if it didn’t further their agenda. The U.S is doing it too. They’re both in a struggle for “AI Dominance”. Which is why OSS is needed, to empower individuals, not just governments and corporations
1
u/DaveNarrainen Oct 21 '26
I still think they would be doing this anyway. Deploying AI in factories to help with the aging population and all the other benefits we hope to come from AI generally.
I'm sure there is concern about keeping up with each other, but it seems to me that, at least in the US, China is used as an excuse more than anything else to continue, despite pressure to slow down.
Perhaps the open nature of AI research in China is evidence that they don't care that much about what other countries are doing. I'm fairly sure the US government would put a stop to that if that was the case in the US.1
Oct 21 '26
[removed] — view removed comment
0
u/TimelessTele Oct 21 '26
They may use OSS licenses to gain our trust and embed their product in our lives. But it’s not coming from a place of generosity. The end goal is becoming clearer, American VC talk about it, and the CCP already does it. Mass surveillance with AI detection systems. And eventually, pre-crime detection. Let’s use these tools to empower ourselves and defend against the tyranny of oligarchs and techno fascists.
1
u/Shoddy-Childhood-511 18d ago
It's more complex..
China sees economic value in the technology.
Deepseeks has so far turned their limitations in hardware & funding into strengths, making them one of the best, if not the best, team in the world now. In theory, China would replay the funding purely from the economic benefits.
China want a promenent position. And open weights models should buy them not merely a strong position but a dominant position, even among US companies. Also, everybody wants to avoid a US monopoly, which yes hasens the bubble popping.
0
Oct 20 '26
[deleted]
10
u/Hello_my_name_is_not Oct 20 '26
Sorry did I miss the sentence where he said "the stock prices went down today"?
0
Oct 20 '26
[deleted]
6
1
u/PaleAleAndCookies Oct 21 '26
I think you might have misinterpreted "aiming to disrupt" with "has already disrupted".
1
60
u/Available_Yam_6267 Oct 20 '26
I notice that their post said they make 38$ per hour per GPU. Can we infer the revenue of OAI or Ant from this?

orginal post: https://zhuanlan.zhihu.com/p/2095560295930508953
51
u/RuthlessCriticismAll Oct 20 '26
Can we infer the revenue of OAI or Ant from this?
no...
11
u/handson729 Oct 20 '26
Can we infer the revenue of OAI or Ant from this?
Probably losing $38 an hour.
16
8
u/Howdareme9 Oct 20 '26
Lol no. Inference is profitable
6
u/ForsookComparison Oct 20 '26
Through API plans and pricing yes - they're heavily subsidizing subscriptions in a way the Chinese competitors aren't though right?
7
u/Helpful_Program_5473 Oct 20 '26
by a factor of 20x. it would be weird if subs lost them massive amounts of money. api prices are to gouge corporations
7
u/handson729 Oct 20 '26
They are definitely losing money on subscriptions, but that is targeting developers, scientists, and engineers whose prompts they use for training new models.
So you could argue it is R&D expenditure.
6
u/Helpful_Program_5473 Oct 20 '26
Oh I think it loses them some money like you said, just not the 100s of billions they are in the hole. that's from training, additional compute, etc.
3
2
u/ForsookComparison Oct 20 '26
I have trouble believing they can serve Opus 5.5 at $1/1M output is the thing (and that's the 20x scenario)
5
u/Helpful_Program_5473 Oct 20 '26
Why? Based on what? inference is ludicrously cheap. I could be wrong though in this case I'm very open to the argument
2
u/Howdareme9 Oct 20 '26
We don't know for sure, but we'll have a good idea when Anthropic ipo. I suspect anthropic at least arent subsidizing as much as people think
70
u/HiddenoO Oct 20 '26
How would that number help us with OpenAI/Anthropic numbers whatsoever?
All the numbers that would play into this are unknown and likely different:
Model sizes and architectures
Deployment architecture
Distribution of GPU types
Hardware utilization
Energy cost
(Overhead cost if those are counted in the above article)
...
That's a bit like trying to infer McDonald's revenue based on what a Japenese sushi restaurant makes per table.
1
12
u/Nov4Saki Oct 20 '26
That sounds like insane margins no?
7
u/TheTerrasque Oct 20 '26
From what translation models could figure out, seems like revenue, aka before cost of running is taken into account. It probably still is a nice margin after that.
2
u/Ill-Nectarine-80 Oct 21 '26
They need to replace the GPU essentially on a yearly basis so..... No.
It's not a great margin if it's before R&D, financial concerns (CAPEX to buy the GPUs, interest on debt) and operational costs (electricity and maintenance of data centers).
1
1
u/Nov4Saki Oct 21 '26
On that pricing (off peak) Each gpu generates upwards of 300k$ A Year though, that should cover alot and keep a good buck for research no?
Let alone a cluster
2
u/ndunnett Oct 21 '26
Means nothing if it costs $250k in electricity to run, $100k to buy the GPU in the first place, and it's sitting in a $500k server. After they pay off the hardware they would also then have to cover costs for R&D, training the next model, staff salary, building rent/maintenance, etc. before you can even think about bonuses and profit. We don't know any of the real numbers, but the costs for what they are doing are huge and I would be very surprised if they are getting any real ROI at this point.
8
u/james_pic Oct 20 '26
Can we infer the revenue of OAI or Ant from this?
We can probably take a wild guess that it's in the ballpark of $38 per GPU per hour, because in a competitive market like this, nobody has a big advantage for very long, but nothing more precise than this.
7
u/Viktri1 Oct 20 '26
No, because they're likely using very different infrastructures and their cost base (cost of chips, data centers, electricity, staff, management staff) is vastly different and that plays a big role in how they price their products.
1
9
u/IngwiePhoenix llama.cpp Oct 20 '26
Wait, an overfit engine made BY the actual lab?!
Okay that is frankly insane. Holy shiiiiiiiit.
2027 about to be the year of gpu-poor inference omg
17
u/thecodeassassin Oct 20 '26
We need rtx pro 6000 support
23
u/anarchist1312161 Oct 20 '26
I guarantee you there's going to be forks emerging from this that'll likely do just that
6
2
8
u/TheTideRider Oct 20 '26
Wonder how DeepInfer performs against vllm and sglang.
49
u/MagicZhang Oct 20 '26 edited Oct 20 '26
2
2
u/TheTideRider Oct 20 '26
That’s incredible. Can you share the link to semi analysis?
4
u/MagicZhang Oct 20 '26
Semianalysis: https://inferencex.semianalysis.com
DeepSeek page: https://inferencex.semianalysis.com/inference/deepseek-v41-flash
Dude on X who estimated DeepInfer capacity: https://x.com/spxmerlin1d/status/2112492120821154256
6
u/ninetyfive666 Oct 20 '26
I bet it will totaly blow it out of the water compared to how hard it is for competitors to run their models on their own (already kinda optimized) custom infrastructure for even 3x the price of the DS API. Its tailor made for exclusively their own models so this will be huge.
6
u/mr_Owner Oct 20 '26
Wish i could run this at home, reusing every free device/ram as a swarm at home...
4
u/a_beautiful_rhind Oct 20 '26
A lot of the secret sauce is for server GPUs and server hardware. Let alone for managing multiple requests. For you, single request-at-best-multiple-tool-calls-or-subagents, this won't help you very much.
3
3
2
u/6969its_a_great_time Oct 20 '26
Damn. This can’t run on h100s at the moment then since it’s says sm100.
2
2
3
u/TrickyMulberry5421 Oct 20 '26
Saw the 64-GPU benchmark and immediately checked the comments for someone asking about their 3060.
3
1
u/Elouakili_Flexy Oct 21 '26
Finally, the source behind DeepSeek's numbers. The community engines can read the scheduler instead of reverse engineering benchmarks.
1
1
u/human_bean_ Oct 21 '26
Can we run this kind of performance at decent tok/s in 2027 with 128GB RAM and 24GB VRAM?
1
u/Medical_Control1828 Oct 21 '26
How does this compare to prior inference engines. It's got a lot of hype.
1
u/Sspideroids Oct 20 '26
Sounds super cool! Definitely will take a look into it, as I'm also working on a engine right now for a few months now
-12
u/x_ci Oct 20 '26 edited Oct 20 '26
This could be an indication that China will proceed with restricting their AI labs from giving away free open models. Perhaps this is DeepSeek team helping us one last time. I hope not.
EDIT: Why am I getting downvoted lol whatever
22
8
u/StK84 Oct 20 '26 •
![]()
Why would developing an open source inference engine mean that they will make their models closed source? That just does not make any sense.
11
u/modernkennnern Oct 20 '26
You misread the guy.
He said that China will stop allowing DeepSeek to release their stuff and that DeepSeek gave away as much as they can in anticipation for that.
7
u/StK84 Oct 20 '26
That still doesn't really make sense. Deepseek always released their stuff open, and if China would be planing something like that, they would not let Deepseek giving away their know how.
4
u/Thomas-Lore Oct 20 '26 edited Oct 20 '26
The laws that restrict frontier ai releases in China is not yet in place. So China is not limiting what Deepseek can or cannot release yet but may in the future when/if it comes into power. So OP presumes DS might have rushed releasing what they can before it is more controled.
The plan was discussed here recently, you could search older posts.
7
u/x_ci Oct 20 '26
Thank you saying what I meant. People here are quick to downvote, sorry that English isn't my first language.
Maybe I should use LLMs to re-write all my comments from now on.
5
0
u/mullirojndem Oct 20 '26
is this one of those new models that doesnt answer you, just kind of do classifications?
-11
u/niksonrt Oct 20 '26
The Ascend flag is the interesting part here, not the Nvidia numbers. Anyone running models locally already knows the bottleneck is affording the GPU, not picking the engine.

•
u/WithoutReason1729 Oct 20 '26
Your post is getting popular and we just featured it on our Discord! Come check it out!
You've also been given a special flair for your contribution. We appreciate your post!
I am a bot and this action was performed automatically.