Repository navigation
Add MOSS-SoundEffect v2 sound-effect generation - #1232
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
src/models/moss_soundeffect, using framework modules and weight-loading helpers.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.
Observed process peak VRAM: 15,578 MiB Python → 8,267 MiB audio.cpp, approximately 47% less, with similar throughput.
Validation
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.