SGLang v0.3.2stable Released Oct 02, 2024
Impact Score: 9/10

SGLang: Release v0.3.2

Source available - automated, not human-reviewed

Component: sglang · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-26.

Automated impact estimate - compatibility not verified
$ python -m pip install 'sglang==0.3.2'
📄 .MD
⚡ Executive Summary (TL;DR)

SGLang v0.3.2 introduces significant architectural changes including the deprecation of the --disable-flashinfer flag and a refactored attention backend. Users gain performance-critical support for torch.compile, AMD GPU acceleration via ROCm, and initial multi-LoRA serving capabilities.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Developers must update launch scripts to replace --disable-flashinfer with the new --attention-backend argument and test performance with torch.compile enabled.

📊 Product & Engineering Leads

This release expands platform reach to AMD hardware and enhances deployment flexibility with multi-LoRA support and improved quantization options.

⚙️ DevOps & Security

Ops teams should monitor new dependency requirements for AMD/ROCm and adjust container configurations to accommodate the revised attention backend architecture.

✨ New Features & Capabilities (6)

  • Initial support for multi-LoRA serving
  • Support for AMD backend via PyTorch for ROCm
  • Integration of torchao for quantization (int4/int8/fp8)
  • Support for OpenAI API json_schema response format
  • Support for response prefill in OpenAI API
  • New model support for MiniCPM3, OLMoE, BaiChuan2, and XVERSE

⚡ Performance & Enhancements (5)

  • Support for torch.compile and CUDA graphs for triton attention backend
  • Optimized CPU scheduler overhead
  • Enabled DeepSeek MLA by default
  • Refactored attention backend structure
  • Improved error reporting during server launch

🔧 Bug Fixes & Patches (4)

  • Fixed critical tokenizer and modality bugs for llama and llava models
  • Resolved CORS compatibility issues with OpenAI/vLLM/TGI/LMDeploy
  • Fixed vocab mask update and OOM issues with fp8 quantization
  • Addressed padding errors in CUDA graph execution

❓ Frequently Asked Questions

Does SGLang v0.3.2 contain breaking changes?

Yes. The removal of the --disable-flashinfer flag and the refactoring of the attention backend require modifications to existing startup commands and model loader configurations.

What is the primary highlight of v0.3.2?

The primary highlight is the substantial performance optimization through torch.compile support for the triton attention backend, alongside expanded hardware support for AMD GPUs.

How should teams prepare to upgrade to v0.3.2?

Teams should audit their server launch scripts to ensure usage of the new --attention-backend parameter instead of the deprecated flag, and perform regression testing on custom model pipelines due to the refactored attention kernels.

📄 View Raw Release Notes (Original Developer Log)
## Highlight - Support torch.compile, cuda graph for triton attention backend and DeepSeek MLA #1442 #1422 - Initial support for multi-LoRA serving #1307 - Integrate torchao for quantization #1341 - Optimize the CPU scheduler overhead - Multiple critical bug fixes for llama and llava (tokenizer, modality) - Support AMD backend #1420 - New models: MiniCPM3, OLMoE ## What's Changed * Remove useless fields in global_config.py by @merrymercy in https://github.com/sgl-project/sglang/pull/1328 * docs: update README by @zhyncs in https://github.com/sgl-project/sglang/pull/1336 * docs: highlight ttft itl and throughput by @zhyncs in https://github.com/sgl-project/sglang/pull/1337 * docs: add conclusion by @zhyncs in https://github.com/sgl-project/sglang/pull/1340 * Optimize schedule by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1339 * Fix some online scheduling delay by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1345 * [triton] Support head_dim not 2^n in triton extend and decode attention by @ByronHsu in https://github.com/sgl-project/sglang/pull/1281 * [Feat] Add modalities for vision server when handling pixel values for llava by @kcz358 in https://github.com/sgl-project/sglang/pull/1346 * [server] Passing `model_override_args` to `launch_server` via the CLI. by @kevin85421 in https://github.com/sgl-project/sglang/pull/1298 * [Minor] Many cleanup by @merrymercy in https://github.com/sgl-project/sglang/pull/1357 * Add torchao quant (int4/int8/fp8) to llama models by @jerryzh168 in https://github.com/sgl-project/sglang/pull/1341 * [CI] Return output logprobs in unit test by @Ying1123 in https://github.com/sgl-project/sglang/pull/1361 * Unify forward mode by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1360 * Support OpenAI API json_schema response format by @zifeitong in https://github.com/sgl-project/sglang/pull/1363 * Adding Documentation for installation by @zhaochenyang20 in https://github.com/sgl-project/sglang/pull/1300 * [Docs] Improve documentations by @merrymercy in https://github.com/sgl-project/sglang/pull/1368 * fix bug of `undefined is_single` in meth `create_abort_task` by @wcsjtu in https://github.com/sgl-project/sglang/pull/1370 * Support MiniCPM3 by @Achazwl in https://github.com/sgl-project/sglang/pull/1371 * Fix CORS compatibility with OpenAI, vLLM, TGI, LMDeploy by @josephrocca in https://github.com/sgl-project/sglang/pull/1373 * [Minor] improve kill scripts and torchao import by @merrymercy in https://github.com/sgl-project/sglang/pull/1375 * Fix vocab mask update bug by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1376 * [Minor] move triton attention kernels into a separate folder by @merrymercy in https://github.com/sgl-project/sglang/pull/1379 * Deprecate --disable-flashinfer and introduce --attention-backend by @merrymercy in https://github.com/sgl-project/sglang/pull/1380 * Organize flashinfer indices update by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1378 * remove assertion in triton attention and add an unit test by @ByronHsu in https://github.com/sgl-project/sglang/pull/1385 * BaiChuan2 Model by @blacker521 in https://github.com/sgl-project/sglang/pull/1367 * [Fix] Fix --disable-flashinfer by @merrymercy in https://github.com/sgl-project/sglang/pull/1389 * Improve error reporting during server launch by @merrymercy in https://github.com/sgl-project/sglang/pull/1390 * Refactor attention backend by @merrymercy in https://github.com/sgl-project/sglang/pull/1381 * Add no commit to main rule by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1393 * Fix README format by @Achazwl in https://github.com/sgl-project/sglang/pull/1399 * Support cuda graph in the triton attention backend by @merrymercy in https://github.com/sgl-project/sglang/pull/1401 * kernel: use tensor cores for flashinfer gqa kernels by @yzh119 in https://github.com/sgl-project/sglang/pull/1403 * [Minor Fix] Fix llava modalities issue for single-image by @kcz358 in https://github.com/sgl-project/sglang/pull/1402 * Add Support for XVERSE Models (Dense and MoE) to sglang by @hxer7963 in https://github.com/sgl-project/sglang/pull/1397 * [Feature] Initial support for multi-LoRA serving by @Ying1123 in https://github.com/sgl-project/sglang/pull/1307 * [Minor, CI] remove lora test from minimal suite by @Ying1123 in https://github.com/sgl-project/sglang/pull/1406 * Make stop reason a dict instead of str by @merrymercy in https://github.com/sgl-project/sglang/pull/1407 * [CI] Include triton backend and online serving benchmark into CI by @merrymercy in https://github.com/sgl-project/sglang/pull/1408 * [Minor] Raise exception for wrong import by @Ying1123 in https://github.com/sgl-project/sglang/pull/1409 * Balance test in CI by @merrymercy in https://github.com/sgl-project/sglang/pull/1411 * Update pr-test.yml by @merrymercy in https://github.com/sgl-project/sglang/pull/1412 * ci: fix finish by @zhyncs in https://github.com/sgl-project/sglang/pull/1414 * Optimize conflicts between CUDA graph and vocab mask tensors by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1392 * Add torchao quant for mixtral and qwen_moe by @jerryzh168 in https://github.com/sgl-project/sglang/pull/1418 * Add pytorch sampling backend ut by @ispobock in https://github.com/sgl-project/sglang/pull/1425 * fix: resolve nightly eval by @zhyncs in https://github.com/sgl-project/sglang/pull/1426 * Enable torch.compile for triton backend by @merrymercy in https://github.com/sgl-project/sglang/pull/1422 * Add libibverbs-dev to Dockerfile by @Aphoh in https://github.com/sgl-project/sglang/pull/1427 * Update backend.md by @merrymercy in https://github.com/sgl-project/sglang/pull/1429 * [Fix] Fix logprob and normalized_logprob by @merrymercy in https://github.com/sgl-project/sglang/pull/1428 * Release v0.3.1 by @merrymercy in https://github.com/sgl-project/sglang/pull/1430 * Remove deprecated configs by @merrymercy in https://github.com/sgl-project/sglang/pull/1431 * [Feature] Support LoRA path renaming and add LoRA serving benchmarks by @Ying1123 in https://github.com/sgl-project/sglang/pull/1433 * Revert "[Minor] Raise exception for wrong import (#1409)" by @Ying1123 in https://github.com/sgl-project/sglang/pull/1432 * Add constrained_json_whitespace_pattern to ServerArgs by @zifeitong in https://github.com/sgl-project/sglang/pull/1438 * Clean up model loader by @merrymercy in https://github.com/sgl-project/sglang/pull/1440 * Simplify sampler and its error handling by @merrymercy in https://github.com/sgl-project/sglang/pull/1441 * [Feature, Hardware] Enable SGLang on AMD GPUs via PyTorch for ROCm by @HaiShaw in https://github.com/sgl-project/sglang/pull/1420 * Fix torch compile for deepseek-v2 by @ispobock in https://github.com/sgl-project/sglang/pull/1442 * Add OLMoE model by @janimo in https://github.com/sgl-project/sglang/pull/1444 * Release 0.3.1.post1 by @merrymercy in https://github.com/sgl-project/sglang/pull/1445 * Enable MLA by default by @ispobock in https://github.com/sgl-project/sglang/pull/1447 * Fix attention backend by @ispobock in https://github.com/sgl-project/sglang/pull/1448 * fix schedule bug by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1450 * Fix schedule bug by @hnyls2002 in https://github.com/sgl-project/sglang/pull/1451 * Fixed n>1 causing list index out of range with VLM by @jasonyux in https://github.com/sgl-project/sglang/pull/1449 * Add bench_server_latency.py by @merrymercy in https://github.com/sgl-project/sglang/pull/1452 * [Bugfix] Enable SGLang on AMD GPUs via PyTorch for ROCm (#1419) by @HaiShaw in https://github.com/sgl-project/sglang/pull/1453 * Fix oom issues with fp8 for llama by @merrymercy in https://github.com/sgl-project/sglang/pull/1454 * Fuse top_k and top_k in the sampler by @merrymercy in https://github.com/sgl-project/sglang/pull/1457 * [Event] Add public meeting invite to README by @Ying1123 in https://github.com/sgl-project/sglang/pull/1458 * fix: creat new dict everytime for putting new frame by @Luodian in https://github.com/sgl-project/sglang/pull/1464 * Fix padding in the cuda graph by @merrymercy in https://github.com/sgl-project/sglang/pull/1469 * Release v0.3.1.post2 by @merrymercy in https://github.com/sgl-project/sglang/pull/1470 * Fix env vars in bench_latency by @merrymercy in https://github.com/sgl-project/sglang/pull/1472 * feat: update linear deps 1/N by @zhyncs in https://github.com/sgl-project/sglang/pull/1305 * minor: add quant eval compared with base by @zhyncs in https://github.com/sgl-project/sglang/pull/1475 * Add OLMoE by @Muennighoff in https://github.com/sgl-project/sglang/pull/1476 * Fix triton head num by @ispobock in https://github.com/sgl-project/sglang/pull/1482 * Add MLA gsm8k eval by @ispobock in https://github.com/sgl-project/sglang/pull/1484 * chore: bump v0.3.1.post3 by @zhyncs in https://github.com/sgl-project/sglang/pull/1483 * fix incorrect links in documentation by @rchen19 in https://github.com/sgl-project/sglang/pull/1481 * doc: update backend by @zhyncs in https://github.com/sgl-project/sglang/pull/1486 * Better unit tests for adding a new model by @merrymercy in https://github.com/sgl-project/sglang/pull/1488 * Pr fix max workers by @wellhowtosay in https://github.com/sgl-project/sglang/pull/1456 * Add a unit test for data parallelism by @merrymercy in https://github.com/sgl-project/sglang/pull/1489 * Add AMD tests to CI by @Ying1123 in https://github.com/sgl-project/sglang/pull/1491 * Update dockerfile to include datamodel_code_generator by @merrymercy in https://github.com/sgl-project/sglang/pull/1492 * [API, Feature] Support response prefill for openai API by @Ying1123 in https://github.com/sgl-project/sglang/pull/1490 * minor: add mla fp8 test by @zhyncs in https://github.com/sgl-project/sglang/pull/1494 * Fix the overhead due to penalizer in bench_latency by @merrymercy in https://github.com/sgl-project/sglang/pull/1496 * MoE torch compile by @ispobock in https://github.com/sgl-project/sglang/pull/1497 * [CI] Move AMD test to a separate file by @merrymercy in https://github.com/sgl-project/sglang/pull/1500 * Update test_srt_backend.py by @merrymercy in https://github.com/sgl-project/sglang/pull/1502 * debug radixcache stack_overflow by @luzengxiangcn in https://github.com/sgl-project/sglang/pull/1499 * Simplify bench_latency.py by @merrymercy in https://github.com/sgl-project/sglang/pull/1503 * [Fix] Fix clean_up_tokenization_spaces in tokenizer by @merrymercy in https://github.com/sgl-project/sglang/pull/1510 * Add support for tie_word_embeddings when loading weights + support for SmolLM by @TianyiQ in https://github.com/sgl-project/sglang/pull/1508 * Revert "kernel: use tensor cores for flashinfer gqa kernels" by @Ying1123 in https://github.com/sgl-project/sglang/pull/1511 * Release v0.3.2 by @Ying1123 in https://github.com/sgl-project/sglang/pull/1512 ## New Contributors * @zifeitong made their first contribution in https://github.com/sgl-project/sglang/pull/1363 * @wcsjtu made their first contribution in https://github.com/sgl-project/sglang/pull/1370 * @Achazwl made their first contribution in https://github.com/sgl-project/sglang/pull/1371 * @josephrocca made their first contribution in https://github.com/sgl-project/sglang/pull/1373 * @blacker521 made their first contribution in https://github.com/sgl-project/sglang/pull/1367 * @yzh119 made their first contribution in https://github.com/sgl-project/sglang/pull/1403 * @hxer7963 made their first contribution in https://github.com/sgl-project/sglang/pull/1397 * @Aphoh made their first contribution in https://github.com/sgl-project/sglang/pull/1427 * @HaiShaw made their first contribution in https://github.com/sgl-project/sglang/pull/1420 * @jasonyux made their first contribution in https://github.com/sgl-project/sglang/pull/1449 * @Muennighoff made their first contribution in https://github.com/sgl-project/sglang/pull/1476 * @rchen19 made their first contribution in https://github.com/sgl-project/sglang/pull/1481 * @wellhowtosay made their first contribution in https://github.com/sgl-project/sglang/pull/1456 * @luzengxiangcn made their first contribution in https://github.com/sgl-project/sglang/pull/1499 * @TianyiQ made their first contribution in https://github.com/sgl-project/sglang/pull/1508 **Full Changelog**: https://github.com/sgl-project/sglang/compare/v0.3.0...v0.3.2