Skip to content

Reduce oversized GGML metadata arena reservations (1) - #1346

Merged
0xShug0 merged 2 commits into
mainfrom
fix/metadata-arena-overcommit
Nov 19, 2026
Merged

0xShug0 merged 2 commits into
mainfrom
fix/metadata-arena-overcommit

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 19, 2026

Copy link
Copy Markdown
Owner

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:

Model Generated output Request configuration
RVC 299.96 s 300 s input; 90 s chunks
Supertonic 142.35 s Long passage; 1,000-character chunks
MOSS VoiceGenerator 168.24 s Long passage; 1,000-character chunks
MOSS TTS v1.5 370.64 s Long passage; 1,000-character chunks
MOSS TTSD 658.08 s Long dialogue in its native single-take path
HeartMuLa 300.08 s Documented longform mode; default 29.76 s codec chunks

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.

@0xShug0 0xShug0 changed the title Reduce oversized GGML metadata arena reservations Reduce oversized GGML metadata arena reservations (1) Nov 19, 2026
@0xShug0

0xShug0 commented Nov 19, 2026

Copy link
Copy Markdown
Owner Author

Peak host commit on Windows:

Model Longform case / output Main Branch Saved
MOSS-TTS v1.5 638 words → 198s 46.87 25.20 21.67
MOSS-TTSD Two-speaker dialogue → 121s 40.95 19.26 21.68
MOSS-VoiceGen 638 words → 140s 31.64 12.94 18.70
HeartMuLa 180s music 19.89 16.89 3.00
ControlFoley 30s video-conditioned audio 52.18 44.25 7.93
RVC 300s conversion 16.31 9.31 7.00
Seed-VC 180s conversion 11.49 9.53 1.96
SoulX FlashHead 1,512 frames / 60.48s 14.48 12.51 1.97
MMS Forced Aligner 308s alignment 4.65 2.69 1.96
LiveAvatar 477 frames / 29.81s 100.92 92.36 8.56*
AudioSR 60s upsampling 18.51 18.02 0.49
Tone Color VC 180s conversion 8.55 7.57 0.98
Supertonic 17 chunks → 258.71s 14.61 3.11 11.50

@0xShug0
0xShug0 merged commit 9143b13 into main Nov 19, 2026
7 checks passed
@0xShug0
0xShug0 deleted the fix/metadata-arena-overcommit branch November 19, 2026 23:49
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.

1 participant