Files
diodiogod-TTS-Audio-Suite/docs/MOSS_TRAINING_GUIDE.md
diodiogod 08e8e8c884 Version 5.8.1
Add MOSS community full-checkpoint support

Implementation details:
- Add the LAION MOSS-TTS v1.5 Voice Acting 8B community model to the engine dropdown and downloader
- Discover compatible local MOSS full checkpoints and resolve architecture from config.json
- Enable the LAION Delay checkpoint in the existing LoRA training pipeline
- Reject unsupported local MOSS layouts instead of assuming Local Transformer
- Address issue #340
2026-08-11 23:42:44 -03:00

259 lines
6.4 KiB
Markdown

# MOSS Training Guide
This guide explains the **practical dataset meaning** of the current MOSS training nodes in TTS Audio Suite.
Use this if `🧾 MOSS Dataset Rows` feels unclear.
## Current Training Scope
Current first training slice supports:
- **MOSS-TTS 8B v1.0 and v1.5 (Delay)**
- **LAION MOSS-TTS v1.5 Voice Acting 8B community full checkpoint (Delay, compatibility path; training results not yet validated by the suite maintainers)**
- **LoRA adapter training**
The model selected on the connected MOSS engine is used for dataset preparation and training. Prepare the dataset again after switching between v1.0 and v1.5.
The LAION Voice Acting checkpoint uses the same Delay architecture and can use this LoRA training path, but the suite maintainers have not completed an inference or training run with its full weights. Treat it as community-tested support and report results or incompatibilities.
It does **not** currently support:
- Local 1.7B training
- TTSD training
- full-parameter training from the node path
## Normal Training Flow
Current ComfyUI flow:
1. `🎞️ Training Clip Staging`
2. `🧾 MOSS Dataset Rows`
3. `📦 MOSS Dataset Prep`
4. `🎛️ MOSS Training Config`
5. `🎓 Model Training`
If clips and transcripts are already prepared on disk, you can skip the first two
nodes. Set `dataset_source` on `📦 MOSS Dataset Prep` to a folder containing
same-name audio and text pairs:
```text
my_dataset/
├── clip001.wav
├── clip001.txt
├── clip002.flac
└── clip002.txt
```
Each `.txt` file must contain the transcript spoken in its matching audio file.
Folder scanning supports WAV, FLAC, MP3, OGG, and M4A. Subfolders are ignored
unless `recursive_folder_scan` is enabled. Existing JSONL manifest paths continue
to work unchanged.
## The Important Fields
### `text_lines`
This is the easiest one:
- one line per staged clip
- each line is the **transcript/text of that clip**
Example:
- `clip001` audio says: `Hello there.`
- `clip002` audio says: `How are you?`
Then:
```text
Hello there.
How are you?
```
That is the normal default dataset shape:
- `audio + transcript`
For many voice LoRAs, this is enough.
### `reference_clip_lines`
This is **advanced**. Most users should leave it blank at first.
It means:
- which other staged clip should be used as the **reference audio** for that row
That teaches the model a different pattern:
- `text` says **what to say**
- `reference audio` says **whose voice/style to follow**
- `target audio` is the **correct output**
Example:
- `clip001` = Bob saying: `My name is Bob.`
- `clip002` = Bob saying: `Welcome to the show.`
Row 2 can be:
- target audio = `clip002`
- text = `Welcome to the show.`
- reference = `clip001`
That teaches:
- “use `clip001` as the reference voice, then produce the target line from `clip002`”
## When To Ignore `reference_clip_lines`
Ignore it for:
- first MOSS LoRA tests
- single-speaker voice LoRAs
- fixed-voice adaptation
- plain language/domain adaptation
That means:
- just use `audio + transcript`
- maybe also use `instruction`
This is the best default.
## When To Use `reference_clip_lines`
Use it only if you deliberately want **reference-conditioned training**.
That means teaching the model:
- how to use a separate reference clip for voice cloning
- how to follow reference style/prosody
- how to pick speaker identity from reference audio
This makes more sense for:
- reference-conditioned voice cloning behavior
- multi-speaker conditioning datasets
- style-following datasets
## How A Model Learns Voice Cloning
Think of it this way:
- if a TTS model only sees `audio + transcript`, it learns how to do TTS for the voices/styles present in the data
- if a TTS model also sees `ref_audio`, it can learn a different pattern:
- text says **what to say**
- reference audio says **whose voice/style to imitate**
- target audio is the correct output
That is how a model can learn **reference-conditioned voice cloning**, not just plain TTS.
So if your goal is to fine-tune that specific ability:
- “give the model a reference clip and make it speak in that voice/style”
then `ref_audio` is when this field makes sense.
If your goal is only:
- “make the model speak in this one fixed voice better”
then `ref_audio` usually does not matter much, and plain `audio + transcript` is the better starting point.
## `instruction` vs `ref_audio`
These are different tools.
### Use `instruction` for explicit text labels
Examples:
- `speaking angrily`
- `whispering`
- `calm narration`
This is usually clearer when you want to label the desired behavior directly.
### Use `quality` for recording/presentation quality
Examples:
- `telephone call quality`
- `studio recording`
- `noisy room recording`
This is better when the label is about how the audio sounds as a recording or presentation format, not about acting/performance.
### Use `ref_audio` for example audio conditioning
This is for:
- “sound like this other clip”
- “follow this speaker/style from audio”
So for many datasets:
- `instruction` is the simpler control
- `ref_audio` is the more advanced control
## Practical Recommendations
### Best first test
Use:
- staged clips
- correct transcripts
- no reference clips
- optional `instruction` only if clearly useful
In other words:
- `text_lines`: yes
- `reference_clip_lines`: leave blank
### If training a single person's voice
Start with:
- `audio + transcript`
Do **not** add `ref_audio` unless you specifically want to teach reference-conditioned cloning behavior.
### If training language adaptation like the Norwegian LoRA
Start with:
- `audio + transcript`
That is the normal base case.
You can still use reference audio later at inference time, because MOSS supports optional reference-based cloning, but the training dataset does not need to be built around `ref_audio`.
## Validation In Plain Terms
`📦 MOSS Dataset Prep` also mentions validation.
That means:
- a small holdout part of the dataset used only to check training progress
- not used to update weights
If you do not have a separate validation manifest:
- leave `validation_source` blank
- let the node auto-split the main dataset
## Short Version
If you want the least confusing starting point:
- use `🎞️ Training Clip Staging`
- use `🧾 MOSS Dataset Rows`
- fill only `text_lines`
- leave `reference_clip_lines` blank
- train the LoRA
That is the correct first path for most users.