Skip to content

Add MOSS-SoundEffect v2 sound-effect generation - #1232

Merged
0xShug0 merged 3 commits into
mainfrom
feature/moss-soundeffect-v2
Nov 8, 2026
Merged

0xShug0 merged 3 commits into
mainfrom
feature/moss-soundeffect-v2

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Adds MOSS-SoundEffect v2 text-to-sound-effect generation from English and Chinese prompts, producing offline 48 kHz mono audio through the existing CLI/server task routes.

  • Implements the Qwen3 text encoder, audio DiT, and continuous DAC decoder under src/models/moss_soundeffect, using framework modules and weight-loading helpers.
  • Keeps graphs and conditioning caches session-owned. Uses packed QKV, standard flash attention, backend-resident CFG/Euler updates, and bounded DAC decoding over the requested output span.
  • Uses the existing CUDA FP16 FFN projection path for native BF16 packages; modulation and residual arithmetic stay F32.
  • Adds a spec-v1 contract, BF16/Q8 GGUF conversion, usage documentation, model-table entries, and model-specific validation tooling.

The only shared framework change corrects tanh-GELU's output-type metadata to match its actual tensor type. F32 behavior and kernel math are unchanged. There are no GGML or server changes.

CUDA measurements

RTX 5090, warmed 10-second requests, 100 Euler steps, CFG 4, sigma shift 5, and the trained 30-second denoising canvas. audio.cpp uses the BF16 package with its FP16 CUDA FFN path; the upstream Python reference uses compiled BF16 execution with SDPA.

Prompt Python RTF audio.cpp RTF
Rain, English 0.6519 0.6673
Birds, Chinese 0.6597 0.6715

Observed process peak VRAM: 15,578 MiB Python → 8,267 MiB audio.cpp, approximately 47% less, with similar throughput.

Validation

  • Debug build and model-spec validation passed.
  • Conditioning-cache reuse, CFG switching (4 → 1 → 4), backend sampler updates against host calculations, and tiled-decoder crop consistency passed.
  • Fresh Q8 end-to-end generation on both additional backends:
Backend Steps Output duration Generation time
Vulkan, RTX 5090 100 10 s 10.07 s
CPU, Ryzen 9 7900X, 8 threads 20 10 s 205.35 s

Both outputs were finite and non-silent; independent CED classification identified bird calls and chirps. These backend checks use different step counts and are not a matched performance comparison.

GGUF publication

The spec targets audio-cpp/audio.cpp-gguf/MOSS-SoundEffect-v2-GGUF. BF16 and Q8 packages have been converted and inspected, including their embedded supported spec. The files still need to be uploaded before merge so the advertised downloads work.

@0xShug0
0xShug0 merged commit 3bbbd1d into main Nov 8, 2026
7 checks passed
@0xShug0
0xShug0 deleted the feature/moss-soundeffect-v2 branch November 8, 2026 00:56
@0xShug0 0xShug0 added the new model Request for new model support label Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new model Request for new model support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant