moss-tts
Route MOSS-TTS family speech, voice-agent, sound-effect, llama.cpp, streaming, and fine-tuning workflows.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- moss-tts
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Route MOSS-TTS family speech, voice-agent, sound-effect, llama.cpp, streaming, and fine-tuning workflows.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/installation-profiles.md5.5 KB
- 参考文档references/model-family-overview.md5.2 KB
- 参考文档references/repo-provenance.md3.1 KB
- 参考文档references/repo-routing-metadata.json493 B
- 参考文档references/troubleshooting.md5.6 KB
- 脚本scripts/check_moss_tts_environment.py6.4 KB
03 SKILL.md 正文
MOSS-TTS
Use this repo skill when a task names MOSS-TTS, OpenMOSS/MOSS-TTS, MOSS-TTS-v1.5, MOSS-TTSD, MOSS-VoiceGenerator, MOSS-TTS-Realtime, MOSS-TTS-Local-Transformer-v1.5, MOSS-SoundEffect, MossTTSDelay, MossTTSLocal, moss-tts-llama-cpp, GGUF/ONNX/TensorRT audio-tokenizer inference, or MOSS-TTS fine-tuning JSONL.
This skill teaches how to operate the model-family workflows. It does not execute long model downloads, generation, training, service startup, benchmark runs, TensorRT builds, or GPU performance checks by default.
First route by task
| User intent | Read next |
|---|---|
Hugging Face AutoProcessor/AutoModel generation, voice cloning, duration control, language tags, Pinyin/IPA, MOSS-TTSD, MOSS-VoiceGenerator, SoundEffect v1, or Gradio-style model-family demos |
sub-skills/hf-family-workflows/SKILL.md |
Torch-free, low-memory, GGUF, ONNX, TensorRT, moss-tts-llama-cpp, config YAML, bridge build, weight conversion, or batch eval |
sub-skills/llama-cpp-backend/SKILL.md |
| MOSS-TTS-Local-Transformer-v1.5 batch or realtime streaming decode, 48 kHz stereo, codec v2, browser streaming app, or token/frame estimates | sub-skills/local-v15-streaming/SKILL.md |
| MOSS-TTS-Realtime voice-agent sessions, streaming text deltas, FastAPI service, client payloads, KV-cache reuse, or prompt-audio context | sub-skills/realtime-voice-agent/SKILL.md |
Fine-tuning manifests, JSONL schema, audio_codes, preprocessing, accelerate, FSDP, ZeRO-3, sharded outputs, or post-training smoke plans |
sub-skills/finetuning-data-prep/SKILL.md |
MOSS-SoundEffect v2 DiT/DAC/Qwen3 pipeline, separate environment, MossSoundEffectPipeline, sound-effect fine-tuning metadata, or export to HF format |
sub-skills/soundeffect-v2/SKILL.md |
If the user only says “generate speech with MOSS-TTS,” start with hf-family-workflows. If the user says “no PyTorch,” “GGUF,” “low memory,” or “llama.cpp,” route to llama-cpp-backend. If the user says “Realtime” with voice-agent turns, route to realtime-voice-agent, not Local v1.5 streaming.
Read root references when needed
references/model-family-overview.md— model/checkpoint/architecture map, audio-format differences, and scenario boundaries.references/installation-profiles.md— dependency profiles, extras, Python/CUDA/FFmpeg notes, and the package exposure caveat.references/troubleshooting.md— cross-cutting install/import, backend, model download, audio, and packaging failures before routing deeper.references/repo-provenance.md— source snapshot and refresh baseline.references/repo-routing-metadata.json— structured router metadata used by managed repo-skill importers.scripts/check_moss_tts_environment.py— safe diagnostic helper for metadata/import/optional dependency checks; run it before blaming model code.
Installation triage
Use a clean Python 3.12 environment for most MOSS-TTS workflows. Choose the smallest profile that matches the task:
- HF generation / Gradio demos: install the top-level package with
torch-runtime; choose a PyTorch wheel index matching the host backend. FFmpeg is required bytorchcodecaudio I/O. - FlashAttention: add
flash-attnonly when CUDA, GPU architecture, dtype, and build memory support it. Otherwise use SDPA on CUDA or eager on CPU. - llama.cpp backend: use
llama-cppprofiles instead of the full torch runtime; add ONNX, TensorRT, or Torch heads only when that backend is selected. - Fine-tuning: add
finetune; addfinetune-deepspeedonly for ZeRO-3. - SoundEffect v2: use its separate package/environment; it pins a different NumPy/Transformers/Diffusers/Torch stack and should not be mixed with the root MOSS-TTS runtime.
Minimal diagnostic command from this root skill directory:
python scripts/check_moss_tts_environment.py --json
If metadata is installed but imports such as moss_tts_delay fail, read references/installation-profiles.md and sub-skills/hf-family-workflows/references/model-packaging.md; the current package metadata may require running from a source checkout, adding the checkout to PYTHONPATH, or using a packaging layout that explicitly exposes source packages.
Safety and verification boundaries
- Do not treat a CPU import as proof that CUDA generation, FlashAttention, TensorRT, or training works.
- Do not run long generation, model downloads, service listeners, training jobs, or benchmark batches unless the user explicitly authorizes time, network, disk, and hardware use.
- Prefer bundled validators and config inspectors for cheap checks before expensive runtime work.
- Keep model family and code family aligned: Delay, Local 1.0, Local v1.5, TTSD, VoiceGenerator, SoundEffect v1, Realtime, and SoundEffect v2 have different prompt/code/tokenizer assumptions.
- For any current repository checkout whose commit or public APIs differ from
references/repo-provenance.md, runrefresh-repo-skillbefore relying on this skill for exact flags or compatibility rules.
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).