SGLang v0.3.4.post1 introduces a new Engine API for offline inference, support for Intel XPU hardware, and a significant overlap scheduler to reduce CPU overhead. These enhancements improve deployment flexibility and throughput for LLM serving stacks.
Engineers should migrate to the new Engine API for offline inference to reduce HTTP overhead and leverage improved multi-LoRA serving performance.
📊 Product & Engineering Leads
Teams gain expanded hardware support (Intel XPU) and broader model compatibility, including Llama 3.2, QWen-VL2, and reward model support.
⚙️ DevOps & Security
Infrastructure leads should evaluate the new overlap scheduler and potential performance gains on AMD MI300x GPUs to optimize infrastructure utilization.
✨ New Features & Capabilities (4)
Engine API for offline inference without HTTP server
Support for Intel XPU hardware
Support for reward models
Support for new models including Llama 3.2, QWen-VL2, OLMo, and GLM 4
⚡ Performance & Enhancements (5)
Overlap scheduler for reduced CPU overhead
Accelerated multi-LoRA serving
Improved stability for greedy decoding
Optimized MoE tuning on AMD MI300x GPUs
Faster JSON serialization via ORJson
🔧 Bug Fixes & Patches (4)
Fixed race conditions in overlap mode
Fixed various bugs in constrained decoding and regex processing
Fixed memory leaks during request aborts
Resolved batching and input processing issues for multi-modal models
❓ Frequently Asked Questions
Does SGLang v0.3.4.post1 contain breaking changes?
The release notes do not explicitly document breaking changes that require code migrations; however, it includes significant internal refactors of batch structures and event loops.
What is the primary highlight of v0.3.4.post1?
The primary highlight is the introduction of the Engine API for high-performance offline inference and the new overlap scheduler designed to hide CPU overhead during LLM serving.
How should teams prepare to upgrade to v0.3.4.post1?
Teams should review the new Engine API documentation to replace existing HTTP-based serving logic if offline inference is desired, and conduct performance benchmarks to validate the benefits of the new overlap scheduler.
📄 View Raw Release Notes (Original Developer Log)
## Highlights
- Hosted the first LMSYS online meetup: Efficient LLM Deployment and Serving.
- Covered CPU overhead hiding, faster constrained decoding, and DeepSeek MLA. [Slides](https://github.com/sgl-project/sgl-learning-materials?tab=readme-ov-file#the-first-lmsys-online-meetup-efficient-llm-deployment-and-serving)
- Added Engine API for offline inference with reduced overhead. [Usage](https://github.com/sgl-project/sglang/blob/main/README.md#engine-without-http-server). #1614 #1567
- Added an overlap scheduler for reducing CPU overhead #1738
- New models: Llama 3.2 (#1551), QWen-VL2 (#1721), OLMo (#1676), GLM 4 (#1736).
- Added support for reward models #1525.
- Added support for Intel XPU #1480.
- Improved stability for greedy decoding #1589.
- Accelerated multi-LoRA serving #1587.
## What's Changed
* [Fix] Ignore model import error by @merrymercy in https://github.com/sgl-project/sglang/pull/1513
* minor: fix config by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1524
* [Event] Update meeting link by @Ying1123 in https://github.com/sgl-project/sglang/pull/1529
* [Feature] Support reward model LxzGordon/URM-LLaMa-3.1-8B by @Ying1123 in https://github.com/sgl-project/sglang/pull/1525
* Add float8 dynamic quant to torchao_utils by @jerryzh168 in https://github.com/sgl-project/sglang/pull/1528
* [FIX] Catch syntax error of Regex Guide to avoid crash by @du00cs in https://github.com/sgl-project/sglang/pull/1521
* [bugfix]Add modelscope package to avoid docker image without modelscope by @KylinMountain in https://github.com/sgl-project/sglang/pull/1520
* Fix RuntimeEndpoint.select method by @jeffrey-fong in https://github.com/sgl-project/sglang/pull/1495
* Multiple minor fixes by @merrymercy in https://github.com/sgl-project/sglang/pull/1530
* Make detokenizer_manager.py not asyncio by @merrymercy in https://github.com/sgl-project/sglang/pull/1532
* Organize image inputs by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1531
* Improve process creation by @merrymercy in https://github.com/sgl-project/sglang/pull/1534
* fix ipv6 url when warm up model by @cauyxy in https://github.com/sgl-project/sglang/pull/1537
* Move scheduler code from tp_worker.py to scheduler.py by @merrymercy in https://github.com/sgl-project/sglang/pull/1538
* Process image in parallel by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1539
* Let ModelRunner take InputMetadata as input, instead of ScheduleBatch by @merrymercy in https://github.com/sgl-project/sglang/pull/1541
* Rename InputMetadata -> ForwardBatch by @merrymercy in https://github.com/sgl-project/sglang/pull/1543
* Clean up batch data structures: Introducing ModelWorkerBatch by @merrymercy in https://github.com/sgl-project/sglang/pull/1544
* [Fix, LoRA] fix LoRA with updates in main by @Ying1123 in https://github.com/sgl-project/sglang/pull/1545
* Organize Attention Backends by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1547
* Fix bugs of `logprobs_nums` by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1548
* Dispatch flashinfer wrappers by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1550
* Simplify flashinfer dispatch by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1552
* [Refactor] Simplify io_struct and tokenizer_manager by @Ying1123 in https://github.com/sgl-project/sglang/pull/1549
* [Performance, Hardware] MoE tuning on AMD MI300x GPUs by @kkHuang-amd in https://github.com/sgl-project/sglang/pull/1554
* [Fix] Fix all the Huggingface paths by @tbarton16 in https://github.com/sgl-project/sglang/pull/1553
* [Fix] do not maintain regex_fsm in SamplingBatchInfo by @merrymercy in https://github.com/sgl-project/sglang/pull/1555
* [Fix] Move ScheduleBatch out of SamplingInfo by @merrymercy in https://github.com/sgl-project/sglang/pull/1556
* Move status check in the memory pool to CPU by @merrymercy in https://github.com/sgl-project/sglang/pull/1557
* [Fix] Fix AttributeError in Qwen2.5 LoRA: 'Qwen2ForCausalLM' object has no attribute 'get_hidden_dim' by @mssongit in https://github.com/sgl-project/sglang/pull/1536
* [FP8 KV Cache] Avoid KeyError at loading pre-quantized FP8 model with kv_scale by @HaiShaw in https://github.com/sgl-project/sglang/pull/1559
* Organize sampling batch info better by @merrymercy in https://github.com/sgl-project/sglang/pull/1562
* Use ipc instead of tcp in zmq by @merrymercy in https://github.com/sgl-project/sglang/pull/1566
* Make input_ids a torch.Tensor by @merrymercy in https://github.com/sgl-project/sglang/pull/1568
* [Minifix] Remove extra space in cot example by @FredericOdermatt in https://github.com/sgl-project/sglang/pull/1569
* [Fix] Fix major performance bug in certain cases by @Ying1123 in https://github.com/sgl-project/sglang/pull/1563
* Refine the add request reasons to avoid corner cases. by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1574
* chore: update README.md by @eltociear in https://github.com/sgl-project/sglang/pull/1580
* [Easy] use .text() instead of .text by @ByronHsu in https://github.com/sgl-project/sglang/pull/1577
* [Event] Update README.md by @Ying1123 in https://github.com/sgl-project/sglang/pull/1572
* Add llama implementation with no tensor parallel linears by @jerryzh168 in https://github.com/sgl-project/sglang/pull/1561
* Backend method not found when SRT Runtime is used by @ByronHsu in https://github.com/sgl-project/sglang/pull/1576
* default sampling param should be deepcopied by @ByronHsu in https://github.com/sgl-project/sglang/pull/1581
* Fix styling by @ByronHsu in https://github.com/sgl-project/sglang/pull/1583
* Fix runtime.generate when sampling param is not passed by @ByronHsu in https://github.com/sgl-project/sglang/pull/1582
* Support min_tokens in sgl.gen by @ByronHsu in https://github.com/sgl-project/sglang/pull/1573
* [Minor] Improve the style and fix flaky tests by @merrymercy in https://github.com/sgl-project/sglang/pull/1584
* [Bug] Fix decode stats error on output_len 1 by @HaiShaw in https://github.com/sgl-project/sglang/pull/1585
* Clean up event loop by @merrymercy in https://github.com/sgl-project/sglang/pull/1586
* [LoRA, Performance] Speedup multi-LoRA serving - Step 1 by @Ying1123 in https://github.com/sgl-project/sglang/pull/1587
* [Minor, Performance] Use torch.argmax for greedy sampling by @Ying1123 in https://github.com/sgl-project/sglang/pull/1589
* Test consistency for single and batch seperately by @ByronHsu in https://github.com/sgl-project/sglang/pull/1590
* Update README.md by @merrymercy in https://github.com/sgl-project/sglang/pull/1591
* Fix modality for image inputs by @merrymercy in https://github.com/sgl-project/sglang/pull/1592
* Provide an offline engine API by @ByronHsu in https://github.com/sgl-project/sglang/pull/1567
* [Fix] Fix the case where prompt_len = 0 by @merrymercy in https://github.com/sgl-project/sglang/pull/1593
* Use `atexit` hook to implicitly shutdown `Runtime` by @ByronHsu in https://github.com/sgl-project/sglang/pull/1595
* Use is_flashinfer_available to replace is_hip for flashinfer check by @merrymercy in https://github.com/sgl-project/sglang/pull/1596
* Fix chunked prefill condition by @ispobock in https://github.com/sgl-project/sglang/pull/1594
* Fix the port_args in bench_latency by @merrymercy in https://github.com/sgl-project/sglang/pull/1597
* Remove references to squeezellm by @janimo in https://github.com/sgl-project/sglang/pull/1603
* [Profile] Add pytorch profiler by @Ying1123 in https://github.com/sgl-project/sglang/pull/1604
* [Engine] Fix generate hanging issue after the first call by @ByronHsu in https://github.com/sgl-project/sglang/pull/1606
* Release v0.3.3 by @merrymercy in https://github.com/sgl-project/sglang/pull/1605
* [Minor] Fix logging typo by @amosyou in https://github.com/sgl-project/sglang/pull/1615
* Fix test_vision_openai_server on CI by @ByronHsu in https://github.com/sgl-project/sglang/pull/1620
* [Performance, hardware] MoE tuning update to AMD MI300x GPUs by @HaiShaw in https://github.com/sgl-project/sglang/pull/1619
* Update README.md by @kushal34712 in https://github.com/sgl-project/sglang/pull/1625
* Update README.md by @merrymercy in https://github.com/sgl-project/sglang/pull/1629
* Add device support by @liangan1 in https://github.com/sgl-project/sglang/pull/1607
* Nit about the decorator of `PortArgs.init_new` by @glen-amd in https://github.com/sgl-project/sglang/pull/1611
* [Bug] Fix the Image Input of Batch Generation by @OBJECT907 in https://github.com/sgl-project/sglang/pull/1579
* Add the ability to enable and disable the Profiler via HTTP API. by @abatom in https://github.com/sgl-project/sglang/pull/1626
* Fix the correctness test in bench_latency.py when tp > 1 and test_generation_models.py by @merrymercy in https://github.com/sgl-project/sglang/pull/1631
* Add image_token in conversation.py by @merrymercy in https://github.com/sgl-project/sglang/pull/1632
* Added a "Back To Top" Button by @JanumalaAkhilendra in https://github.com/sgl-project/sglang/pull/1633
* Fix constrained decoding by @merrymercy in https://github.com/sgl-project/sglang/pull/1634
* Add back data parallelism by @merrymercy in https://github.com/sgl-project/sglang/pull/1635
* Release v0.3.3.post1 by @merrymercy in https://github.com/sgl-project/sglang/pull/1636
* [engine] support async and streaming by @ByronHsu in https://github.com/sgl-project/sglang/pull/1614
* [Fix] Fix the style of test_large_max_new_tokens.py by @merrymercy in https://github.com/sgl-project/sglang/pull/1638
* fix missing ignore_eos in v1/chat/completions by @learninmou in https://github.com/sgl-project/sglang/pull/1642
* Fix ignore_eos in the OpenAI ChatCompletions API by @merrymercy in https://github.com/sgl-project/sglang/pull/1645
* [Feature, Hardware] Enable SGLang on XPU GPUs via PyTorch by @liangan1 in https://github.com/sgl-project/sglang/pull/1480
* Fix unit tests and type annotations by @merrymercy in https://github.com/sgl-project/sglang/pull/1648
* Add an option to disable penalizer by @merrymercy in https://github.com/sgl-project/sglang/pull/1651
* Add get_tokenizer function for Engine class by @pjyi2147 in https://github.com/sgl-project/sglang/pull/1653
* Fix the batch_is_full check for jump-forward decoding by @merrymercy in https://github.com/sgl-project/sglang/pull/1654
* Simplify the event loop and expose `--num-continuous-decode-steps` as an argument by @merrymercy in https://github.com/sgl-project/sglang/pull/1652
* [doc] Add engine section in backend.md by @ByronHsu in https://github.com/sgl-project/sglang/pull/1656
* [Fix] fix eos trim inconsistency by @Ying1123 in https://github.com/sgl-project/sglang/pull/1650
* Add output_ids into ScheduleBatch by @merrymercy in https://github.com/sgl-project/sglang/pull/1659
* [Minor] Rename no_eos_trim to no_stop_trim by @Ying1123 in https://github.com/sgl-project/sglang/pull/1661
* Add a test case to test retract by @merrymercy in https://github.com/sgl-project/sglang/pull/1662
* Move filter_batch out of stream_output by @merrymercy in https://github.com/sgl-project/sglang/pull/1663
* Support double sparsity by @andy-yang-1 in https://github.com/sgl-project/sglang/pull/1459
* Fix unit test order to balance the tasks in CI by @merrymercy in https://github.com/sgl-project/sglang/pull/1665
* [Minor] Improve style by @merrymercy in https://github.com/sgl-project/sglang/pull/1666
* Simplify chunked prefill by @merrymercy in https://github.com/sgl-project/sglang/pull/1667
* [1/N] Remove `CacheConfig` import in all model files by @ByronHsu in https://github.com/sgl-project/sglang/pull/1658
* [doc] improve engine doc and add to readme by @ByronHsu in https://github.com/sgl-project/sglang/pull/1670
* [Minor] Add some utility functions by @merrymercy in https://github.com/sgl-project/sglang/pull/1671
* Improve benchmark scripts by @merrymercy in https://github.com/sgl-project/sglang/pull/1672
* Fix memory leak during abort by @merrymercy in https://github.com/sgl-project/sglang/pull/1674
* Fix filter_batch function call by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1681
* Add OLMo model by @janimo in https://github.com/sgl-project/sglang/pull/1676
* Add a new event loop by @merrymercy in https://github.com/sgl-project/sglang/pull/1677
* Fix srt dependency by @ispobock in https://github.com/sgl-project/sglang/pull/1685
* [Event] Add online meetup meeting link by @Ying1123 in https://github.com/sgl-project/sglang/pull/1686
* Launch a thread to overlap CPU and GPU by @merrymercy in https://github.com/sgl-project/sglang/pull/1687
* Returning a per request metric for number of cached_tokens read by @havetc in https://github.com/sgl-project/sglang/pull/1599
* add orjson for jsonresponse by @michaelfeil in https://github.com/sgl-project/sglang/pull/1688
* Update README.md by @merrymercy in https://github.com/sgl-project/sglang/pull/1689
* Add date to logging messages (#1623) by @zeng-zc in https://github.com/sgl-project/sglang/pull/1679
* Update the transformers version in CI by @merrymercy in https://github.com/sgl-project/sglang/pull/1690
* Use SGLang imports for linear layer by @janimo in https://github.com/sgl-project/sglang/pull/1696
* feat: radix tree code optimize by @wxsms in https://github.com/sgl-project/sglang/pull/1697
* ORJson. Faster Json serialization by @michaelfeil in https://github.com/sgl-project/sglang/pull/1694
* Fix the failed unit tests by @merrymercy in https://github.com/sgl-project/sglang/pull/1699
* Fix failed ci tests on long prompts; Better error messages for embedding models by @merrymercy in https://github.com/sgl-project/sglang/pull/1700
* Fix engine unit test by @merrymercy in https://github.com/sgl-project/sglang/pull/1701
* Fix mixed batch for multi modal models by @merrymercy in https://github.com/sgl-project/sglang/pull/1702
* Add matched_stop token or str to distinguish between eos or stop str finish_reason generation by @g-drozdov in https://github.com/sgl-project/sglang/pull/1684
* Fix regex and logprob conflicts when chunked prefilling by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1703
* Simplify flashinfer utilities by @merrymercy in https://github.com/sgl-project/sglang/pull/1704
* Add dtype for more operations by @merrymercy in https://github.com/sgl-project/sglang/pull/1705
* Add grouped free operations by @merrymercy in https://github.com/sgl-project/sglang/pull/1706
* Skip unnecessary penalizer by @merrymercy in https://github.com/sgl-project/sglang/pull/1707
* Simplify the nan detection and greedy check in sampler by @merrymercy in https://github.com/sgl-project/sglang/pull/1709
* Fix `is_all_ready` for overlap copy by @merrymercy in https://github.com/sgl-project/sglang/pull/1710
* Fix the race condition in overlap mode by @merrymercy in https://github.com/sgl-project/sglang/pull/1712
* Update README.md by @merrymercy in https://github.com/sgl-project/sglang/pull/1713
* Release v0.3.4 by @merrymercy in https://github.com/sgl-project/sglang/pull/1714
* Simplify the interface of tp_worker by @merrymercy in https://github.com/sgl-project/sglang/pull/1718
* Update vllm to 0.6.3 (#1711) by @zhyncs in https://github.com/sgl-project/sglang/pull/1720
* Support qwen2 vl model by @zhyncs in https://github.com/sgl-project/sglang/pull/1721
* Update README.md by @Ying1123 in https://github.com/sgl-project/sglang/pull/1722
* Unify the memory pool api and tp worker API by @merrymercy in https://github.com/sgl-project/sglang/pull/1724
* Temporarily skip the test_mixed_batch for QWen2VL by @merrymercy in https://github.com/sgl-project/sglang/pull/1725
* Split the overlapped version of TpModelWorkerClient into a separate file by @merrymercy in https://github.com/sgl-project/sglang/pull/1726
* [Bugfix] qwen2vl forward_extend by @yizhang2077 in https://github.com/sgl-project/sglang/pull/1727
* Simplify the usage of device by @merrymercy in https://github.com/sgl-project/sglang/pull/1734
* Simplify batch result resolution by @merrymercy in https://github.com/sgl-project/sglang/pull/1735
* Add GLM-4 TextGeneration Model support for SGLang by @sixsixcoder in https://github.com/sgl-project/sglang/pull/1736
* Make token mapping non-blocking in the overlapped mode by @merrymercy in https://github.com/sgl-project/sglang/pull/1740
* Maintain seq_lens_sum to make more FlashInfer operations non-blocking by @merrymercy in https://github.com/sgl-project/sglang/pull/1741
* Fix prefill oom by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1743
* Faster overlap mode scheduler by @merrymercy in https://github.com/sgl-project/sglang/pull/1738
* misc: add CODEOWNERS by @zhyncs in https://github.com/sgl-project/sglang/pull/1737
* Fix sliding window attention and gemma-2 unit tests in CI by @merrymercy in https://github.com/sgl-project/sglang/pull/1746
* Llama3.2 vision model support by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1551
* Update `max_req_len` and `max_req_input_len` by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1748
* Release v0.3.4.post1 by @merrymercy in https://github.com/sgl-project/sglang/pull/1749
## New Contributors
* @du00cs made their first contribution in https://github.com/sgl-project/sglang/pull/1521
* @KylinMountain made their first contribution in https://github.com/sgl-project/sglang/pull/1520
* @jeffrey-fong made their first contribution in https://github.com/sgl-project/sglang/pull/1495
* @cauyxy made their first contribution in https://github.com/sgl-project/sglang/pull/1537
* @kkHuang-amd made their first contribution in https://github.com/sgl-project/sglang/pull/1554
* @tbarton16 made their first contribution in https://github.com/sgl-project/sglang/pull/1553
* @mssongit made their first contribution in https://github.com/sgl-project/sglang/pull/1536
* @FredericOdermatt made their first contribution in https://github.com/sgl-project/sglang/pull/1569
* @kushal34712 made their first contribution in https://github.com/sgl-project/sglang/pull/1625
* @liangan1 made their first contribution in https://github.com/sgl-project/sglang/pull/1607
* @glen-amd made their first contribution in https://github.com/sgl-project/sglang/pull/1611
* @OBJECT907 made their first contribution in https://github.com/sgl-project/sglang/pull/1579
* @abatom made their first contribution in https://github.com/sgl-project/sglang/pull/1626
* @JanumalaAkhilendra made their first contribution in https://github.com/sgl-project/sglang/pull/1633
* @learninmou made their first contribution in https://github.com/sgl-project/sglang/pull/1642
* @pjyi2147 made their first contribution in https://github.com/sgl-project/sglang/pull/1653
* @andy-yang-1 made their first contribution in https://github.com/sgl-project/sglang/pull/1459
* @michaelfeil made their first contribution in https://github.com/sgl-project/sglang/pull/1688
* @zeng-zc made their first contribution in https://github.com/sgl-project/sglang/pull/1679
* @wxsms made their first contribution in https://github.com/sgl-project/sglang/pull/1697
* @g-drozdov made their first contribution in https://github.com/sgl-project/sglang/pull/1684
* @sixsixcoder made their first contribution in https://github.com/sgl-project/sglang/pull/1736
**Full Changelog**: https://github.com/sgl-project/sglang/compare/v0.3.2...v0.3.4.post1