Checks / adapter
LoRA target is not a Linear
Check C07. Compares a change with what it was changed from, in
POST /api/v1/plan and in the pull request comment. Milliseconds, before any GPU is billed.
warn
adapter
C07
| Trigger | A target_modules entry matches a module PEFT cannot inject into: a class that holds a Linear without being one, a whole attention block, a norm. |
|---|---|
| Why | PEFT supports nn.Linear, nn.Embedding, nn.Conv1d/2d/3d and transformers Conv1D. A wrapper is refused or skipped; target the Linear inside it by its own name. |
| Seen in | peft#3129 (Gemma4ClippableLinear inherits from nn.Module, not nn.Linear). |
Why it is not a lint you can ignore
This edit does not fail at all. It loads, it runs, and the save succeeds, so a
coding agent that fixes what errors has nothing to fix. The first sign is a training run that
learned the wrong thing. That is why this runs before the spend and not after it.
Run this check on your own model
Free, no account needed
Every check
50 structural checks: 6 guardrail gates, 37 architecture advisor rules and 7 edit checks. See the full catalogue.