Repository navigation
Gates
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.
-
base.name,base.path,base.licenceorbase.sha256is empty. - The licence of the base or dataset is non-commercial (it matches
nc,non-commercial,cc-by-nc,research-onlyorpersonal-use) anduseissellableorpublic-release. -
useissellableand the base is Krea 2. -
dataset.itemsis empty, or an item has nosource. -
dataset.subjectis set anddataset.consentis not one of the consent values; avoicerecipe with no subject. - Files changed or missing since the manifest (full check only).
-
config.seedis missing. - An image or video LoRA whose
eval.strengthslacks0.0: every strength sweep needs a strength-0 control. -
output.direxists and is not empty. - The output folder's drive is under
disk_floor_gbfree (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.
- The base is gated (its name matches Llama, SAM 3 or
meta-, orbase.gatedis true). -
save_everyabove 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 whennvidia-smiis missing). Memory held by an idle program counts too, so the warning can appear at 0 % load.
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.
This wiki describes trainwright 0.1.0 and was last updated on 2026-11-19. The plugin is MIT licensed. Report problems in the issues.
Using it
The releases
Contributing
Elsewhere