soundeffect-v2
Operate MOSS-SoundEffect v2 DiT/DAC/Qwen3 inference, demo, fine-tuning metadata, and checkpoint export workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- soundeffect-v2
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate MOSS-SoundEffect v2 DiT/DAC/Qwen3 inference, demo, fine-tuning metadata, and checkpoint export workflows.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md11.3 KB
- 参考文档references/pipeline-and-finetune.md9.5 KB
- 参考文档references/troubleshooting.md9.7 KB
- 脚本scripts/validate_soundeffect_metadata.py8.2 KB
03 SKILL.md 正文
soundeffect-v2
Use this sub-skill for MOSS-SoundEffect v2.0 workflows: the separate text-to-audio diffusion package built from a DiT backbone, Flow Matching scheduler behavior, DAC VAE audio representation, and Qwen3 text encoder. It covers isolated environment setup, pipeline inference, audio saving, Gradio launch parameters, fine-tuning metadata validation, and export of fine-tuned DiT checkpoints into a loadable Hugging Face-style directory.
Best-fit requests
- Generate environmental or sound-effect audio with
MossSoundEffectPipeline. - Choose
seconds, diffusion steps, CFG scale, sigma shift, dtype, seed, device, and output path for SoundEffect v2 inference. - Recover from TorchDynamo/Triton compile failures or first-call compilation issues in the v2 pipeline.
- Launch or adapt the SoundEffect v2 Gradio demo using
SOUNDEFFECT_MODEL_DIRand device settings. - Prepare JSONL metadata for SoundEffect v2 DiT fine-tuning with required
audioandpromptfields. - Validate SoundEffect v2 metadata without importing torch or loading a model.
- Fine-tune the v2 DiT from an existing Hugging Face model directory or repo id, then export the resulting checkpoint for pipeline loading.
Route elsewhere
- MOSS-SoundEffect v1 or any Delay-family autoregressive sound-effect workflow:
../hf-family-workflows/SKILL.md. - Delay-family fine-tuning data preparation,
audio_codes, or generic MOSS-TTS training data:../finetuning-data-prep/SKILL.md. - Generic MOSS-TTS voice cloning, continuation, multilingual TTS, voice generation, or dialogue TTS:
../hf-family-workflows/SKILL.md.
Operating map
- Start with
references/pipeline-and-finetune.mdfor setup, inference, Gradio, fine-tuning, and export workflows. - Use
references/api-reference.mdfor exact package pins, pipeline signatures, CLI-style variables, metadata schema, training/export arguments, and outputs. - Use
references/troubleshooting.mdwhen dependency conflicts, model cache/downloads, compile errors, CUDA memory, long runs, metadata errors, export failures, or Gradio launch issues appear. - Use
scripts/validate_soundeffect_metadata.pybefore launching training. It is stdlib-only and checks JSONL structure plus optional audio-path existence.
Quick safeguards
- Create a clean Python 3.12+ environment for this package. Do not reuse the top-level MOSS-TTS environment.
- Install PyTorch CUDA 12.8 wheels through the PyTorch index when using the
torch-cu128extra. - For inference, prefer CUDA with
torch.bfloat16; CPU fallback exists but can be too slow for practical generation. - Set
TORCHDYNAMO_DISABLE=1before Python if TorchDynamo, Triton, or CUDA Graph compilation fails. - Keep
secondswithin the model limit, normally 30 seconds, and keepnum_inference_stepsbounded for smoke tests. - Validate fine-tuning metadata before launching
accelerate; each JSONL row must include non-emptyaudioandpromptstrings. - During export, provide a valid
SOURCE_HF_DIRcontaining the frozenvae,text_encoder,tokenizer, andschedulersubdirectories.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).