Skip to content

🚨 Expose ACE-Step performance controls and cuda_perf preset - #1073

Merged
0xShug0 merged 6 commits into
mainfrom
perf/ace-step-optimizations
Oct 24, 2026
Merged

0xShug0 merged 6 commits into
mainfrom
perf/ace-step-optimizations

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Expose ACE-Step DiT attention, planner optimization, and VAE tiling controls with ace_step.perf_mode=off|cuda_perf.
  • Use a preset table; explicit session settings override the preset, including false. Weight precision is unchanged.
  • Improve default planner KV reads and sampling, retain static DiT inputs, fix VAE Snake fusion, and use GEMM + col2im transposed convolution for all CUDA request lengths.
  • Match cached VAE graphs to the requested tile capacity so a short warmup cannot leave an oversized graph executing for every subsequent long-request tile.
  • Changes are model-local, plus the model spec and documentation. No shared framework or GGML changes.
Session control (ace_step. prefix) Default cuda_perf
dit_attention auto: flash on supported GPUs, eager on CPU Same
planner_prefix_bucketing true Same
planner_fused_projections false true
planner_f16_decode false true
planner_independent_cfg_prefill false true
vae_tile_frames Backend default 1024
vae_tile_overlap_frames Backend default 64

The three opt-in planner controls are CUDA-only. The preset's VAE tiling also applies on other backends. Default attention and prefix bucketing can change numerical results versus main; neither default nor preset output is claimed byte-identical to main.

Performance

Frozen main dd92e32b versus this branch, RTX 5090, Debug build, 12 CPU threads, Turbo Q8 with its native planner and VAE weights. No dtype overrides; mem_saver=false, eight DiT steps, diffusion guidance 1. Planner CFG off/on means LM guidance 1/2.

Each configuration runs sequentially in one fresh session: a 15-second warmup, input 1, input 1 with a different seed, input 2, and input 3. All four measured songs are 300 seconds. RTF uses total measured session.wall_ms divided by generated duration; it includes first-long-request graph preparation. Peak VRAM includes loading and warmup, sampled every 20 ms.

RTF (peak VRAM in MiB):

Backend Planner CFG Main default PR default PR cuda_perf
CUDA Off 0.05212 (12,450) 0.02854 (12,682) 0.02136 (16,628)
CUDA On 0.06030 (13,954) 0.02697 (12,950) 0.02322 (16,906)
Vulkan Off 0.06906 (11,960) 0.05579 (11,806) 0.04946 (18,017)
Vulkan On 0.07748 (12,540) 0.05882 (11,803) 0.05485 (18,014)

CUDA default reduces RTF by approximately 45-55% versus main. cuda_perf reduces it by approximately 59-62%, at the cost of 2,952-4,178 MiB more peak VRAM than main. Vulkan default reduces RTF by approximately 19-24%; the larger preset tiles use substantially more VRAM. Preset settings may change generated codes and waveforms; these are throughput comparisons, not strict output-parity claims.

Validation

  • All final matrix configurations completed with finite, non-silent, 48 kHz stereo WAVs of the requested duration. Different seeds produced different outputs.
  • The VAE graph-capacity fix was checked across both complete CUDA-default sequences. Waveform cosine versus the oversized-graph execution was 0.999992-0.999996. Vulkan-default and CUDA-preset control outputs remained byte-identical.
  • Focused planner checks covered all eight combinations of the three new planner controls, explicit preset overrides, and disabled prefix bucketing.
  • Base-model diffusion checks covered batched CFG, Heun sampling, and cover conditioning switches on CUDA and Vulkan. Static-input residency alone preserved tested outputs byte-for-byte.
  • CPU default completed one cold 180-second request with planner CFG on: RTF 1.663, peak host RAM 11,198 MiB. The output was finite, non-silent, stereo 48 kHz and exactly 180 seconds.
  • Model spec validation passed. No Metal validation or perceptual/lyric-accuracy equivalence is claimed.

@0xShug0

0xShug0 commented Oct 24, 2026

Copy link
Copy Markdown
Owner Author

@mirek190 deep cleanup of acestep.

@0xShug0 0xShug0 changed the title Expose ACE-Step performance controls and cuda_perf preset 🚨 Expose ACE-Step performance controls and cuda_perf preset Oct 24, 2026
@mirek190

Copy link
Copy Markdown
Contributor

@mirek190 deep cleanup of acestep.

look good ;)

Do not worry I am alive. and working on improvements

@0xShug0
0xShug0 merged commit eefd932 into main Oct 24, 2026
7 checks passed
@0xShug0
0xShug0 deleted the perf/ace-step-optimizations branch October 24, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants