You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
YuE2 CPU: NAR crashes with GGML_ASSERT(ctx->mem_buffer != NULL) on Ryzen (nightly 61e06 too; arena/tiling not applied on CPU) #656
Tested on Windows. Set those context_mb or arean_mb to 256 should work. 32 is actually sufficent for the 6s case.
Six 32 MiB options
Peak virtual address use
Set
12.943 GiB
Omitted
34.818 GiB
Also tested in a Linux container with ulimit -v 16777216 (16 GiB virtual address space). Without those options, the run failed. Different error messages, but I think they’re related to the same issue.
ggml_aligned_malloc: insufficient memory (attempted to allocate 5197.34 MB)
ggml_backend_cpu_buffer_type_alloc_buffer: failed to allocate buffer of size 5449802240
ggml_gallocr_reserve_n_impl: failed to allocate CPU buffer of size 5449802240
audiocpp_cli failed: Oobleck audio VAE decode backend buffer allocation failed
With those options set to 32, it generated the full song using the cmd provided (duration_sec is the wrong option, but I used it as-is). wrong-duration-16g.log wrong-duration-16g.wav
For now, I'd prefer not to change the code. Later, during the housekeeping pass, we can just lower the defaults for these control options. @engival I'm going to close the PRs, but I'll add a label to #667 so I can revisit it when I have some cycles.
Activity
0xShug0 commentedon Sep 23, 2026
@pluginfixs-a11y Please set these options to 256 (or maybe as low as 32) as a temp workaround and let me know if this works.
Update: YuE2 doesn't have
duration_sec. To control duration you need to usecore: opt-in sizing of no_alloc contexts from what the runtime knows
core: opt-in sizing of no_alloc contexts from what the runtime knows
0xShug0 commentedon Sep 24, 2026
@pluginfixs-a11y @engival
Tested on Windows. Set those context_mb or arean_mb to 256 should work. 32 is actually sufficent for the 6s case.
Also tested in a Linux container with
ulimit -v 16777216(16 GiB virtual address space). Without those options, the run failed. Different error messages, but I think they’re related to the same issue.With those options set to 32, it generated the full song using the cmd provided (
duration_secis the wrong option, but I used it as-is).wrong-duration-16g.log
wrong-duration-16g.wav
For now, I'd prefer not to change the code. Later, during the housekeeping pass, we can just lower the defaults for these control options. @engival I'm going to close the PRs, but I'll add a label to #667 so I can revisit it when I have some cycles.
docs(reports): add YuE2 longform host commit exhaustion report (#816)