Skip to content

Fix MuLaCover ChordNet allocation for long references - #1344

Merged
0xShug0 merged 2 commits into
mainfrom
fix/mulacover-chordnet-allocation
Nov 19, 2026
Merged

0xShug0 merged 2 commits into
mainfrom
fix/mulacover-chordnet-allocation

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #1336.

MuLaCover could abort with out of free blocks while allocating ChordNet for a long reference. Keep the CNN over the complete reference, preserving instance-normalization statistics, and execute the recurrent layers in cached blocks of up to 128 frames with hidden/cell state carried in both directions. This bounds recurrent graph size without truncating song context or changing GGML allocator limits.

Also enable the existing SELU module on Vulkan through an equivalent ELU lowering. Other backends retain their existing graph. Update the model documentation and add allocation/lifecycle and independent SELU coverage.

Validation

  • Reproduced the allocator abort on main with a 60-second reference. The fix completes reference lengths through 300 seconds.
  • CPU/CUDA decoded chords match Python on the checked inputs. CUDA 30-second covers using the compatible reference are byte-identical to main.
  • Long→short→long reuse and unload/reload preserve outputs without accumulating model buffers.
  • Vulkan completes a cover using a 300-second reference. ControlFoley also completes with the shared SELU lowering; independent SELU checks pass a 1e-6 absolute-error gate on CPU, CUDA and Vulkan. Vulkan ChordNet retains small boundary-time differences versus Python; whole-model Python waveform parity is not claimed.

Matched warmed CUDA comparison on RTX 5090, using a 15-second reference and generating a 30-second cover:

Metric Main Fixed
RTF 0.2027 0.1998
Peak VRAM 9,922 MiB 9,928 MiB

No meaningful performance or peak-VRAM regression observed. Full-reference CNN buffers still scale with duration.

@0xShug0
0xShug0 merged commit a982252 into main Nov 19, 2026
7 checks passed
@0xShug0
0xShug0 deleted the fix/mulacover-chordnet-allocation branch November 19, 2026 18:32
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.

MuLaCover: ggml-alloc 'out of free blocks' assert in ChordNet graph allocation (v0.9.5, CUDA)

1 participant