Repository navigation
Reduce oversized GGML metadata arena reservations (1) - #1346
Merged
Merged
Conversation
Owner
Author
|
Peak host commit on Windows:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Oversized GGML metadata contexts reserve hundreds of MiB or several GiB despite using only a small fraction of that space. Reduce these reservations for MOSS VoiceGenerator/TTSD/TTS v1.5, HeartMuLa/HeartCodec, Supertonic, RVC, OpenCLIP, Wav2Vec2 and HiFiGAN. Weight descriptor contexts use 8 MiB; graph and input contexts use 16–32 MiB as appropriate. HeartMuLa's spec defaults match the new weight-context defaults.
These changes affect host metadata reservations, not tensor payloads, graph mathematics, precision, sampling or graph node limits. Existing framework reservation logs report actual metadata use.
Validation
CUDA longform requests completed with the reduced arenas:
Direct component stress also completed for 300 s Wav2Vec2 input with both final-layer and all-layer outputs, HeartCodec conditioning/flow, 300 s MOSS decoding, and OpenCLIP with 77 text tokens and 240 image frames.
Every exercised graph fit its metadata arena. Representative maximum use: RVC synthesizer 21.36/32 MiB, Wav2Vec2 5.59/32 MiB, HiFiGAN 5.47/32 MiB, and OpenCLIP image encoder 10.53/32 MiB.
Capacity limits remain distinct from metadata: unchunked 300 s HiFiGAN and MOSS encoding constructed their graphs but required approximately 50 GiB and 46 GiB of GPU activation memory. Larger HeartCodec scalar inputs, including 59.52 s codec chunks, reached an unchanged CUDA copy-grid assertion after fitting their metadata arenas. These are not complete inference passes; normal HeartMuLa codec chunking completed the 300 s song.