Register and share your invite link to earn from video plays and referrals.

SGLang
@sgl_project
Run LLMs fast at any scale 🔗 Join our community For AI tech blogs & deep-dives 👉 @lmsysorg
53 Following    9.5K Followers
HiCache L3 turns a cold start into a warm start. Your KV cache survives restarts and model swaps, sitting in NVMe or distributed storage until the deployment comes back. A hit on L3 gets pulled back into RAM and VRAM, so your first request after a restart is as fast as it would be on a server that had been running for hours. Good breakdown of the config knobs below ⬇️
Show more
Your cache is everything when it comes to inference, but how do you make sure you're keeping it around with local models? Typically when you start a server, it's a fresh slate. Then the KV cache grows, evolves, and your cache hits keep growing. But then you shut down the server, swap to a new fancy toy (model), and your cache is destroyed. Nothing we can do there, since caches are model-specific. But let's say then you want to go *back* to deploying the original model. Now *it's* KV cache was also destroyed! @sgl_project supports directly setting up hicache through some configuration arguments. The important part: * L1: GPU KV cache * L2: RAM KV Cache (usually larger, but in the world of local LLM's sometimes not!) * L3: Disk/storage-based KV Cache If you have the storage, keeping/enabling L3 allows for you to plug and play as many models as you'd like, and it'll still keep the KV Cache of your old deployment! Now, on a reboot say you have a hit on L3. Because you got a hit, it'll then keep that "warm" in L2 and L1-based caching so you don't face that terrible TTFT again. In my own learnings, you have --hicache-storage-prefetch-policy. This tells SGLang how to check and when to check if something exists in hicache in say L3. The two options I looked at were: * wait_complete * best_effort `best_effort` will check if L3 has that cached prefix, start retrieving it, but don’t block inference waiting for the full cache to arrive, reusing what’s ready and recompute anything that isn’t. Or: it'll promote whatever it can retrieve from L3 to L2/1 without blocking the request. `wait_complete` means that if L3 has that cached prefix, finish retrieving it rather than racing storage retrieval against recomputation. (These are Codex definitions) Translation: `best_effort` could have a better TTFT (probably) since it checks if we have it and then recomputes, while `wait_complete` will just fully reuse the cache and you'll wait a bit longer since it's going from cold -> hot. Don't quote me here, just where my intuition. There's a third one called `timeout`, which acts as a middle ground, still need to try it out. Last few little important parts: * SGLang will store the L3 wherever SGLANG_HICACHE_FILE_BACKEND_STORAGE_DIR is set as the env variable. * When using L3, it's based on the exact configuration and script you're currently serving with (usually with model/config information & topology, as well as tokenizer and such). I haven't tested if changing a deployment let's you reuse the L3, but my hunch is not without being careful * (Just a hunch, again still needs testing) You should probably use m.2 drives here and not HDD's if doing `wait_complete`, and possibly `best_effort` for HDDs. Need to toy with this more. But since `best_effort` recomputes, we likely can just grab it off the HDD and not worry about the transient speed.
Show more
SGLang v0.5.20 landed! Welcome @intel XPU to join standard SGLang releases 🎉 Some of our favorite updates: - RL sampling masks make rollouts more reliable, with up to 52% faster decode - Unified Radix Tree adds SWA branching-point caching: ~20pt higher cache hit rate, ~1/3 lower TTFT - DSpark now supports PD + DCP for long-context serving - SGLang Simulator brings scheduler & cache experiments to CPU - ROCm model loading is up to 12.5× faster - SGLang-Diffusion gets up to ~38% lower E2E latency New models include GLM-5.3-Flash, Qwen3.8-Flash-Next, K2 Horizon, Hy4-Preview, FastH3, VDN-H3, and more. Full release notes👇
Show more
XGrammar's Structural Tags now enforce DeepSeek V4.1's native DSML format directly in SGLang's constrained decoding path. Great work from the XGrammar team! Check out how the Structural Tag works 👇
Show more
🚀 More reliable agents with DeepSeek V4.1! XGrammar brings strict tool calling to SGLang & vLLM through Structural Tags, enforcing tool argument schemas in DeepSeek’s native format. See how the Structural Tag works 👇 Check out XGrammar 👇
Show more
Congrats to the Halo team (@whitecircle) on the launch! 🎉 SGLang powers Halo rollouts as the primary engine. It runs in an isolated serving environment, returning token IDs, logprobs, and MoE routing to the trainer, with weights synced over NCCL and generation overlapped across servers. Excited to partner with the Halo team!
Show more
Halo is not limited to supervised fine-tuning. It supports async RL and training with external environments. We are excited to partner with the @sgl_project team to make it the primary engine for rollouts.
Show more
Day-0 support for @Alibaba_Qwen’s Qwen-Image 2.1 is here in SGLang-Diffusion! 🖥️ Native precision on a single RTX 4090 24GB with CPU offload - 1024×1024 generation in 18.7s and image editing in 21.7s with 22.7 GiB peak GPU memory during requests. - On an RTX PRO 6000 96GB: 8.0s generation and 9.6s editing. 🎨 Text-to-image, multi-image editing, and transparent RGBA output—all with one checkpoint. ⚡ Native inference with TP/SP, LoRA, and OpenAI-compatible APIs. 40 denoising steps, one image per request, warmed HTTP latency including PNG output. No quantization. Cookbook and GPU-specific commands below 👇
Show more
SGLang-Diffusion with VDN-H3 now generates 14.4s of 768p video in just 9.0s 🚀 On 8× B200, 8 step denoising takes just 6.9s, reaching over 2× real time. The 9.0s figure covers the full generation request after warmup. No measured quality regression versus dense 50-step H3 across 103 test prompts. 🧵
Show more
SGLang has Day-0 support for Intern-S2-397B from @intern_lm, a 397B multimodal foundation model built for scientific intelligence and long-horizon agents. > New pre-training paradigm: learns directly from raw scientific literature pages, no parsing needed > Scientific reasoning: RL across 20+ domains, from biomolecule design to material generation > Long-horizon agents: black-box agentic RL in large-scale sandboxed environments Run it now with SGLang!
Show more
🚀 Introducing Intern-S2-397B, our new multimodal foundation model designed for long-horizon scientific research and powerful scientific agents. 1⃣Strong general capabilities across knowledge, coding, and agents, ranking among the top open-source models. 2⃣Outstanding performance on scientific tasks including Biology-Instructions and Mol-Instructions, with strong capabilities in scientific understanding, generation, and design. 3⃣Achieves leading results among open-source models on IMO-Proof and AdvancedMathBench, reaching the level of top closed-source models such as Gemini 3.1 Pro. 4⃣Explores a new architecture for continuously expanding specialized scientific knowledge, building a stronger foundation for long-cycle scientific research. 👏Now supported by vLLM (@vllm_project ) and SGLang ( @lmsysorg ) — with more ecosystem integrations on the way. 🤗 Model: @huggingface @ModelScope2022 🤗 Try it now:
Show more
We pushed an update to the @sgl_project Qwen3.8-27B cookbook: - Added @NVIDIAAI NVFP4 recipes for RTX PRO 6000, RTX 5090, DGX Spark and GB300 - Install and Docker both follow the latest SGLang release now Cookbook👇
Show more
Congrats to the @cognition team on the SWE-2 launch! It’s especially exciting to see SpecForge helping improve speculative decoding acceptance within the training stack. We’re proud to have contributed to this effort 🙌
Show more
Introducing SWE-2, our closest model yet to the frontier. On leading evals, it scores on par with recent frontier models – at up to 70% lower cost. We scaled RL to multiple trillions of parameters, with a refined recipe that pushes the Pareto curve on both capabilities & cost.
Show more
Open source moves forward when we build together. 🤝 DeepSeek-V4.1-Flash is now supported in SGLang, with more performance optimizations underway. Excited to continue supporting @deepseek_ai and turning cutting-edge model innovation into fast, accessible inference for the open-source community. More on our Day-0 support and what’s next:
Show more
🌐 Supporting open source. Expanding deployment options. We’ll work closely with the open-source community on V4.1-Flash inference support and explore more deployment options. Planning a large-scale deployment with 2,000 GPUs + a storage cluster? Let’s talk. 🔹 Model: 🔹 Paper: 6/6
Show more
We're adding a few Qwen3.8-Flash-Next recipes to the SGLang cookbook, each verified on the hardware: - 1x RTX PRO 6000, PLE table in system RAM - 1x DGX Spark, PLE table on local NVMe - 2x DGX Spark, TP=2 - NVFP4 support for both the RadixArk export and @NVIDIAAI's ModelOpt export Cookbook: Thanks to everyone who has been testing and sharing feedback. We've been following the community reports closely and fixed a number of issues that came with this new architecture. More performance work is on the way, and we want to be ready for what comes next from the Qwen family!
Show more
We've been working closely with partners and @zai_org to improve production serving for the GLM-5.3 family. Shout out to @Cloudflare for reporting the issues that led to the fix 🧡☁️
Shoutout to the @sgl_project community for catching an issue in our chat template👂 We've optimized the tool-result reordering logic (early exits instead of scanning every block) and updated the templates for GLM-5.3 and GLM-5.3-Flash. Fix is live — thanks for making it better. 💪
Show more
From VLM rollouts to diffusion generation, SGLang is powering multimodal post-training in Miles. Can’t wait to see what people build 🚀
The real world is multimodal. For AI to understand and recreate it, models need to learn across modalities. In our latest blog, we show how Miles supports that learning with a shared post-training design for VLMs and diffusion models. Link in the comments. 🔗
Show more
@deepseek_ai We just added recipes for DeepSeek-V4-Flash-Vision & DeepSeek-V4-Flash-0731 on 2x DGX Spark.
🎉 Congrats to @AntLingAGI on open-sourcing Ling-3.0-flash-Fin (124B total, 5.1B active), a finance-enhanced version of Ling-3.0-flash built with financial institutions and domain experts. Day-0 support is live in SGLang! Financial work needs trustworthy sources, consistent definitions, accurate calculations, and auditable outputs. This model is tuned for research, retrieval, valuation modeling, and report prep across long documents and complex workbooks, with competitive results on FinFIRST, FinanceAgent, APEX-Agents, SpreadsheetBench, and τ³-Banking. If you are working on financial work, try it now with the command👇
Show more
We’re open-sourcing Ling-3.0-flash-Fin, a finance-enhanced model for real-world workflows, and FinFIRST, an expert-built benchmark for financial search agents. Two open releases, one goal: making financial AI more accessible and verifiable.
Show more
Join @baseten, @nvidia Dynamo, and SGLang on 9/10 for an evening dedicated to the infrastructure behind reinforcement learning post-training! We will present the latest on SGLang & Miles. Miles is an RL training framework using SGLang as the rollout inference engine to make RL post-training fast and reliable. Come meet us in person! 🕐 Thursday, September 10, 6:00–9:00 PM 👉 Register now
Show more
Thanks to the @FireworksAI_HQ team for the patience and rigor throughout this investigation—and for sharing the findings with the community. Correctness comes first. We’re glad SGLang could be part of the collaboration to get GLM-5.3-Flash running as expected. 🚀
Show more
GLM-5.3-Flash is live on Fireworks on day… 2 Why? Because we take quality very seriously. We found a benchmark discrepancy we couldn’t explain, so we delayed the launch to investigate. Day 0 (Wed): we saw 2x longer thinking on reasoning-heavy benchmarks (AIME & GPQA) for open source engines compared with @Zai_org API. Same scores, worse token efficiency. Agentic benchmarks looked good. We decided to investigate further, as overthinking might become a quality problem if max_tokens are reached Day 1 (Thu): as other non-official providers launched, their APIs had thinking in the range of open-source engines: longer than We launched a private preview endpoint with disclaimers to a few customers and worked with them to assess quality Day 2 (Fri): the official API updates. We rerun benchmarks: reasoning is now similarly long, consistent with vllm/sglang. Rest of the benchmarks, both public and internal, check out too. We launched GLM-5.3-Flash publicly: More details below
Show more
Visualized tutorials for Kimi K3 model architecture and SGLang optimizations are now live on the SGLang blog. Highlight - Kimi K3's new Kimi Delta Attention in detail - SGL hybrid attention Radix tree - TP / DP strategies, and more Check out link for the detailed blog!👇
Show more
Visualized tutorials for Kimi K3 model architecture and SGLang optimizations. It is finally out now. 🫵 We spent a month polishing this blog to introduce everything you need to know about K3, and how SGLang serves it. - What's K3 secret sauce to support 1M context window on 2.8T model? - And how SGL support K3's hybrid attention architect? Link below 👇 check it out!
Show more
Excited to see more automated research developed based on SGLang and FlashInfer, from the amazing @Recursive_SI team 🙌
a small automated discovery in sglang from our reward judge