Skip to content

Add MuLaCover cover-song generation - #1226

Merged
0xShug0 merged 1 commit into
mainfrom
feature/mulacover-port
Nov 6, 2026
Merged

0xShug0 merged 1 commit into
mainfrom
feature/mulacover-port

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Adds MuLaCover cover-song generation from reference audio or melody/chord MIDI, with new lyrics, style conditioning and optional drum MIDI. The complete F16/Q8 packages load through the framework spec-v1 GGUF contract.

The generator is model-local and uses framework decoder modules, weight helpers and bounded 16-bit KV caches. HeartCodec uses its existing shared runtime; there is no dependency on the HeartMuLa model implementation. Decode buckets and codebook heads share scratch buffers, and preprocessing/prefill/codec workspaces are released after use. The framework MIDI module gains an additive tick-based reader; existing MIDI writing and note cleanup are unchanged.

Includes conversion tools, usage documentation and upstream license notices. Upstream restricts both weights and generated outputs to noncommercial use.

Performance

Q8_0 on RTX 5090, eight threads, default sampling and codec settings. The same 514-character lyrics and melody/chord/drum MIDI were used on both backends. One short warmup followed by two requests with different seeds; all stopped naturally, producing 188–195 seconds of audio.

Backend Warmed RTF Real-time speed Peak process VRAM (MiB)
CUDA 0.1840 5.43× 10,556
Vulkan 0.2524 3.96× 9,924

RTF is total generation time divided by total generated audio across the two measured requests. Peak VRAM is the maximum process reading during those requests. CUDA uses BF16 activation rounding/KV storage; Vulkan uses F16.

Validation

  • Debug build and framework MIDI reader/writer tests pass. MuLaCover's melody, drum and chord conditioning tensors exactly match the existing reference fixture.
  • Teacher-forced final waveform cosine is 0.9999634 against Python. This retains documented numerical drift and falls below the original 0.99999 gate; it is not byte-exact parity.
  • Normal Q8 generation passes on CUDA and Vulkan; native F16 CUDA and CPU generation are also verified.
  • Repeated requests and restoration after reference-length/CFG changes produce byte-identical results for the original request, with stable peak VRAM.
  • Refreshed GGUFs retain all 2,602 tensor payloads and embedded assets unchanged, with the GGUF-only spec-v1 contract embedded.

@0xShug0
0xShug0 merged commit 04827bb into main Nov 6, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/mulacover-port branch November 6, 2026 21:02
@0xShug0 0xShug0 added the new model Request for new model support label Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new model Request for new model support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant