frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Tokasaurus: An LLM inference engine for high-throughput workloads

https://scalingintelligence.stanford.edu/blogs/tokasaurus/
214•rsehrlich•1d ago

Comments

behnamoh•1d ago
While Tokasaurus’s Async-TP shows impressive throughput gains, it seems over-engineered for common use cases. The CPU overhead from async tensor parallelism only pays off at 6k+ token batches, and you need NVLink-connected GPUs to see real benefits. Most prod deployments don’t need this complexity — you’re better off with simpler approaches unless you’re specifically optimizing for massive batch throughput. The adaptive manager skipping “optional” tasks under load also feels concerning from a reliability perspective.
bjt12345•1d ago
Buy surely next years production deployments will be very different to right now, with different use cases...etc
jdiff•1d ago
Sure. Things change over time. Is there a reason to believe they'd be different in such a way that this would be more useful than in today's landscape? I haven't seen such a forecast myself.
YetAnotherNick•1d ago
Depends on what production means for you. This is useful for batch production jobs.

Also, this seems very useful for generating synthetic data or labelling a bunch of data. 6k batch size is small for data labelling.

cpard•1d ago
How big of a use case is synthetic data generation? I’m curious as I see a lot about it coming from academic projects but I haven’t seen much related to commercial use cases
electroglyph•1d ago
tiny NNs distilled from LLMs can produce some amazing results, i'm surprised it's not more common tbh
cpard•1d ago
I agree, there are impressive results. This just came out from Berkeley https://arxiv.org/abs/2506.04178

But still, I mainly see work on this direction in academia.

nabakin•1d ago
> On throughput-focused benchmarks, Tokasaurus can outperform vLLM and SGLang by up to 3x+.

Looks like they don't compare to TensorRT-LLM throughput numbers which, last I checked, are SOTA in open source.

andersa•1d ago
TensorRT-LLM being open source is a lie, all the important kernels are loaded from cubins.
qeternity•1d ago
It also appears that this was a sampling benchmark...which is not representative.

Generation benchmark was 5% faster than SGLang.

symbolicAGI•1d ago
Given chat and API needs for low-latency, llama.cpp is probably still the best choice for self hosted models with or without GPU support. And Ollama is the leader for wrapping llama.cpp.

Because Tokasaurus was mentioned as better than Ollama for conducting darwinian godel machine operations (self-improvement), I looked for the linked repo on GitHub and it was 404. So glad it is back https://github.com/ScalingIntelligence/tokasaurus.

radq•1d ago
Cool project! The codebase is simple and well documented, a good starting point for anyone interested in how to implement a high-performance inference engine. The prefix sharing is very relevant for anyone running batch inference to generate RL rollouts.
refibrillator•1d ago
The code has few comments but gotta love when you can tell someone was having fun!

https://github.com/ScalingIntelligence/tokasaurus/blob/65efb...

I’m honestly impressed that a pure python implementation can beat out vLLM and SGLang. Granted they lean on FlashInfer, and of course torch.compile has gotten incredibly powerful in the last few years. Though dynamic shapes have still been a huge thorn in my side, I’ll need to look closer at how they pulled it off…

bobrenjc93•1d ago
Hi! I work on dynamic shapes in pytorch and would love to hear more about the challenges you’ve run into. We’re always looking to improve the experience, so if you’re open to chatting, feel free to DM me on Twitter (@bobrenjc93) or email me at bobren@meta.com.
gricardo99•1d ago
since you work on pytorch, what would you say is the best place to ask questions about general usage, trouble shooting? I’ve been struggling with a, what I would consider, a simple torchrun elastic training example, and haven’t found any good resources online. I’ve been spelunking through pytorch but have a feeling a little back and forth with someone familiar with these features would immensely clear things up.
bobrenjc93•1d ago
PyTorch Dev Discuss is a fantastic forum where many core devs actively participate and answer questions: https://dev-discuss.pytorch.org

In addition to Dev Discuss, a number of core contributors are also active on Twitter. Two particularly helpful and prolific voices are @ezyang and @cHHillee.

Finally, don’t overlook GitHub issues—they’re a surprisingly effective way to start conversations. If you’ve found a bug or have ideas on how to improve the APIs, opening an issue is always welcome.

almostgotcaught•20h ago
There's also the slack but you gotta know someone to get on that ;)
chillee•1d ago
I mean, vllm and sglang are both "pure python" essentially as well. But yeah, in ML you rarely require C++ to get good performance for most of the systems people are writing.
AStonesThrow•1d ago
Stanford was edgy enough to reefer to “toking” in the moniker, but exercises restraint by depicting the titular thunder lizard smoking a putatively conventional tobacco cigarette.

I am hoping to use this “Tokasaurus” nickname with affection for my neighbors. If Stanford is ok with informal usage.

Success with Meta AI / Llama 4:

Hey Meta, I would like to see an image of a Tyrannosaurus Rex, who is clad in a leather jacket, sunglasses, and fedora. He is so cool looking, and smoking a joint of marijuana, and his image is superimposed against a skyline of Phoenix in the golden glow of sunset.

Can you light up the joint with a glowing tip?

Art9681•1d ago
Proof that attention is not only highly desired by Stanford tech bros, but HN keyboard warriors equipped with LLM tech. Everyone is clever all of the time.
catlifeonmars•1d ago
I appreciate the double entendre
DiabloD3•22h ago
Shame this is written in Python, looks very interesting, but I'm no expert in this field.

If there is anything here worth using, it's entirely possible that the llama.cpp crew can save it from vanishing into obscurity.

