Skip to content

Reduce CosyVoice3 memory reservations and add speech speed control - #1330

Merged
0xShug0 merged 1 commit into
mainfrom
fix/cosyvoice3-arena-and-speed
Nov 18, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
fix/cosyvoice3-arena-and-speed

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Reduce CosyVoice3’s oversized host metadata reservations and expose upstream-style offline speech-speed control.

  • Default AR/flow graph metadata arenas to 64 MiB and weight metadata contexts to 4 MiB, down from 1 GiB and 2 GiB respectively. Existing family-prefixed session overrides remain available.
  • Add --request-option speed=1.2, implemented by resizing mel frames before HiFT with the existing framework interpolation module. Default speed remains 1.0; released GGUF contracts are supported.
  • Document the options and distinguish metadata budgets from tensor storage and VRAM limits.

Changes are confined to CosyVoice3 implementation, spec and documentation. Shared framework modules are unchanged.

Validation: earlier CUDA, Vulkan and CPU runs exercised speed control, invalid-value rejection and repeated requests; default audio matched main in those runs. Those runs included broader arena changes that were subsequently removed, so their memory measurements do not describe this final patch. The final narrowed patch passes git diff --check; it has not been rebuilt or rerun, and Windows commit reduction has not been measured.

Closes #1329.

@0xShug0
0xShug0 merged commit ebd8c15 into main Nov 18, 2026
7 checks passed
@0xShug0
0xShug0 deleted the fix/cosyvoice3-arena-and-speed branch November 18, 2026 16:33
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.

[BUG] v0.9.5 · CosyVoice3:单句合成峰值 commit ≈16.9 GB,没有任何可用的内存旋钮

1 participant