Repository navigation
Conversation
cynodesmus
added a commit
to cynodesmus/yue2.cpp
that referenced
this pull request
Nov 19, 2026
[PR ServeurpersoCom#26] Add --nar-chunk to cap the acoustic chunk below what the context holds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The acoustic stage cuts a song into chunks of
(context - prefix - 3) / 2frames, so the only way to make a chunksmaller today is
--max-seq, which also shrinks the room the semantic stage has for the song. Without flashattention that is the lever people reach for, because a chunk's attention scores grow with the square of its length,
and it costs them the end of long songs.
--nar-chunk <frames>(yue-server and yue-synth) caps the chunk length on its own; 0, the default, keeps thecurrent rule. The semantic stage keeps the whole context.
Measured on an RTX 4090, Q8_0,
--no-fa, the same request and seeds (a 240 s song, prompt 2549 tokens):--max-seq 9216)--nar-chunk 3000, full context)With flash attention on the same song takes 4.2 GB in one chunk and 3.5 GB in two. The level around the joins
matches the one-chunk render within 1–2 dB, with no gap.
README and ARCHITECTURE list the flag and say when it helps.