█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

SGLang-Omni

TTS, ASR और omni मॉडल के लिए मल्टी-स्टेज सर्विंग रनटाइम, जिसमें OpenAI-compatible speech, transcription और multimodal chat endpoints मिलते हैं

Serving & Deploymentओपन सोर्स
ताज़ा
v0.1.7
अपडेट किया गया
28 सित॰ 2026
भाषा
Python
लाइसेंस
Apache-2.0
$docker pull hongccc/sglang-omni:dev

नया क्या है

v0.1.728 सित॰ 2026

v0.1.7 added MiniCPM-o 4.5 support, an OmniTyper dictation app with MLX streaming ASR and a session lifecycle for the Omni pipeline, bumped SGLang to 0.5.20 and shipped a run of Qwen3-TTS, Fun-CosyVoice3 and AuK performance work.

संक्षेप में

SGLang-Omni क्या है?

SGLang-Omni TTS, ASR और omni मॉडल के लिए मल्टी-स्टेज सर्विंग रनटाइम, जिसमें OpenAI-compatible speech, transcription और multimodal chat endpoints मिलते हैं. यह Models & Inference टूल्स की Serving & Deployment श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: container शुरू करें.

अपडेट किया गया Markdown वर्शन ↗

सारांश

SGLang-Omni, sgl-project टीम का सर्विंग फ्रेमवर्क है, यानी उसी टीम का जो SGLang बनाती है। यह उन मॉडलों के लिए है जिन्हें सामान्य LLM सर्वर ठीक से नहीं संभाल पाता: text-to-speech, speech recognition और यूनिफ़ाइड "omni" मॉडल, जो text, images, video या audio इनपुट लेते हैं और text या audio आउटपुट देते हैं। ये मॉडल एक ही पास में जनरेट नहीं करते। एक रिक्वेस्ट preprocessing, encoders, एक autoregressive engine, talker, decoder या vocoder और aggregator से होकर गुजरती है, और हर स्टेज का अपना compute पैटर्न और resource ज़रूरतें होती हैं। SGLang-Omni इस चेन को coordinated stages की तरह देखता है और pipeline topology, stage lifecycle और stages के बीच के transport का प्रबंधन खुद करता है।

Diagram of one /v1/audio/speech request flowing from the HTTP server through the coordinator into three Fish S2-Pro pipeline stages: tokenizer, autoregressive model runner and vocoder
One speech request traced through the coordinator and a three-stage Fish S2-Pro pipelineSGLang-Omni design docs ↗

हर स्टेज एक scheduler के पीछे चलता है, जो उसके काम के हिसाब से चुना जाता है: जिस मॉडल में LLM core है वहाँ KV cache, batching और prefill/decode scheduling के साथ SGLang-backed autoregressive scheduling, preprocessing के लिए हल्के schedulers, और vocoders के लिए streaming loops। एक control plane requests और signals को stages के बीच रूट करता है, जबकि एक अलग relay data plane tensor payloads को shared memory, NCCL, NIXL या Mooncake के ज़रिए भेजता है। दूसरे शब्दों में, SGLang-Omni SGLang की जगह नहीं लेता। वह autoregressive हिस्सों के लिए उसके साथ जुड़ता है और उनके आसपास multi-stage plumbing जोड़ता है।

बाहर से यह एक OpenAI-compatible server है। /v1/audio/speech single, batch और streaming speech generation के साथ अपलोड की गई voices और voice cloning को कवर करता है; /v1/audio/transcriptions ASR संभालता है, जिसमें MOSS-Transcribe-Diarize के लिए speaker labels और timestamps शामिल हैं; और chat endpoints Qwen3-Omni और Ming-Omni जैसे omni मॉडलों को सर्व करते हैं। मॉडल सूची में Higgs Audio v3, Fish Speech S2-Pro, Qwen3-TTS, Voxtral TTS, MOSS-TTS, ZONOS2, Qwen3-ASR, Fun-ASR और MiniMax Music 3 शामिल हैं, और हर मॉडल का अपना cookbook पेज है। NVIDIA CUDA पूरी तरह समर्थित backend है; Apple Silicon और Intel GPUs को कुछ मॉडलों के लिए experimental चिह्नित किया गया है। यह Python में है, Apache-2.0 लाइसेंस के तहत है, और PyPI पर sglang-omni नाम से प्रकाशित है।

यह क्या करता है

  • Multi-stage runtime, जो generation को preprocessing, encoder, autoregressive, talker, decoder, vocoder और aggregator stages के रूप में मॉडल करता है, और हर stage का अपना scheduler है
  • autoregressive stages (KV cache, batching, prefill/decode scheduling) के लिए SGLang के core को दोबारा इस्तेमाल करता है और उसके आसपास streaming vocoder loops और हल्के preprocessing schedulers जोड़ता है
  • अलग control और data planes: requests और signals coordinator से जाते हैं, और tensors stage से stage तक shared memory, NCCL, NIXL या Mooncake के ज़रिए चलते हैं
  • multimodal chat, speech generation (single, batch, streaming, uploaded voices) और transcription के लिए OpenAI-compatible endpoints, साथ ही live speech-to-text के लिए /v1/realtime WebSocket demo
  • TTS, ASR, omni और music मॉडलों के लिए per-model cookbooks, Fish Speech S2-Pro और Qwen3-TTS से लेकर Qwen3-Omni और MiniMax Music 3 तक
  • SGLang-Omni Router: health, readiness, lifecycle और capability discovery के साथ एक multi-worker OpenAI-compatible front door

