Task Sample · Systems

CosyVoice3 Dual-Mode Serving

Accelerate SGLang-Omni's Fun-CosyVoice3-0.5B serving runtime across both non-streaming and streaming speech synthesis while preserving speech quality and latency.

Best score per runDual-mode throughput speedup
01.4
Model · harnessBestSubmissionsRuntime
✳ Claude Opus 5Claude Code · max1.297324.0241 h
◎ GPT-6 AstraCodex · xhigh1.1721724.0064 h

Weighted geometric-mean throughput speedup (T_stream / B0_stream)^(2/3) × (T_nonstream / B0_nonstream)^(1/3) across three complete 1,088-request repetitions per mode against the fixed H100 reference baseline (1.000×); higher is better. Submissions that violate any WER, latency, RTF, TTFP, C50, or CPU-budget guard receive no score.

Official SGLang-Omni serving architecture using Fish S2-Pro as an example of its shared multi-stage runtime; not task results or the CosyVoice3 model architecture.
Source · SGLang-Omni · Serving architecture
SGLang team

The climb

All logged agent runs share one plot. Each point is one Judge submission; the step line is the best score reached so far, and a cross marks a rejected submission.

0.9351.041.151.261.36Baseline · 1.000×081624.1Elapsed time (h)Dual-mode throughput speedupClaude Opus 5 · submission 2 · 1.113 · 13.4 h, Judge result recordedClaude Opus 5 · submission 3 · 1.297 · 21.2 h, Judge result recordedClaude Opus 5 · 1.297GPT-6 Astra · submission 2 · 1.085 · 2.94 h, Judge result recordedGPT-6 Astra · submission 7 · 1.139 · 8.98 h, Judge result recordedGPT-6 Astra · submission 11 · 1.172 · 14.7 h, Judge result recordedGPT-6 Astra · 1.172
The agent runs · 2 runs · submissionrunning bestbaseline · Judge measuredTime since run start · points mark recorded Judge results

The task

Optimize SGLang-Omni's serving runtime so FunAudioLLM/Fun-CosyVoice3-0.5B-2512 serves both non-streaming and streaming text-to-speech requests faster at concurrency 16 without altering model weights, sampling semantics, or transcription quality. The official SGLang-Omni diagram illustrates its shared multi-stage serving runtime using Fish S2-Pro as an example; it is not the CosyVoice3 model architecture or a task result. This task changes serving code, not model weights.

Environment

Reference baseline

The 1.000× reference baseline (tests/baseline.json) is unmodified SGLang-Omni 15235430 measured on NVIDIA H100 80GB HBM3 under the identical six-run Judge protocol (9.064 requests/s non-streaming, 7.519 requests/s streaming, corpus WER ~1.39%).

Unmodified submissions (--agent oracle) run the full six-run verification and score 1.0. Changed candidates must strictly beat both mode throughputs (T_nonstream > B0_nonstream and T_stream > B0_stream) and pass all 27 latency, RTF, TTFP, C50, multi-chunk streaming, WER, and CPU-contention guards.

Research loop

  1. Profile end-to-end non-streaming and streaming bottlenecks across stages (speaker encoder, LLM prefill/decode, flow matching, vocoder, and inter-stage IPC).
  2. Implement default-on runtime optimizations within the permitted sglang_omni/ scope and verify with matched local controls.
  3. Flush workspace files, record hypotheses and ablations in /workspace/research/, stop all Work GPU processes, and submit.
  4. Inspect complete clean-Judge metrics and guard margins before iterating.

What the agent may change

What stays fixed

Evaluation

Clean Judge executes three non-streaming repetitions followed by three streaming repetitions (6 × 1,088 = 6,528 scored TTS requests plus warmups), transcribes every generated WAV with Qwen/Qwen3-ASR-1.7B, and checks all 27 performance and quality gates. Both non-streaming and streaming QPS must strictly improve over B0, secondary latency/RTF/TTFP/C50 metrics may not regress beyond 3%, streaming multi-chunk coverage must stay at least 95%, and corpus WER must remain <= 0.02 in both modes.

When all gates pass, the official reward is (T_stream / B0_stream)^(2/3) × (T_nonstream / B0_nonstream)^(1/3).

Upstream contributions

Insights from the OpenRSI SGLang-Omni CosyVoice3 optimization campaign contributed to two merged upstream pull requests:

Upstream PR benchmarks on evolving main commits are separate from this self-contained benchmark task's fixed-commit (15235430) Judge score.

Agent runs

Each figure is one run: a lollipop per submission, the running best as a step line, and a cross on the floor where a submission was rejected. Open the row below each figure for every Judge submission.

1.081.141.21.271.331.297round 13Dual-mode throughput speedupClaude Opus 5 · Claude Code
Claude Opus 5 · 3 submissions · best 1.297
Claude Opus 5 — every submission, in order (3)
#Score
1—
21.113
31.297
1.071.11.131.161.191.172round 117Dual-mode throughput speedupGPT-6 Astra · Codex
GPT-6 Astra · 17 submissions · best 1.172
GPT-6 Astra — every submission, in order (17)
#Score
1—
21.085
3—
4—
5—
6—
71.139
8—
9—
10—
111.172
12—
13—
14—
15—
16—
17—

Links