Skip to content
m4bwav edited this page Nov 28, 2026 · 1 revision

tw.py check, run and rerun run the same gates. A failure makes ok false and exits 2; a warning is printed and does not stop anything.

Failures

  • base.name, base.path, base.licence or base.sha256 is empty.
  • The licence of the base or dataset is non-commercial (it matches nc, non-commercial, cc-by-nc, research-only or personal-use) and use is sellable or public-release.
  • use is sellable and the base is Krea 2.
  • dataset.items is empty, or an item has no source.
  • dataset.subject is set and dataset.consent is not one of the consent values; a voice recipe with no subject.
  • Files changed or missing since the manifest (full check only).
  • config.seed is missing.
  • An image or video LoRA whose eval.strengths lacks 0.0: every strength sweep needs a strength-0 control.
  • output.dir exists and is not empty.
  • The output folder's drive is under disk_floor_gb free (full check only; default 100 GB).

Examples from the test run:

{
 "ok": false,
 "fail": [
  "licence 'cc-by-nc-4.0' is non-commercial; the trained model inherits it and cannot be sellable"
 ],
 "warn": []
}
{
 "ok": false,
 "fail": [
  "dataset subject 'a friend' has no consent record (self | granted:YYYY-MM-DD <who> | public-domain | licensed:<terms> | synthetic)"
 ],
 "warn": []
}
{
 "ok": false,
 "fail": [
  "output.dir <tmp>\\output\\my-style is not empty: trainers like ai-toolkit resume a same-name run silently; use a new name"
 ],
 "warn": []
}

The last one matters most: ai-toolkit and most trainers resume a run whose output folder already exists, so a "new" LoRA under an old name silently continues the old one. Use tw.py rerun <recipe> <new-name> instead.

Warnings

  • The base is gated (its name matches Llama, SAM 3 or meta-, or base.gated is true).
  • save_every above 250 for an image or video LoRA: style LoRAs often peak early.
  • The GPU is busy: over 10 % load or over 6000 MB used, read from nvidia-smi (full check only; no warning when nvidia-smi is missing). Memory held by an idle program counts too, so the warning can appear at 0 % load.

Full and shallow

check --shallow skips the three checks that touch the machine or the dataset files: the hash comparison, the GPU probe and the disk floor. run and rerun always run the full set.

Clone this wiki locally