Skip to content

docs: OmniVoice concurrency benchmark report (RTX 4090, C++ vs Python, f16/bf16) - #1262

Merged
0xShug0 merged 2 commits into
0xShug0:mainfrom
kawshikbuet17:omnivoice
Nov 12, 2026
Merged

0xShug0 merged 2 commits into
0xShug0:mainfrom
kawshikbuet17:omnivoice

Conversation

@kawshikbuet17

Copy link
Copy Markdown
Contributor

Adds a benchmark report for the OmniVoice code merged in #1208: how much voice-cloning throughput one RTX 4090 delivers with the C++ runtime vs the Python OmniVoice package, when you add batch size and more instances until the GPU saturates.

What was compared

  • C++: perf_mode=off (default) and perf_mode=flash_attention
  • Python: plain PyTorch, upstream apply_flashinfer, and FlashInfer + CUDA graphs
  • f16 and bf16 for each

How

  • One round = N instances (separate processes, one model each) start together; each makes one call with B different sentences, so N x B concurrent requests. Time = until the last output is ready.
  • Batch size goes 1, 2, 3, ... until 3 sizes in a row give no new best throughput (or OOM); instances go 1, 2, 3, ... until one more gives no gain (or OOM).
  • Bengali voice clone, 16 steps, sentences of 5–30 words and a mixed list. 5 warm-up rounds, then 1 timed round per row.

Results

  • Single request: C++ flash_attention is the fastest at every length (106–270 ms for 5–30 words, f16).
  • Peak throughput: Python + FlashInfer is the highest, but only with 5–6 processes and 19.9–22.5 GiB of GPU memory. One C++ process already saturates the GPU; a second instance lowers throughput by 5–7%.
  • bf16: C++ is 3–12% slower than f16. Plain FlashInfer cannot run bf16 (the upstream patch plans attention as f16).

Files

  • docs/reports/omnivoice_concurrency_benchmark.md: findings, setup, method, saturation point per variant, and every round (1511: 1496 measured, 15 failed with the reason)
  • docs/reports/data/omnivoice_concurrency_rtx4090.csv: the same table as CSV
  • docs/models/omnivoice.md: link to the report

Docs only; no code changes.

Throughput of the C++ runtime vs the Python OmniVoice package (plain,
FlashInfer, FlashInfer + CUDA graphs) on one RTX 4090, f16 and bf16.
Each variant runs as 1, 2, 3, ... instances (one model per process) at
batch size 1, 2, 3, ... until the GPU saturates; one round = all
instances start together, each with one call of batch-size sentences.
5 warm-up rounds, then 1 timed round per row.

docs/reports/omnivoice_concurrency_benchmark.md: findings, setup,
method, saturation point per variant, and every round (1511: 1496
measured, 15 failed with the reason). The same table is in
docs/reports/data/omnivoice_concurrency_rtx4090.csv.
docs/models/omnivoice.md links the report.

Measured on the OmniVoice code merged in 0xShug0#1208.
@0xShug0

0xShug0 commented Nov 12, 2026

Copy link
Copy Markdown
Owner

@kawshikbuet17 Thanks for the PR! Could you remove the CSV from the PR? Also, I think the report should summarize the results at a high level rather than list every round.

@kawshikbuet17

Copy link
Copy Markdown
Contributor Author

@kawshikbuet17 Thanks for the PR! Could you remove the CSV from the PR? Also, I think the report should summarize the results at a high level rather than list every round.

I agree with the CSV removal; however, I think the results should be there because the summary/interpretation/use case can be different for different users. Only a summary may not be sufficient to choose the correct combination according to the user's use case. Let me know your opinion on this.

The full table stays in docs/reports/omnivoice_concurrency_benchmark.md.
@kawshikbuet17

Copy link
Copy Markdown
Contributor Author

@0xShug0 I've removed the CSV and the docs/reports/data/ folder in 7813b7b. The report itself is unchanged, so it still has the full per-round table, which lets each user pick the instances × batch × precision combination that fits their use case, as I mentioned above. If you'd still prefer only a high-level summary in the report, let me know and I'll trim it.

@0xShug0
0xShug0 merged commit 9d409da into 0xShug0:main Nov 12, 2026
7 checks passed
@0xShug0

0xShug0 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

@kawshikbuet17 That's fine. PR merged!

Generally I prefer compat table e.g,

Workload Variant Precision Processes × batch Throughput Req/s RTF Peak VRAM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants