Same-GPU Data Parallelism with CUDA MPS#
TL;DR: Same-GPU DP with CUDA MPS can substantially increase throughput. In the pinned TTS tests below, saturated DP2 and DP3 configurations reached 1.4 to 2.1x the tuned single-replica throughput.
A common data-parallel deployment assigns one GPU to each replica. When a tuned replica still leaves substantial GPU headroom, colocating multiple replicas on the same GPU can improve per-GPU throughput.
Same-GPU data parallelism runs several complete serving replicas on one GPU and lets CUDA MPS share the GPU between them. This is a conditional and ongoing optimization. We are excited to share it and call for the community to join the exploration.
Native runtime support (--mps)#
The runtime can manage MPS itself for the processes of one pipeline. When a
pipeline colocates two or more single-GPU stage processes on one GPU (for
example a frontend process next to the generation process, or process-level
replicas), pass --mps auto:
sgl-omni serve --model-path <model> --mps auto
Modes (--mps on the CLI or mps: in the pipeline config; default off, except where a measured replica profile applies, as described under Default replica counts on a B200, on an RTX 4090 D, on an H200 and on an H100):
off: MPS is never touched.auto: MPS is enabled on every GPU that hosts two or more single-GPU, non-TP CUDA processes of this pipeline. GPUs with one process and TP groups run without MPS.on: a single eligible process is enough, and an MPS-incapable platform is a hard error instead of a warning. Useonfor same-GPU data parallelism: everyserve --mps onon one GPU joins the same daemon.
Both auto and on reject startup before acquiring MPS state when one process’s
resolved placement spans more than one physical GPU; use mps=off for that
placement. Factory CUDA devices use the narrowed worker’s local namespace:
cuda:0 is compatible with any single-GPU placement, while a nonzero cuda:N
is excluded because narrowing a worker to one UUID makes its only valid CUDA
ordinal cuda:0.
Pipeline-edge transport remains the responsibility of the existing router and
relay layers; it does not participate in MPS eligibility.
The daemon is shared per physical GPU (keyed by device UUID): MPS merges
kernels only for clients of one server, so the first serve creates the
daemon, later serves join it, and the last one to leave drains the clients
and quits it. Logical GPU ordinals are resolved once against the parent
process’s CUDA visibility and then grouped by physical UUID; auto counts the
combined client processes in each physical group. Pipeline or stage
environment defaults must not override CUDA_VISIBLE_DEVICES or
CUDA_DEVICE_ORDER while native MPS is enabled; set them on the parent command
instead, or use mps=off. Same-GPU DP is therefore just N serve commands:
sgl-omni serve --model-path <model> --mps on --mem-fraction-static 0.35 --port 8807
sgl-omni serve --model-path <model> --mps on --mem-fraction-static 0.35 --port 8808
Start replicas one after another and give each an explicit memory budget
(--mem-fraction-static or the stage-qualified
--<engine-stage>.engine.max_total_tokens), for the same KV-sizing
reasons described under the script recipe below. Route traffic with the
Omni Router.
Process-level replicas can size their pools in bytes instead, with
engine.kv_cache_bytes per stage and total_reserve_bytes for the replica’s
full footprint. The budgets are then checked against the card before any
replica is spawned: colocation requires a declared footprint, the summed
reserves and fractions must fit the card, and the summed KV pools alone must
too. engine.kv_cache_bytes and engine.max_total_tokens are mutually
exclusive on one stage, since the lower token cap would silently shrink the
byte-derived pool.
The runtime owns the full lifecycle. Every managed process is verified against the daemon’s client list before serving starts, because a process that misses the pipe directory silently falls back to time slicing. A watchdog fails the pipeline if daemon identity or control access is lost mid-serving. Shutdown re-evaluates the current client list, drains this serve’s clients, and quits the daemon only when no other serve still owns it.
If a managed worker does not exit before the shutdown timeout, the runtime
terminates that directly owned child process and reaps it before the launcher
exits, even when that directly owned worker is also an MPS client. It sends no
additional signal based on an MPS snapshot or client PID, and never
automatically signals the daemon, an unknown descendant, or a GPU-wide process
set. Process ownership and shared MPS state are handled independently: if
daemon identity, client ownership, or control state cannot be proved after the
workers are gone, the owner file is marked retained, its lock is released,
and the state directory is preserved. The current command then exits with a
detailed non-zero error instead of keeping a CLI owner alive.
Dirty state is never repaired automatically. A join requires the native
nvidia-cuda-mps-control.pid identity, a responsive control socket, and every
published owner lease to still be held. After a hard kill (SIGKILL, OOM kill,
node crash), even an idle daemon or one dead co-owner makes the next start
preserve the state and fail with owner/client details and safe cleanup guidance.
An unlocked or retained owner blocks every later start until an operator has
inspected and cleaned the state. Existing healthy co-owners keep serving, but
new owners cannot join and no process retries cleanup automatically. Clean up
and start again. A normal shutdown leaves nothing behind.
Operator notes: state lives under /tmp/sglang-omni-mps-<user>/<gpu-uuid>/
(SGLANG_OMNI_MPS_STATE_ROOT overrides it). Serves that are meant to share
one GPU must use the same state root, or they cannot discover each other’s
daemon and will run separate MPS servers that time-slice against each other.
The state root is created with mode 0700; an existing root must already be a
non-symlink directory owned by the current user with that mode. Native MPS
rejects CUDA_MPS_PIPE_DIRECTORY in the parent, pipeline, or stage environment
instead of overwriting or joining an external daemon. It likewise rejects
SGLANG_OMNI_WEIGHT_SHARE in those locations: inside one pipeline, CUDA IPC
weight sharing is requested with --weight-share on and the runtime assigns
replica roles itself, while the examples/mps_dp/launch.sh recipe below sets
that variable for its own separate serve processes.
Deploy#
The steps below are one continuous flow. We provide examples/mps_dp/launch.sh to manage the private MPS daemon and serving replicas for one run. It records replica processes, ports, and logs, starts replicas sequentially, verifies their KV capacity and MPS attachment, and tears down only the run it recorded. Detailed instructions are as follows:
Choose the GPU and NUMA node.
nvidia-smi --query-gpu=index,utilization.gpu,memory.used --format=csv,noheader
export GPU_ID=0
BUS=$(nvidia-smi --query-gpu=pci.bus_id --format=csv,noheader -i $GPU_ID)
BUS=${BUS,,}; BUS=${BUS:4}
NODE=$(cat /sys/bus/pci/devices/$BUS/numa_node) # if -1, set the node explicitly
numactl -H | grep "node $NODE cpus"
Pick a GPU that is idle, then find its NUMA node from the PCI bus id (drm card ordinals do not always match nvidia-smi ordinals). Choose non-overlapping physical CPU-core blocks from that node, one block per replica.
Launch the replicas.
CONFIG=examples/mps_dp/configs/higgs_h100_dp3.yaml N=3 CORE_BLOCKS="0-9 10-19 20-29" bash examples/mps_dp/launch.sh up
The command above is the validated H100 Higgs DP3 recipe. For the validated H200 Higgs DP8 recipe, use:
CONFIG=examples/mps_dp/configs/higgs_h200_dp8.yaml N=8 CORE_BLOCKS="0-3 4-7 8-11 12-15 16-19 20-23 24-27 28-31" bash examples/mps_dp/launch.sh up
The pipeline config supplies the model and per-replica runtime settings. The launcher environment supplies host-local placement, including the GPU, replica count, and CPU blocks. The launcher resolves the GPU’s NUMA node, assigns local ports automatically, starts a private MPS daemon, waits for each replica’s health check before starting the next, and verifies MPS attachment. The CPU blocks above are specific to the tested hosts; derive the correct non-overlapping blocks for your own CPU topology.
Both profiles set mem_fraction_static to 0.85; MF can override it. When CONFIG is unset, the existing MODEL and MAX_TOTAL_TOKENS interface remains available. Launching replicas sequentially avoids overlapping memory profiling and CUDA-graph capture during startup.
Identical --mem-fraction-static flags do not mean identical KV capacity. --mem-fraction-static budgets model weights and the KV pool against the GPU memory available when each replica starts. Roughly, the profiled KV memory is the requested fraction of free memory measured before model loading, minus model and fixed runtime allocations. It is a per-replica budget, not an additive share of the card. Because replicas start sequentially, earlier ones have already reserved memory, so later ones see a smaller free pool and allocate fewer KV tokens even when every flag is the same (in one run, three sequential mf=0.27 replicas received 97,503 / 53,149 / 20,961 KV tokens).
Memory profiling does not coordinate KV allocation across independent replica processes. For N > 1, every replica must resolve the same KV capacity, which can come from either sizing knob but never both:
engine.kv_cache_bytesin the pipeline config sizes every replica’s pool deterministically; the launcher verifies all replicas resolved the same capacity and rejects a simultaneousMAX_TOTAL_TOKENS, since a lower token cap would silently shrink the byte-derived pool.Without a byte budget, the launcher requires one common
max_total_tokensvalue, from the pipeline config or fromMAX_TOTAL_TOKENS, and rejects startup unless every replica resolves exactly that capacity.
Either cap applies independently to each replica; it is not divided across the pool. It is also independent of the request-level max_new_tokens limit and does not distribute requests between replicas.
The H100 Higgs DP3 profile uses 100000 tokens per replica. The H200 Higgs DP8 profile uses 30000 tokens per replica, preserving GPU memory headroom for non-KV runtime allocations, including the colocated audio encoder and vocoder. These values are specific to their configurations, not universal hardware defaults. Recalculate the cap after changing the model, GPU, runtime, replica count, memory settings, or CUDA-graph settings. If a replica cannot allocate the common cap, lower it or reduce the replica count.
The H200 profile’s 30000-token KV pool is smaller than the worst-case demand from 64 requests each generating up to 2048 new tokens, even before accounting for input tokens. Therefore, max_running_requests=64 is an admission ceiling rather than a guarantee that 64 long requests can decode concurrently. If the pool fills, SGLang retracts requests and returns them to the waiting queue until KV capacity becomes available.
Drive every replica to saturation.
The case study used one dedicated client per replica and drove all replicas in parallel. The measured goal is to keep every replica saturated. With equivalent replicas, random or round-robin routing can distribute a shared ingress across the pool; fill-one-then-next is another possible strategy, but the study did not compare them. Equal KV capacity makes the replicas comparable, but it does not by itself balance their queues. Validate the routing policy and per-replica saturation under your workload.
Verify MPS attachment.
MPS should be verified carefully. Four things are easy to conflate: environment variables set, daemon running, an MPS server exists, and the replica processes you launched are actually attached as clients. Only the last makes the comparison valid, and a replica that missed the pipe directory falls back to time-slicing without any error. The launcher verifies every replica against the MPS client list, writes the server-to-client PID mapping to mps_attach.txt, and fails startup if any replica is not attached.
Route traffic.
For easy deployment, configure each replica endpoint in the Omni Router. Set server.max_connections for the expected client connections and admission.global and the relevant service admission limit for the offered request concurrency. The case study did not benchmark router scheduling policies, so confirm that the selected policy keeps every replica driven and meets your workload’s latency and throughput requirements.
Tear down safely.
Stop new traffic, then run the teardown command printed by the launcher:
bash examples/mps_dp/launch.sh down <RUN_ID>
On a shared host, only touch processes you launched, and never treat “the GPU is empty” as the success condition. The launcher stops only the replica processes recorded for the selected run, waits for their MPS clients to detach, and then stops the private MPS daemon. It keeps the run state whenever cleanup cannot be confirmed.
Setting up and tearing down MPS is more involved than running a single replica, but in the pinned H100 Higgs tests the throughput gain was substantial. The table below shows the nominal completed-run ranges; the full accounting, including the failed and degraded runs, is in the case study.
Configuration |
Nominal throughput |
Relative to single |
|---|---|---|
Single c96 |
21.7 to 22.1 qps |
1.0x |
DP2 + MPS, 2 x c64 |
31.5 to 37.7 qps |
1.4 to 1.7x |
DP3 + MPS, 3 x c64 |
39.9 to 46.9 qps |
1.8 to 2.1x |
The throughput results in the table and H100 case study are from an 80 GB H100 with Higgs. The H200 DP8 profile was validated separately on the full SeedTTS English dataset at concurrency 64 per replica. Re-evaluate replica count, CPU allocation, token capacity, and saturation concurrency before applying either profile to different hardware or workloads.
Default replica counts on a B200#
On an NVIDIA B200, sgl-omni serve --model-path <model> serves each model below as several replicas on one GPU under native MPS, with no other flag. The launch identifies the GPU through NVML and applies the replica count and per-replica settings measured on that GPU, and the log says what it did:
sgl-omni serve --model-path openai/whisper-large-v3
Serving 6 replicas of openai/whisper-large-v3 on GPU 0 (NVIDIA B200) under MPS, the count measured for this GPU; --mps off serves one replica
The measured settings apply only when all of the following hold. Otherwise the launch serves the model’s own config, as before, and the log line names the reason.
The GPU is the measured model: NVML reports
NVIDIA B200with 183,359 MiB of memory, within 2%.Native MPS can start on it: the platform is NVIDIA CUDA,
nvidia-cuda-mps-controlis onPATH, MIG mode is off, the environment sets neitherCUDA_MPS_PIPE_DIRECTORYnorSGLANG_OMNI_WEIGHT_SHARE, and no earlier run left MPS state on the GPU that a new launch cannot join, as a serve killed with SIGKILL does. The section on native runtime support says how to inspect and clean that state.The pipeline runs on that one GPU without tensor parallelism, every process the profile replicates has a stage on that GPU, and the memory the replicas reserve, as fractions or as
total_reserve_bytes, is free.No config file or flag sizes or places the replicas itself: nothing under
processes, no--mps off, no stageprocess,tp_size,gpu_memory_fractionortotal_reserve_bytes, no enginemem_fraction_static(including--mem-fraction-static),max_total_tokensorkv_cache_bytes, and none of the settings the profile writes. Moving the pipeline to another GPU with--<stage>.gpukeeps the profile, and the replicas follow it.
sgl-omni config resolve --model-path <model> prints the config a launch on the same host would use, and sgl-omni config explain processes.<process>.num_replicas --model-path <model> names the measured profile as the source of the count. The profiles live in sglang_omni/mps/replica_profiles.py.
Model |
Default replicas |
Goodput at 0.5 / 1 / 3 s |
One replica at 0.5 / 1 / 3 s |
More replicas for a looser target |
|---|---|---|---|---|
Qwen3-TTS 1.7B Base |
9 |
459 / 459 / 459 |
54 / 86 / 86 |
|
Qwen3-TTS 1.7B CustomVoice |
7 |
444 / 444 / 444 |
131 / 131 / 131 |
8 at 1 and 3 s: 461 |
MOSS-TTS Local Transformer v1.5 |
5 |
163 / 163 / 163 |
46 / 73 / 73 |
|
MOSS-TTS v1.5 |
2 |
77 / 99 / 111 |
33 / 50 / 67 |
3 at 1 s: 100 |
Ming-3.0-tts 0.5B |
2 |
83 / 100 / 100 |
33 / 50 / 55 |
3 at 1 s: 100, 6 at 3 s: 113 |
Fish Audio Drama 3 |
2 |
45 / 53 / 57 |
26 / 34 / 34 |
|
Whisper large-v3 |
6 |
1110 / 1110 / 1110 |
268 / 268 / 268 |
12 at 1 and 3 s: 1117 |
Qwen3-ASR 1.7B |
5 |
2008 / 2008 / 2008 |
923 / 923 / 923 |
|
MOSS-Transcribe-Diarize |
7 |
1854 / 1993 / 1993 |
510 / 510 / 510 |
|
Nemotron 3.5 ASR Streaming 0.6B |
8 |
1224 / 1359 / 1359 |
205 / 205 / 227 |
14 at 1 and 3 s: 1373 |
Goodput is audio seconds per second: generated audio for TTS, transcribed input audio for ASR. For TTS the latency is the p99 stall-free start, the time from a request’s arrival to its first audio packet plus the smallest client buffer that plays the rest without a stall. For ASR it is the p99 request latency from arrival. The one-replica column is one replica with the per-replica settings of the measured configs, such as at most 16 running requests. It is not the model’s own config, one replica on the whole GPU with the engine’s default concurrency, which this table did not measure; the paragraph after the methods compares the Whisper, Qwen3-ASR and MOSS-Transcribe-Diarize defaults with it.
The default is the count with the most audio within the strictest target, 0.5 s. It keeps at least 88% of the best count’s audio at 1 s and 3 s, the lowest being Ming-3.0-tts at 3 s, so one default holds for all three targets. examples/mps_dp/b200/ has every measured config as <model>_b200_dp<N>.yaml, the defaults and the larger counts in the last column; sgl-omni serve --config <file> serves one as written. A file is also the way to change one setting and keep the others, because a flag that sets one of the settings above drops the whole profile.
Every count from 1 to the most that fit on the GPU was served at eight or more open-loop Poisson arrival rates, 1,024 requests per rate, once for each of three arrival seeds. The requests come from the SeedTTS evaluation set, and the ASR models transcribe its reference clips. Each replica admits up to 16 running requests. A rate counts when at most 1% of its requests fail and the backlog does not grow: the median latency of the last quarter of requests is at most 1.15 times that of the second quarter. A count’s goodput is the most audio among its counted rates whose p99 latency meets the target, averaged over the three seeds. Each count in the table, the default at 0.5 s and a looser target’s count at that target, is within 90% of the best count on every seed. Every rate sent the same 1,024 clips, and Whisper, Qwen3-ASR and MOSS-Transcribe-Diarize cache their audio encoder’s output by the decoded waveform, so a clip that a replica had seen before skipped its encoder: the goodputs of these three models in this table include those requests, which a server gets only when audio repeats, and so do the ones in the other sections, except those measured with a waveform of its own for every request, which are MOSS-Transcribe-Diarize on an H200, an H100 and an RTX 4090 D, and Whisper large-v3 on an H100. Nemotron 3.5 ASR keeps no such cache, only each streaming session’s state, so its rows are not affected.
Measured again on main d36c1c37a with a waveform of its own for every request, so that no encoder cache hit, each of these three defaults served more than the model’s own config (--mps off) on every arrival seed at 0.5 s: Whisper large-v3’s 6 replicas 406 / 427 / 367 against 220 / 296 / 306, Qwen3-ASR 1.7B’s 5 replicas 2011 / 2180 / 1923 against 906 / 992 / 844, and MOSS-Transcribe-Diarize’s 7 replicas 1550 / 1187 / 1374 against 723 / 744 / 791, the last two with their default DFlash drafts in both configs. At 1 and 3 s, Qwen3-ASR served 2038 on average against 988 and 1069, and MOSS-Transcribe-Diarize 1651 against 888 at both. Whisper served 498 and 518 against 437 and 506, behind on the second seed at both, 427 against 429 and 569: at every rate above 87 requests/s, more than 1% of that seed’s requests were turned away by the replicas’ 16-request queues, while the model’s own config has no queue cap and failed none. Each config ran pinned to 16 CPU threads of its GPU’s NUMA node, with other tenants on the host’s other six GPUs.
The Nemotron 3.5 ASR profile caps OMP_NUM_THREADS, MKL_NUM_THREADS and OPENBLAS_NUM_THREADS at 4 in the stage environment, as measured. Under the runtime’s default thread plan, which sets only OMP_NUM_THREADS, each replica process grew to 130 to 140 threads on the 288-core host, and in a closed-loop pass at 16 requests in flight per replica, 12 replicas served 31 requests/s against 239 with the caps. The cap is not a general setting: it slowed MOSS-TTS Local Transformer by 36% at its default 5 replicas. A thread variable set in the parent environment still wins over the profile’s.
CosyVoice3 has no profile: its speech tokenizer runs on onnxruntime-gpu, whose 1.32.0 build has no sm_100 kernels, so it did not serve on the B200 without a local change that moves the tokenizer to the CPU.
The measurements used sglang-omni 8848e500, sglang 0.5.23, torch 2.14.1 with CUDA 13.0 and NVIDIA driver 590.48.01. The host had 288 CPU cores, its other seven GPUs ran other measurements at the same time, and replicas were not pinned to cores. A new GPU model gets its defaults the same way: measure it, then add its entries to sglang_omni/mps/replica_profiles.py and its configs to examples/mps_dp/<gpu>/, which tests/unit_test/mps/test_mps_replica_profiles.py keeps equal.
Default replica counts on an RTX 4090 D#
On a 24 GB NVIDIA GeForce RTX 4090 D, NVML reporting 24,564 MiB, sgl-omni serve --model-path OpenMOSS-Team/MOSS-Transcribe-Diarize serves 2 replicas under native MPS, under the same conditions as on a B200, and so does nvidia/nemotron-3.5-asr-streaming-0.6b. Qwen3-ASR 1.7B keeps its own config there, one replica with the engine’s default concurrency, because no replica count beat it, and so does CosyVoice3, where two replicas did not beat one. examples/mps_dp/rtx4090d/ has the measured configs.
Model |
Model’s own config |
Best replica count |
Goodput of that count |
|---|---|---|---|
Qwen3-ASR 1.7B |
1571 / 1398 |
2 at 32 running requests each |
1132 / 1161 |
MOSS-Transcribe-Diarize |
209 / 238 / 189 |
2 |
246 / 237 / 227 |
Nemotron 3.5 ASR Streaming 0.6B |
100 / 103 / 0 |
2 |
293 / 303 / 289 |
Goodput is audio seconds per second of transcribed input audio at a p99 request latency from arrival of at most 0.5 s, one value per arrival seed, counted with the rules of the B200 table. Unlike the B200 table, the comparison here includes the model’s own config. MOSS-Transcribe-Diarize was measured on main 7ac7e3f22 with a waveform of its own for every request, so that its encoder cache never hit, and with its default DFlash draft in both configs. Its 2 replicas served 1.12 times the model’s own config at 0.5 s, tying on the second seed at 237 against 238, 1.02 times at 1 s and 1.15 times at 3 s, ahead there on every seed (383 / 397 / 387 against 334 / 347 / 330). Each of its replicas keeps the engine’s 64 running requests and no queue cap, with a 32,768 token KV pool. In the search, which sent the same clips at every rate, 3 replicas with the B200 caps of 16 and 16 rejected requests from 100 requests/s and served less than one replica of the model’s own config. Qwen3-ASR runs its default DFlash draft, so two replicas fit only at 32 running requests each. For CosyVoice3, at the same per replica caps, two replicas served 17.7 and 26.8 audio s/s of generated audio at a p99 stall-free start of 1 and 3 s, against 17.8 and 26.9 for one. Nemotron 3.5 ASR’s 2 replicas run without the B200 thread caps and also beat its own config on every seed at 1 and 3 s (362 against 123 at both).
The measurements used sglang-omni a385eac6, and main 7ac7e3f22 for MOSS-Transcribe-Diarize, with sglang 0.5.23, torch 2.14.1 with CUDA 13.0 and NVIDIA driver 595.58.03. The host’s other GPUs ran other measurements at the same time. Each Nemotron and MOSS-Transcribe-Diarize cell ran on 16 CPU threads of its GPU’s NUMA node; the Qwen3-ASR and CosyVoice3 replicas were not pinned to cores.
Default replica counts on an H200#
On a 141 GB NVIDIA H200, NVML reporting 143,771 MiB, the models below serve several replicas under native MPS, under the same conditions as on a B200. examples/mps_dp/h200/ has the measured configs.
Model |
Model’s own config |
Default replicas |
Goodput of that count |
|---|---|---|---|
Qwen3-TTS 1.7B Base |
152 / 154 / 183 |
6 |
318 / 331 / 317 |
MOSS-Transcribe-Diarize |
908 / 1027 / 889 |
2 |
1159 / 909 / 1088 |
Goodput is one value per arrival seed at 0.5 s, counted as in the RTX 4090 D table: p99 request latency for MOSS-Transcribe-Diarize, p99 stall-free start of generated audio for Qwen3-TTS. Qwen3-TTS beats the model’s own config (--mps off) on every seed at 0.5, 1 and 3 s, and each of its stages keeps its B200 budget in GB. MOSS-Transcribe-Diarize was measured with a waveform of its own for every request, so its encoder cache never hit, and with its default DFlash draft in both configs. Its 2 replicas served 1.12 times the model’s own config at 0.5 s and 1.18 times at 1 and 3 s, where they are ahead on every seed (1394 / 1320 / 1294 against 1079 / 1189 / 1140); at 0.5 s the second seed, 909 against 1027, is within one step of the rate grid. Each MOSS-Transcribe-Diarize replica keeps the engine’s 64 running requests and no queue cap, with the GPU’s memory split evenly. In the search, which sent the same clips at every rate, 4 replicas with the B200 caps of 16, 16 and a 16,384 token pool served less than the model’s own config at 0.5 s, and 4 replicas on the engine’s own settings lost to it on two seeds. Other models keep their own config on an H200 until they have been measured there.
The Qwen3-TTS measurements used sglang-omni a385eac6 and the MOSS-Transcribe-Diarize ones main 96e99a8cc, both with sglang 0.5.23, torch 2.14.1 with CUDA 13.0 and NVIDIA driver 595.71.05, with other tenants on the host’s other GPUs. Each cell ran on 16 CPU threads of its GPU’s NUMA node.
Measured on main d36c1c37a against the model’s own config (--mps off), three more models serve several replicas by default on an H200, and Ming-3.0-tts 0.5B keeps its own config there.
Model |
Model’s own config |
Default replicas |
Request limits per replica |
Goodput of that count |
|---|---|---|---|---|
MOSS-TTS Local Transformer v1.5 |
53 / 54 / 40 |
4 |
16 running, 16 queued |
120 / 136 / 129 |
Nemotron 3.5 ASR Streaming 0.6B |
115 / 130 / 0 |
6 |
16 operations at a time, 4 threads |
640 / 666 / 631 |
Qwen3-TTS 1.7B CustomVoice |
252 / 259 / 273 |
3 |
the engine’s own |
407 / 412 / 407 |
Goodput is counted as in the table above, one value per arrival seed at 0.5 s: p99 request latency for Nemotron, p99 stall-free start of generated audio for the TTS models. The 0 is a seed on which the model’s own config missed 0.5 s at the lowest rate measured. Each default also beats the model’s own config on every seed at 1 and 3 s. MOSS-TTS Local and Nemotron keep each stage’s B200 budget in GB. Nemotron’s 16 limits the operations each replica runs at a time, such as transcription requests and appends to streaming sessions; open streaming sessions keep the engine’s limit of 64. At that budget 5 MOSS-TTS Local replicas do not fit on the GPU, and 3 served 131 / 134 / 117, about as much as 4 at 0.5 s but less at 1 and 3 s, 137 and 160 against 146 and 173 on average. Nemotron as 4, 5, 7 and 8 replicas served 559, 606, 588 and 581 at 0.5 s on average, against 646 for 6; at 1 and 3 s, 7 replicas served the most, 959 against 873 for 6. Each Qwen3-TTS CustomVoice replica keeps the engine’s own limits of 64 running and 64 queued requests, and the 3 replicas split the GPU’s memory; 6 replicas with the B200 budget and limits served 323 / 312 / 347. Ming-3.0-tts 0.5B as 2 replicas with the B200 limits served 29 / 33 / 29 at 0.5 s against its own config’s 32 / 33 / 32, and 3 replicas met 0.5 s at no rate, although both served more than its own config at 1 and 3 s, for example 73 / 74 / 73 against 50 / 52 / 55 for 3 replicas at 3 s.
These measurements used sglang-omni d36c1c37a, sglang 0.5.23, torch 2.14.1 with CUDA 13.0 and NVIDIA driver 595.71.05. Each config ran pinned to 16 CPU threads of its GPU’s NUMA node, with the other configs of this measurement on three other GPUs of the host at the same time.
Default replica counts on an H100#
On an 80 GB NVIDIA H100, NVML reporting NVIDIA H100 80GB HBM3 with 81,559 MiB, sgl-omni serve --model-path <model> serves each model below as several replicas under native MPS, under the same conditions as on a B200. A search on sglang-omni 8848e500 compared every replica count that fits with the model’s own config, one replica on the whole GPU with the model’s own request limits, and a count is the default only if it served more audio than that config on every arrival seed at 0.5 s. The table measures each default again on main, against the model’s own config (--mps off). examples/mps_dp/h100/ has each default as <model>_h100_dp<N>.yaml.
Model |
Default replicas |
Request limits per replica |
Goodput at 0.5 / 1 / 3 s |
Model’s own config at 0.5 / 1 / 3 s |
|---|---|---|---|---|
Ming-3.0-tts 0.5B |
2 |
16 running, 16 queued |
44 / 71 / 81 |
37 / 52 / 60 |
Nemotron 3.5 ASR Streaming 0.6B |
6 |
16 operations at a time, 4 threads |
829 / 990 / 990 |
160 / 189 / 262 |
Goodput and the rules that count a rate are those of the B200 table, averaged over three arrival seeds. On main, each default beats the model’s own config on every seed at 0.5, 1 and 3 s; the closest is Ming-3.0-tts 0.5B at 0.5 s, 44 against 40 on one seed. In the search, each default also kept at least 92% of the best count’s audio at 1 and 3 s, the lowest being Nemotron 3.5 ASR at 1 s, where 7 replicas served 1081.
MOSS-Transcribe-Diarize keeps its own config on an H100. Measured on main 38e8a268e with a waveform of its own for every request, so that its encoder cache never hit, and with its default DFlash draft in both configs, 2 replicas on the engine’s own request limits served 1117 / 976 / 942 at 0.5 s against 1158 / 1077 / 1223 for the model’s own config, behind it on every seed. At 1 and 3 s they served 1273 / 1301 / 1241 against the same 1158 / 1077 / 1223. With the same clips sent at every rate, the same 2 replicas had served 2647 against 1506 at 0.5 s on main c9e8e34e6.
Eight other measured models keep their own config on an H100. Three TTS models served more at 0.5, 1 and 3 s as several replicas, but one instance is faster at the loads of the TTS CI on an H100. The two Qwen3-TTS 1.7B models, as 3 replicas on the engine’s own request limits of 64 running and 64 queued requests, served Base 329 / 333 / 333 against 269 / 269 / 269 on main and CustomVoice 419 / 430 / 430 against 317 / 317 / 317. With 16 concurrent streaming requests, the 3 replicas of Base served 29.9 requests/s against the CI gate’s 33.0, at a mean latency of 0.53 s against 0.45 s, and at 20 requests/s their median first audio took 47 ms against 33 ms. MOSS-TTS Local Transformer v1.5, as 2 replicas with 16 running and 16 queued requests each, served 100 / 114 / 130 against 54 / 62 / 68, but with 16 concurrent streaming requests the 2 replicas took 0.82 s on average against the gate’s 0.79 s. Whisper large-v3 at 4 replicas on the engine’s own request limits, measured with a waveform of its own for every request, served 241 / 231 / 203 at 0.5 s against 265 / 276 / 240 for its own config, and less than it at 1 and 3 s as well; with the same clips sent at every rate, it had served 897 against 468 at 0.5 s. In the search, Qwen3-ASR 1.7B at 3 replicas served 2842 against 2768 at 0.5 s, but less than its own config on one seed, 2854 against 2951. For CosyVoice3, the model’s own config served 93 / 116 / 120, more than any count at every target. MOSS-TTS v1.5 at 2 replicas missed 0.5 s, which its own config meets at 23, although it served 53 against 43 at 1 s and 75 against 55 at 3 s. Fish Audio Drama 3 was not measured, because only one replica fits in 80 GB.
Each measured config ran pinned to the 16 CPU threads, of the host’s 128, on its GPU’s NUMA node, so that the configs measured at the same time on the host’s other GPUs did not take CPU from it. The search used sglang-omni 8848e500 and the table main c9e8e34e6 with these profiles, both with sglang 0.5.23, torch 2.14.1 with CUDA 13.0 and NVIDIA driver 580.126.20.
How We Found This#
This recipe grew out of the serving profiling in #907. Our profiling found substantial unused GPU capacity across several omni serving workloads, with strong host-dispatch-bound evidence in the tested ASR setup. From there we ran same-GPU DP experiments on Higgs and Moss TTS models.
Experiment |
GPU signal |
Controlled observation |
Result |
Interpretation |
|---|---|---|---|---|
ASR single replica |
GPU timeline 94.3% idle |
throughput 0.90x at SM clock 0.455x; 0.31x at host CPU near 0.25x |
sensitive to CPU, not to GPU compute |
strong host-dispatch-bound causal evidence in this ASR setup |
Higgs tuned single |
SM Active about 29%, GPU idle about 71% |
throughput plateaued, worker fully driven |
1.00x normalized |
clear reclaimable GPU headroom, but not the full ASR causal closure |
Higgs DP2 without MPS |
SM Active about 37 to 38%, GPU idle about 62 to 63% |
added a second same-card server process |
about 1.24x normalized |
the second process reclaims part of the idle gap; host scheduling and long-tail batching can both contribute |
Higgs DP with MPS |
see the pinned case study in Evaluate |
each replica saturated, MPS attachment confirmed |
1.4 to 2.1x nominal, repeated |
MPS-enabled saturated runs produced the largest gains observed in the later pinned tests. |
ASR is the strongest host-bound evidence. Higgs started as a gray zone but clearly leaves GPU headroom at a tuned single replica. Running several replicas as separate processes changes host execution, scheduling, and long-tail behavior, and it is not the same as enlarging one replica’s batch. Without MPS the CUDA contexts mostly time-slice and recover only part of the idle; MPS lets kernels from different processes run concurrently when resources permit, and the later MPS-enabled saturated runs produced the largest gains observed in the pinned tests.
Common questions#
Throughput has plateaued, so why is the GPU still idle?
Serving throughput depends on more than the GPU’s peak compute. It also depends on how much parallel work a single replica exposes per step, how fast the host side handles scheduling and stage handoffs, and the request-length and batching distribution. A single Higgs replica can have a full request queue and still sit at about 29% SM Active; adding a second independent replica improves GPU idle and throughput together. So one process’s serving path is not keeping the card fed, but the cause is not a single CPU function: multiple host execution paths, batching behavior, and a latency-bounded decode shape can all contribute.
Replicating the weights costs VRAM. What does that buy?
Same-GPU DP does not save VRAM; it spends more of it. It copies the weights per replica and gives each replica its own, smaller KV pool. What it buys is the otherwise idle compute, reclaimed. That trade pays off only when a tuned single replica leaves the GPU idle (so there are idle SMs to fill) and the model is small enough that its weights are a modest slice of the card, so two or three full replicas still fit. On a compute-bound model, or one too large to hold several weight copies, extra replicas buy little. (Weight sharing over CUDA IPC relaxes the fit constraint — followers attach the leader’s copy instead of loading their own — but not the idle-compute precondition.)
Why does this pay for TTS models and not for general LLM serving?
Memory fit is the enabling condition, not the cause. The cause is idle that a single engine cannot reclaim, and TTS-style AR audio models produce it on two axes at once:
Latency-capped batch shapes. Streaming first-chunk latency pins the per-replica batch small, and a 0.6–4B talker at that batch runs low-occupancy kernels. The usual LLM remedy — batch deeper in one engine — spends the latency budget the product is built around.
Host-heavy serving path. Sampler pools, vocoder scheduling, chunk assembly, and HTTP streaming do per-step host work that rivals the GPU step time, so a single process idles the card temporally between launches. N processes overlap one replica’s dispatch bubble with another’s kernels; this is also why same-GPU DP scaling is sensitive to the CPU cores allotted per replica.
A large dense transformer inverts every part of this: its decode batch can grow until the GEMMs saturate the SM array (continuous batching in one engine already multiplexes requests over one weight copy), SM utilization is high at serving batch sizes so MPS has no idle to harvest — only contention to add — and at tens of GiB per weight copy, same-card replicas stop fitting at all. The scaling tools there are TP/PP/EP within one engine, not DP behind MPS. Rule of thumb: colocate replicas when a tuned single replica holds roughly ≤60% SM-active under its latency SLO and N× the footprint fits (weight sharing extends the fit); otherwise scale the batch, not the process count.
Reproduce the results#
We release our early results and the guidance to reproduce them below.
Prepare the baseline#
The single-replica baseline decides whether same-GPU DP is worth it, and an under-driven baseline makes DP look better than it is. Tune and measure one replica first, then treat its throughput, latency, and GPU utilization as the number every DP configuration has to beat.
Sweep concurrency to the plateau. Raise client concurrency until throughput stops climbing, and read the scheduler log lines (
#running-req,#queue-req) at each step rather than assuming a good operating point.Know the admission limit. Higgs serves with
max_running_requests=64andcuda_graph_max_bs=64by default; both can be raised viasgl-omni serve --max_running_requests N --cuda_graph_max_bs N(the CUDA-graph capture range must cover the admission limit, and raising it costs capture memory). Whether the default cap binds depends on the runtime, so check the queue, do not assume.Separate client from server. Client concurrency is not the active generation batch: requests beyond the admission limit wait in the scheduler queue, and requests also spend time in the other pipeline stages.
Prerequisites. NVIDIA CUDA MPS available with GPU compute mode
Default, so a per-user daemon needs no root; enough GPU memory for every replica’s common KV cap plus roughly fixed per-replica overhead (weights, codec, MPS context); non-overlapping CPU core blocks, one per replica, on the GPU’s NUMA node (on SMT machines logical CPUsNandN + ncoresare often the same physical core, so checklscpu -e=CPU,CORE,NODE); and enough offered concurrency to saturate each replica, not just the pool.
Evaluate#
Whether same-GPU DP helps is easy to measure incorrectly, so hold the comparison to the same discipline for every configuration:
Control |
Why it matters |
|---|---|
tune the single replica to its throughput plateau |
keeps the baseline from being artificially weak |
hold total GPU and CPU resources fixed |
separates replica splitting from simply adding resources |
give each replica dedicated CPU cores |
keeps replicas from contending for host dispatch |
saturate each replica separately |
keeps the DP pool from being under-fed |
pin software and runtime settings |
makes the comparison reproducible |
report latency and unsuccessful runs |
avoids showing only the best throughput |
Case Study on H100 with Higgs TTS Model#
One H100 80 GB (driver 580.126.20 / CUDA 13), sglang-omni a78de4cb, sglang 0.5.12.post1, bosonai/higgs-tts-3-4b (snapshot 7556c17e), /v1/audio/speech, seed-tts-eval EN, 300 samples per client, default max_running_requests=64 / cuda_graph_max_bs=64, 32 server cores of the GPU’s NUMA node split per replica, one client per replica on the SMT-sibling cores, fresh servers per run, interleaved on a shared host. Every attempted run is reported.
Configuration |
Nominal throughput |
Relative to single |
Run outcome |
|---|---|---|---|
Single c96 |
21.7 to 22.1 qps |
1.0x |
4/4 completed |
DP2 + MPS, 2 x c64 |
31.5 to 37.7 qps |
1.4 to 1.7x |
3 nominal of 5 attempts |
DP3 + MPS, 3 x c64 |
39.9 to 46.9 qps |
1.8 to 2.1x |
2 nominal and 1 degraded of 4 attempts |
The failures: one DP2 benchmark run hit cudaErrorMpsRpcFailure, and one DP2 and one DP3 replica failed to start, all coinciding with host-load spikes. One DP3 run completed every request but at 13.3 qps, so it is marked degraded rather than excluded. The core-pinned single stayed within a few percent across all runs, and DP3 was not clearly repeatably better than DP2.
Note: the MAX_TOTAL_TOKENS setting makes per-replica KV sizing more explicit and comparable. It is not a direct fix for cudaErrorMpsRpcFailure, and the launch and runtime failure rate has not been re-measured with it in place; the failures in the table reflect the runs as recorded.
The #907 profiling, this repeated case study, and the reviewer verification below are three separate measurement series. They ran on different dates and load, and in some cases different software, so they should not be compared by absolute QPS; the differences between roughly 61, 21, and 29.9 qps are not attributed to a single cause.
A separate reviewer verification on the same pinned software revision measured 29.9, 59.7, and 64.5 qps for single, DP2, and DP3. Absolute throughput differed between the two runtime environments, including different observed admission behavior, so the two series should not be combined. Both nevertheless showed a clear DP gain once every configuration was saturated.
To measure your own setup, check whether one tuned replica is below GPU saturation under your real workload before adopting DP:
nvidia-smi dmon -i $GPU_ID -s um -d 5 # coarse utilization
nsys profile --gpu-metrics-devices $GPU_ID --gpu-metrics-set gh100 \
-d 60 -o one_replica -f true sleep 63 # device-level SM-active
Low SM activity at the tuned single replica’s peak may indicate reclaimable headroom; confirm it with a controlled DP comparison before relying on it. If SM activity is already near the ceiling, stop here.
Limits and next steps#
Generality is not fully validated. Beyond the pinned H100 Higgs case study, we also ran related experiments on H200 and used SGLang to serve Qwen3-4B directly; both lines of work largely confirmed the same-GPU DP gains. Space and time limit how completely we can present those results here, and the measurements are not yet as polished as we would like. We believe same-GPU DP is a promising direction for smaller models on GPUs with ample memory and compute headroom, but the experimental coverage is still incomplete.
KV sizing is hardware- and workload-specific. The launcher enforces equal per-replica KV capacity through a common
MAX_TOTAL_TOKENS. A sizing procedure that generalizes across models, runtimes, and GPU configurations still requires further study.Router and scheduler still need a deeper dive. Both the router and the SGLang Omni scheduler need further optimization. On the router side, better routing strategies for a colocated pool are clearly required. On the scheduler side, a more ambitious question is whether we can borrow the spirit of LLM prefill–decode (PD) disaggregation: keep one large shared KV cache and let multiple replicas share it. That direction is extremely challenging, and we believe the potential payoff is correspondingly large.
Same-GPU DP with MPS can recover idle GPU time on host- or dispatch-bound serving today, but broader validation and the work above are still unfinished. If this direction interests you, or you have results from other models, GPUs, or workloads that confirm or challenge these findings, we would like to work with you.