Szpadel•21h ago
I'm curious what how big is latency tradeoff. I know assumption here is that it does not matter in those use cases but what order of magnitude it is? 10x? 100x?

this is important for usage in "soft realtime" application, where you do not need instant response but someone is still waiting.

if latency is really big, then it can only be used for basically background processes.

Up and running–first room-temperature quantum accelerator of its kind in Europe

https://nachrichten.idw-online.de/2025/06/05/up-and-running-first-room-temperature-quantum-accelerator-of-its-kind-in-europe
1•donutloop•9m ago•0 comments

Scientists Create an Artificial Eye That Could Give AI Human-Like Sight

https://studyfinds.org/artificial-eye-ai-human-like-sight/
1•andrewfromx•10m ago•0 comments

Low-Level Optimization with Zig

https://alloc.dev/2025/06/07/zig_optimization
1•Retro_Dev•15m ago•0 comments

HZ-program (Typesetting algorithm by Hermann Zapf)

https://en.wikipedia.org/wiki/Hz-program
1•wolfi1•15m ago•0 comments

Windows 10 spies on your use of System Settings (2021)

https://www.michaelhorowitz.com/Windows10.spying.onsettings.php
6•userbinator•17m ago•1 comments

Weird mouse-gesture remote configuration file? (2024)

https://forum.netgate.com/topic/190543/weird-mouse-gesture-remote-configuration-file
1•userbinator•19m ago•0 comments

Physicists observe a new form of magnetism

https://news.mit.edu/2025/physicists-observe-new-form-magnetism-0605
3•thunderbong•26m ago•0 comments

The Plastic Surgery Procedure Booming Among Washington Men

https://www.politico.com/news/magazine/2025/06/05/dc-plastic-surgery-jawlines-trump-00380485
1•_tk_•34m ago•0 comments

Forever promises to preserve photos, files 100 years beyond death

https://web.archive.org/web/20170118075240/http://triblive.com/business/headlines/8865861-74/forever-meakem-photos
1•tevrede•39m ago•0 comments

First usermode exploit for Nintendo Switch 2

https://wololo.net/2025/06/06/first-usermode-exploit-and-more-nintendo-switch-2-had-a-busy-hacking-week-for-its-launch/
1•jandeboevrie•40m ago•0 comments

Natalie Haynes's guide to TV detectives: #9 – Sherlock Holmes (2012)

https://www.theguardian.com/tv-and-radio/tvandradioblog/2012/may/14/tv-detectives-sherlock-holmes
1•teleforce•44m ago•0 comments

Working with the EPA to Secure Exposed Water HMIs

https://censys.com/blog/turning-off-the-information-flow-working-with-the-epa-to-secure-hundreds-of-exposed-water-hmis
1•doener•48m ago•0 comments

Building a Slow Web

https://goodinternetmagazine.com/building-a-slow-web/
3•namanyayg•52m ago•1 comments

Mixtela Precision Clock MkIV

https://mitxela.com/shop/clock4
2•namanyayg•53m ago•0 comments

Waymos are getting assertive: driverless taxis are learning to drive like humans

https://www.sfchronicle.com/sf/article/waymo-robotaxis-driving-like-humans-20354066.php
1•namanyayg•53m ago•0 comments

Faster Dashboards with Multi-Column Approximate Sorting

https://duckdb.org/2025/06/06/advanced-sorting-for-fast-selective-queries.html
1•brylie•59m ago•0 comments

Russia steers Shahed drones in Ukraine via Telegram messenger

https://bulgarianmilitary.com/2025/05/26/russia-steers-shahed-drones-in-ukraine-via-telegram-messenger/
1•thisislife2•1h ago•0 comments

Baumol Effect

https://en.wikipedia.org/wiki/Baumol_effect
1•timhigins•1h ago•0 comments

From Boolean logic to bitmath and SIMD: transitive closure of tiny graphs

http://bitmath.blogspot.com/2025/06/from-boolean-logic-to-bitmath-and-simd.html
1•matt_d•1h ago•0 comments

A real-world AI alignment failure

https://pastebin.com/7F7gqxVy
1•GayDuck•1h ago•0 comments

Why Philosophy of Physics?

https://aeon.co/essays/why-do-philosophy-of-physics-when-you-can-do-physics-itself
1•Caiero•1h ago•0 comments

An ancient river landscape preserved beneath the East Antarctic Ice Sheet (2023)

https://www.nature.com/articles/s41467-023-42152-2
1•walterbell•1h ago•0 comments

Farewell, NOAA-18

https://cimss.ssec.wisc.edu/satellite-blog/archives/65190
4•austinallegro•1h ago•1 comments

Goa Gajah

https://en.wikipedia.org/wiki/Goa_Gajah
2•sans_souse•1h ago•0 comments

Do Programming Language Features Deliver on Their Promises [video]

https://www.youtube.com/watch?v=V8sACAhg4vM
4•diimdeep•1h ago•0 comments

Ultrahuman Home

https://www.ultrahuman.com/home/
2•cfcfcf•2h ago•0 comments

Keeping the Web Up Under the Weight of AI Crawlers

https://www.eff.org/deeplinks/2025/06/keeping-web-under-weight-ai-crawlers
1•doener•2h ago•0 comments

AImmerse Web App

1•yiyih•2h ago•0 comments

Is Jordan Peterson Just Making It Up as He Goes?

https://thewalrus.ca/is-jordan-peterson-just-making-it-up-as-he-goes/
10•sameers•2h ago•4 comments

The FAIR Package Manager: Decentralized WordPress infrastructure

https://joost.blog/path-forward-for-wordpress/
60•twapi•2h ago•8 comments