शुरू करें

प्रोजेक्ट NVIDIA GPUs पर अपने Docker image की सलाह देता है, क्योंकि UCX, flash-attn, SGLang और CUDA पहले से build होकर आते हैं। नीचे के steps installation और TTS guides पर आधारित हैं; Apple Silicon, Intel XPU, CPU, MUSA और Ascend NPU के लिए अपने अलग install पेज हैं।

Container शुरू करें

केवल एक dev tag प्रकाशित होता है, और वह main के साथ आगे बढ़ता है। reproducible runs की ज़रूरत हो तो digest से pin करें।

bashbash
docker pull hongccc/sglang-omni:dev

docker run -it \
    --shm-size 32g \
    --gpus all \
    --ipc host \
    --network host \
    --privileged \
    hongccc/sglang-omni:dev \
    /bin/zsh

उसके अंदर sglang-omni इंस्टॉल करें

bashbash
pip install --upgrade pip
pip install uv

uv venv .venv -p 3.12
source .venv/bin/activate

uv pip install --prerelease=allow "sglang-omni==0.1.7"

एक TTS मॉडल सर्व करें

TTS guide Fish Speech S2-Pro का उपयोग करती है (पहले cookbook से उसकी model-specific DAC prerequisites पूरी कर लें)। उदाहरण config repo की examples/configs directory में मिलता है; allowed-media-domain flags की ज़रूरत तभी होती है जब requests Hugging Face से reference audio लाती हैं।

bashbash
hf download fishaudio/s2-pro

sgl-omni serve \
  --model-path fishaudio/s2-pro \
  --config examples/configs/s2pro_tts.yaml \
  --allowed-media-domain huggingface.co \
  --allowed-media-domain cas-bridge.xethub.hf.co \
  --port 8000

OpenAI-style endpoint से speech जनरेट करें

bashbash
curl -X POST http://localhost:8000/v1/audio/speech \
    -H "Content-Type: application/json" \
    -d '{
      "model": "fishaudio/s2-pro",
      "voice": "default",
      "input": "Hello, how are you?"
    }' \
    --output output.wav

या ASR मॉडल से audio ट्रांसक्राइब करें

Qwen3-ASR जैसे speech recognition मॉडल भी उसी तरह सर्व होते हैं और /v1/audio/transcriptions पर जवाब देते हैं, हर request में एक अपलोड की गई file के साथ।

bashbash
sgl-omni serve \
  --model-path Qwen/Qwen3-ASR-1.7B \
  --model-name Qwen/Qwen3-ASR-1.7B \
  --port 8000

curl -X POST http://localhost:8000/v1/audio/transcriptions \
  -F model=Qwen/Qwen3-ASR-1.7B \
  -F file=@tests/data/query_to_cars.wav \
  -F response_format=json

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

The Wire Service web demo for the /v1/realtime endpoint, showing connection settings, a microphone panel, a live transcript and the raw WebSocket message feed
The bundled /v1/realtime web demo streaming microphone audio to Qwen3-OmniSGLang-Omni playground ↗
  • ओपन text-to-speech मॉडल खुद होस्ट करें, voice cloning, batch और streaming output के साथ, OpenAI के speech endpoint जैसे उसी API ढांचे के पीछे
  • ओपन speech recognition चलाएं, जिसमें timestamps के साथ speaker diarization शामिल है, एक OpenAI-compatible transcription सेवा के रूप में
  • Qwen3-Omni जैसा omni मॉडल सर्व करें, जो audio, images या video इनपुट लेता है और text या speech में जवाब देता है, जिसमें /v1/realtime के ज़रिए live microphone input भी शामिल है
  • SGLang-Omni Router के साथ health checks और capability discovery के लिए कई speech workers को एक front door के पीछे रखें

How SGLang-Omni compares

SGLang-Omni alongside other open-source serving & deployment tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Transformers★ 170kटेक्स्ट, विज़न, ऑडियो और मल्टीमॉडल के लिए एक साझा मॉडल-डेफ़िनिशन फ़्रेमवर्क: inference और training, दोनों के लिए
vLLM★ 98kबड़े भाषा मॉडल (LLM) के लिए तेज़, मेमोरी-कुशल इनफ़रेंस और सर्विंग
SGLang★ 39.3kLLM और multimodal models के लिए prefix-cache reuse के साथ तेज़ serving
Modular Platform★ 30.2kएक ही ओपन रिपॉज़िटरी में विकसित किए जा रहे MAX इंफ़रेंस फ़्रेमवर्क और Mojo भाषा
DeepInfer★ 27.4kउच्च-प्रदर्शन वाला इंफ़रेंस फ़्रेमवर्क, जो DeepSeek की अपनी प्रोडक्शन सेवाओं को चलाता है और अब ओपन सोर्स के रूप में जारी किया गया है
TensorRT-LLM★ 15.2kLLM को ऑप्टिमाइज़्ड इंजन में कंपाइल करें, ताकि NVIDIA GPU पर inference तेज़ हो
OpenVINO★ 13.6kIntel CPU, GPU और NPU पर deep learning मॉडल को ऑप्टिमाइज़ और डिप्लॉय करें
SGLang-Omni★ 2kTTS, ASR और omni मॉडल के लिए मल्टी-स्टेज सर्विंग रनटाइम, जिसमें OpenAI-compatible speech, transcription और multimodal chat endpoints मिलते हैं