Skip to content

Add Real-time RE-USE with incremental audio streaming - #1192

Merged
0xShug0 merged 2 commits into
mainfrom
feature/realtime-reuse
Nov 3, 2026
Merged

0xShug0 merged 2 commits into
mainfrom
feature/realtime-reuse

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Adds NVIDIA Real-time RE-USE as the realtime_reuse family for causal speech enhancement, with incremental audio input/output and all 30 exit-layer/lookahead configurations. Packages live alongside the existing models in RE-USE-GGUF.

Streaming preserves convolution and Mamba state, caches session-owned graphs, and grows processing batches from 1 to 2, 4, then 8 frames after first audio. Includes conversion tooling, the model contract, documentation, and reference/streaming tests. Uses existing framework and GGML operations; no shared framework or kernel changes.

Streaming performance

F32 package, exit layer 8, zero lookahead, eight threads, 14.07-second mono 24 kHz input. One warmup followed by two measured requests. TTFA is measured at the HTTP client with prerecorded input; live capture adds input-buffering latency. Peak VRAM is sampled per process.

Backend Warm TTFA Warm RTF Peak GPU memory
CUDA, RTX 5090 7.46 ms 0.02703 1,033 MiB VRAM
Vulkan, RTX 5090 14.94 ms 0.04918 511 MiB VRAM
HIP, Radeon 8060S 24.25 ms 0.16521 696 MiB shared GPU-resident memory
Metal, Apple M4 Pro 21.81 ms 0.10387 435 MiB Metal allocated memory

HIP uses ROCm 7.2.1 with the default kernel implementation (gfx1151_v1 disabled). On this integrated GPU, the sampled process peak comprises approximately 695 MiB resident GTT and 0.3 MiB resident VRAM, rather than dedicated VRAM. The repeated warm outputs were identical, with finite samples and the expected sample count.

Validation

  • Official-reference waveform comparison exceeds 0.99999 cosine similarity.
  • Final Vulkan output preserves sample count and finite samples; long–short–long requests return identical output for the repeated input.
  • The Vulkan compact-scan/frequency-convolution path has waveform cosine 0.999999986 against the preceding implementation.

The checkpoint uses NVIDIA's noncommercial license, documented in the model-license table.

@0xShug0
0xShug0 force-pushed the feature/realtime-reuse branch from b20006a to 9078b46 Compare November 3, 2026 18:36
@0xShug0
0xShug0 merged commit c1bb733 into main Nov 3, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/realtime-reuse branch November 3, 2026 19:08
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.

1 participant