Skip to content

higgs_audio_tts: reuse prefill storage on Vulkan - #705

Merged
0xShug0 merged 1 commit into
mainfrom
perf/higgs-vulkan-prefill-memory
Sep 26, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
perf/higgs-vulkan-prefill-memory

Conversation

@0xShug0

@0xShug0 0xShug0 commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

Extend the Higgs prefill graph allocator introduced by #704 to Vulkan. The change remains model-local and preserves the existing external-KV-cache and non-layerwise gates. CUDA and all other backends retain their current behavior.

Validation

Debug server, NVIDIA Vulkan, Q8_0 weights, fixed seeds, reference-conditioned cold/warm/cache-resize sequence:

Request state Existing peak VRAM With graph allocation Existing wall New wall
Cold 10,774 MiB 5,954 MiB 8,404 ms 8,460 ms
Warm repeat 6,261 MiB 5,916 MiB 1,234 ms 1,208 ms
Smaller cache 10,479 MiB 5,722 MiB 756 ms 592 ms
Original after resize 10,721 MiB 5,892 MiB 1,481 ms 1,190 ms

All four corresponding WAV pairs were byte-identical. Prefill graph construction fell from roughly 11-101 ms to 1-2 ms. AMD Vulkan was not tested.

@0xShug0

0xShug0 commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

@mirek190 Also works for Vulkan!

@0xShug0
0xShug0 merged commit ab86207 into main Sep 26, 2026
6 checks passed
@mirek190

Copy link
Copy Markdown
Contributor

@mirek190 Also works for Vulkan!

GOOD :)

@mirek190

Copy link
Copy Markdown
Contributor

I wonder if other TTS models do not have that problem as well ....

@0xShug0
0xShug0 deleted the perf/higgs-vulkan-prefill-memory branch September 26, 2026 18:47
@0xShug0

0xShug0 commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

@mirek190 Definitely, especially for early-release models that don’t consider VRAM usage at all.
In fact, many general optimizations have not yet been backported to older models. I know how to make them better, but unless users request it, I've been too lazy to touch them.

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