TRF005
_no_split_modules, when defined, should be a list/tuple of non-empty strings.
| Default | Enabled |
| Scope | All models |
| Source | mlinter/trf005.py |
| Show in terminal | mlinter --rule TRF005 |
What it does
Checks the shape of _no_split_modules when present.
Why is this bad?
Malformed values can break device-map partitioning and sharding behavior.
Example
-_no_split_modules = [SomeLayerClass, ""]
+_no_split_modules = ["AcmeDecoderLayer", "AcmeAttention"]
Suppressing this rule
Add a # trf-ignore: TRF005 comment on the flagged line or the line directly above it. See Suppressing rules for whole-file directives and when a suppression is the wrong answer.
Allowlisted models
9 models are exempt from TRF005 in mlinter/rules.toml, because they predate the convention and cannot be changed without breaking backward compatibility.
Show the 9 allowlisted models
d_finedeformable_detrglm46vlw_detrpp_doclayout_v3rt_detrrt_detr_v2voxtralvoxtral_realtime
