Skip to content

AceForge 0.6.22

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 21 Oct 06:18
· 1 commit to main since this release

Aligns on the CPU when the GPU cannot hold the track

The aligner's compute buffer grows with the audio -- about 22 MB per second --
and the model wants 1203 MB of weights on top. A four gigabyte card is out of
room at about the two-minute mark, so every longer track failed with
"failed to allocate CUDA0 buffer of size 3460990976".

Offloading the other models does not help, because there are none to offload.
The engine already releases the language model, the NAR half and the VAE when
the job finishes -- the log says "[YuE2] Unloaded" -- and an idle engine holds
46 MiB of a 4031 MiB card. The aligner has the whole card to itself and still
does not fit: 1203 for the weights plus 3300 for the buffer, on 4031.

The engine's scheduler has CPU offload switched on, but that only catches
operations the GPU cannot do; the matmuls are ones it can, so they stay on the
card. This build of ggml has no way to move a selected operation to the CPU.

So the aligner gets its own engine, on the CPU. The backend is chosen when the
process starts, so it takes a second instance, on a port bound rather than
guessed, with all the cores rather than the half the engine defaults to.
Measured from the app's own code: 77 seconds for a minute of audio, which is
about three minutes for a song of the length that was failing.

The GPU is still tried first, because it answers in a second and a half. The
queue row says what is happening while it runs, so the wait is explained rather
than mysterious.

The score-derived timings are the last resort, and are no longer
section-granular: the lines of a section are spread across that section's bars
proportionally instead of all carrying the section's opening time.

269 tests.