Skip to content

Releases

AceForge 0.6.23

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 21 Oct 07:00

The alignment model is no longer needed, and can be deleted

Every lyric feature stays: the lyrics in the player, the follow toggle, manual
scrolling, and the Whisper re-timing.

What goes is the forced aligner -- the MMS_FA acoustic model behind
POST /yue2/align, the second CPU engine that was started to run it, and the
model check. Nothing in the app asks for mms-fa-f32.gguf any more, so you can
delete it and have 1.26 GB back.

It was never going to work here, and it took the renders down with it.

The aligner wanted 1203 MB of weights and a compute buffer that grows about
22 MB per second of audio, so a four gigabyte card was out of room at the
two-minute mark and every longer track failed to allocate. Offloading the other
models could not help, because there were none to offload: the engine releases
the language model, the NAR half and the VAE when the job finishes, and an idle
engine holds 46 MiB of a 4031 MiB card.

Then a render failed with the same kind of out-of-memory, wanting 1179 MB for
the semantic stage's KV cache with about 2300 MB free. Subtracting the aligner's
own 1203 MB leaves 1133 MB, and the request wanted 1180. It failed by 47
megabytes. Whatever the engine does with a failed align's buffers, the aligner
and the renderer share a process and a CUDA context, and that is the most
likely reason a render that used to fit stopped fitting.

The timings now come from the composed score, which is always there, costs
nothing, and is exact to the bar: two-four time at 64bpm is 1.875s a bar, and
the verse starts after nine bars of intro. The lines of a section are spread
across that section's bars in proportion, so they no longer all carry the
section's opening time.

259 tests.

AceForge 0.6.22

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 21 Oct 06:18

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.

AceForge 0.6.21

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 21 Oct 05:13

Fixes a 4-minute song getting a sidecar two minutes longer than itself

Two bugs behind one symptom.

The duration reader divided the data chunk by the bytes per SAMPLE and ignored
the channel count. That is right for mono and exactly wrong for stereo, which
has two samples per frame. Every stereo track came out twice as long as it is:
a 253 second render reported 506, and the evenly-spread sidecar then spread 56
lines across 506 seconds of a 253 second song.

The score was then read from the wrong place. The staged render composes a
score, hands it to the audio job, and read the score back out of the audio
job's status. When the engine did not volunteer it a second time, the sidecar
fell all the way through to the evenly-spread fallback -- skipping the
score-derived timings, which are the second-best answer.

What the timings are now, in order of preference:

  1. Measured by the forced aligner, listening to the finished track. Needs about
    1.2 GB of card of its own, so it fits tracks of roughly two minutes.
  2. Derived from the composed score, which is exact to the bar. The real score
    is 2/4 at 64bpm, so a bar is 1.875s, and the verse starts after nine bars of
    intro: 16.875s. Pinned in a test against a real SheetSage score.
  3. Evenly spread, only when the score is unusable.

The score-derived timings are now checked against a real SheetSage score, with
chord symbols, a rest-only voice alternating with a sounding one, and lowercase
section names -- none of which the hand-written fixtures had.

267 tests.

AceForge 0.6.20

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 21 Oct 03:25

YuE2 lyric timings are now measured from the audio

YuE2's DiT has no lyric-alignment head, so there is no cross-attention to read a
timestamp out of the way ACE-Step does. What YuE2 has instead is an MMS_FA
acoustic model with a CTC head, exposed by the engine as POST /yue2/align: hand
it the finished audio and the exact lyrics string the render was given, and it
returns one span per sung word.

That is a different kind of answer from the score-derived timings, which read
where the notes sit in the lead sheet. The score estimates when a word starts;
the aligner listens to the recording.

Requires mms-fa-f32.gguf (1.26 GB) in the YuE2 models folder:

https://huggingface.co/scragnog/YuE2-GGUF/resolve/main/mms-fa/mms-fa-f32.gguf

Place it flat in the models' yue2/ directory. The panel says whether it is
found.

The aligner is an upgrade, not a replacement. The score timings and the
evenly-spread fallback both remain, and are what a machine without the model is
left with.

Measured: the aligner needs 1248 MiB of card while it runs. It is called after
a track is finished, which is when the engine has unloaded, so it never competes
with the language model for the same 4 GB.

Write the lyrics the way they are sung

With the aligner in play, the spelling matters. It matches the audio against
the text it was given, so "plaay" and "goo awaay" land on the right words where
"play" and "go away" do not. The panel now says so next to the lyrics box.

264 tests, including the engine's own offsets pinned in a test so the line
splitting cannot drift from its counting.

AceForge 0.6.19

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 20 Oct 19:11

Follows an engine switch

The running engine was remembered in a OnceLock, which takes a value exactly
once. The engine can be switched in the sidebar and started again in the same
session, so the second start was ignored and the app kept shaping multipart
requests for the engine that was no longer running.

For ACE-Step that is harmless -- it takes both request shapes. For HOT-Step it is
the same 400 the previous release fixed, returning after a restart. The bug was
in the fix for the bug.

255 tests.

AceForge 0.6.18

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 20 Oct 18:49

Fixes a 400 from HOT-Step when rendering with a source audio or a reference

The two engines disagree about the request shape, and the disagreement is fatal
rather than cosmetic:

acestep.cpp       request_parse_json_array -> an object OR an array
hot-step-server   request_parse_json      -> an object ONLY

The app sent an array to both. The bundled engine takes it; HOT-Step answers 400
"Multipart: invalid JSON in 'request' part". Only the multipart path was
affected, because the plain JSON branch of both engines uses the array parser --
which is why it looked like the engine was broken rather than the request.

Reproduced against the real HOT-Step binary with a real WAV and a real multipart
body:

ARRAY (old behaviour)  ->  400  "Multipart: invalid JSON in 'request' part"
OBJECT (fixed)         ->  200  {"id":"d30d7850a08cbdd7"}

One request now goes as an object, which both engines accept. A genuine batch
keeps the array, which only the engine that can parse one gets to have: HOT-Step's
multipart path takes a single request, so there the extra takes are dropped and
it says how many, rather than the whole render failing.

The server now remembers which engine it launched. The two share an HTTP surface
and nothing distinguished them at runtime, which is how one request shape had to
serve two contracts.

The error message was hiding all of this. The multipart path discarded the
response body, and ureq's Display for a status error is "status code 400" -- so
the engine's own explanation, which names the problem exactly, never reached
anyone. Both submit paths read it now.

254 tests.

AceForge 0.6.17

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 19 Oct 06:08

MP3 encoding no longer depends on the machine

The previous release shelled out to a system ffmpeg for MP3. That made the
feature depend on what happened to be installed, with the quietest possible
failure mode: the render still succeeded, the WAV was still correct, nothing
looked broken, and the files were just large.

The app already bundles its engine for exactly this reason. The encoder now
travels the same way -- 1.44 MiB added to an 83.8 MiB deb.

Why a separate executable rather than a crate: every pure-Rust MP3 encoder is
LGPL, and Rust links statically, so pulling one in would place LGPL code inside
this MIT binary and oblige the app to be relinkable. As a separate executable it
is mere aggregation -- replaceable, deletable, and this project stays MIT. Its
licence ships beside it as COPYING.LAME.txt and the README records why.

Built fully static, deliberately. The first build linked libtinfo (ncurses, for
lame's progress bar) and would have failed on any machine without it, which is
precisely the problem bundling exists to solve. scripts/build-lame.sh fails the
build if ldd reports anything but "not a dynamic executable".

Resolution order is bundled encoder, then a system ffmpeg for a broken or
half-extracted install, then WAV. The bundled one wins deliberately, so a machine
with ffmpeg and one without behave the same. The UI is told at startup whether
an encoder exists and says so on the format picker, instead of leaving it to be
inferred from file sizes.

Verified end to end against the installed binary: 30s of 48 kHz stereo PCM, 5.52
MiB, encodes to 0.46 MiB at 128k with the duration intact.

251 tests.

AceForge 0.6.16

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 19 Oct 05:40

YuE2 output format: mp3 by default

YuE2 had no way to choose an output format, and every render landed as 48 kHz
stereo PCM -- 25.2 MiB for a 137 second track, measured on a real one.

The reason was structural. The output_format field lives in MM3's request
struct, which is the ACE-Step path; YuE2's request has never had one, and the
engine hardcodes result_mime = "audio/wav". ACE-Step could ask its engine for
mp3, YuE2 could not.

The YuE2 form now has Format (mp3 / wav) and Bitrate (128 / 192 / 320), and mp3
is the default, matching ACE-Step. At 128k a render is roughly an eighth of the
size it was.

The engine cannot be asked, so the app does the encode with ffmpeg after the
render. If ffmpeg is missing or the encode fails, the WAV is kept and the reason
is logged -- that is deliberately not a failure. The render is already on disk
and correct, and discarding it over a few megabytes would be a bad trade. The
WAV is deleted only once the mp3 is confirmed non-empty on disk, so a library
row can never point at nothing.

Duration is read from the WAV bytes before any re-encode and never re-derived,
so lyric sidecars do not depend on the encode having worked.

248 tests, including a real ffmpeg encode that checks the size reduction.

AceForge 0.6.15

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 19 Oct 05:01

Fixes the resource meters reading undefined, adds GPU utilisation

The meters showed "undefined MiB / undefin...". The backend serialises
camelCase and the hand-written TypeScript interface read snake_case, so every
figure came back undefined. TypeScript was happy: both sides were internally
consistent and nothing compared them.

The backend now asserts its own serialised field names. That is the only place
this class of bug can be caught.

RAM was also wrong by a factor of 1024, hidden behind the undefined VRAM figure.
/proc/meminfo reports kibibytes and the fields say MiB, so it read "5198 GB of
23895 GB".

New: GPU utilisation, which is a different measurement from VRAM and worth
having beside it. A render can hold two gigabytes and be stalled waiting on the
CPU -- high memory, low utilisation. Together they say whether the GPU is the
bottleneck. A driver reporting "N/A" costs that one meter rather than the card.

244 tests.

AceForge 0.6.14

Choose a tag to compare

@DjagbleyEmmanuel DjagbleyEmmanuel released this 19 Oct 04:43

Live resource meters, and logs that keep up

Live VRAM and RAM in the sidebar

VRAM is the number that decides a render on a card this size, and it moves while
a render is running. "1.9 of 4.0 GB" tells you whether the next stage will run at
all, where a progress bar only says how long the current one has been going.

Per-process VRAM is listed for anything holding more than 16 MiB, because "the
engine is holding 2.4 GB" and "something else is holding 2.4 GB" are very
different things to be told while a render waits behind it.

Percentages truncate rather than round, so a bar never claims more than the card
can back. A machine with no NVIDIA card reports no GPU instead of a zero that
would read as idle. Updated every two seconds.

Logs follow the tail again

The log was not broken. Following was a one-way door: scrolling up paused it, and
nothing resumed it. One stray scroll during a render stopped the log for good, and
the only way back was the reload button -- which is why it looked like the log
only updated when reloaded. Scrolling back to the bottom resumes, as it does in a
terminal.

Also:

  • Expanding a collapsed log refreshes it. Polling is suspended while collapsed,
    so expanding used to open onto whatever was last on screen.
  • The viewer's cursor now lands on a line boundary instead of wherever the file
    ends. The engine writes in arbitrary chunks, so a poll routinely lands
    mid-line, and the remainder would arrive as a second headless entry -- worst
    exactly where you go looking, in long paths and progress bars. The stall
    watchdog still reads the raw length; only the viewer moved.
  • The log box is bounded to viewport height rather than a fixed 24rem, and its
    chrome is tighter, so it fits a short window instead of demanding a taller one.
    Lines already wrap with a hanging indent, so resizing cannot overlap text.

243 tests.