Skip to content

Relax Niagara ASR and AuK backend restrictions - #817

Merged
0xShug0 merged 4 commits into
mainfrom
fix/niagara-asr-gpu-backends
Oct 6, 2026
Merged

0xShug0 merged 4 commits into
mainfrom
fix/niagara-asr-gpu-backends

Conversation

@0xShug0

@0xShug0 0xShug0 commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Remove Niagara ASR’s CPU-only session restriction.
  • Allow AuK on non-CPU backends; CPU remains explicitly unsupported.
  • Keep AuK VAE repeat-to-SCALE folding enabled only on CUDA/HIP, avoiding incompatible Vulkan broadcast shapes.
  • No shared framework or ggml changes.

Validation

  • Niagara 19M and 38M F32: CUDA and Vulkan transcripts matched CPU for short and longer inputs with session reuse.
  • AuK-Flash instruction TTS: Vulkan produced recognizable speech, checked with audio.cpp Parakeet ASR.
  • CPU AuK produced invalid audio during testing and remains rejected.
  • Debug CLI build passed. HIP was not tested.

Metal fixes and validation

  • Niagara: transpose before adding the singleton spatial dimension to avoid the faulty Metal copy path; equivalent math.
  • AuK: select the RNG policy from the actual backend and retain two-sided broadcast repeats on Metal so timestep embeddings remain correct.
  • Apple M4 Pro, Niagara 19M/38M F32: four LibriSpeech clips each. WER improved from 67.1%/68.6% to 2.9%/2.9%; transcripts match CPU, whose outputs remain unchanged.
  • AuK-Flash Q8 + Qwen Q8 + F32 VAE: two short TTS requests complete on Metal. Second-step velocity RMSE against official Python with the same dequantized weights and identical inputs drops from 1.06 to 0.0024.
  • Remaining quality limitation: extra opening words also occur in the official Python replay with these weights; not resolved by the Metal fixes.
  • Fixes remain model-scoped; no shared framework or ggml changes.

@0xShug0

0xShug0 commented Oct 6, 2026

Copy link
Copy Markdown
Owner Author

Added the resolved-backend CPU guard fix. AuK now rejects both explicit CPU and best when it selects CPU. CUDA, Vulkan, and best selecting CUDA pass; all six CUDA/Vulkan test WAVs remain byte-identical to the pre-fix outputs.

@0xShug0
0xShug0 merged commit 0b1e613 into main Oct 6, 2026
6 checks passed
@0xShug0
0xShug0 deleted the fix/niagara-asr-gpu-backends branch October 6, 2026 19:27
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