"A filename is a human's claim about a file. The tensors inside are the file's confession. Trust the confession."
Humans Name Things Wrong
Walk through any real model directory and you'll find lies. A file named lora_something.safetensors that's actually a full merged checkpoint with a complete backbone baked in. A folder called sdxl/ holding an SD1.5 model someone dropped in the wrong place. A checkpoint with a vendor's name that's really a community fine-tune. People rename, re-folder, and mislabel constantly — and any classifier that trusts the filename inherits every one of those mistakes.
The Tensors Are Ground Truth
Inside a safetensors file is a header listing every tensor: its key name and its shape. Those keys and shapes are determined by the model's actual architecture — they cannot be faked by renaming the file. A real SDXL model has SDXL's tensor keys; a real FLUX transformer has FLUX's. To know what a file truly is, you don't read its name — you read its header and look at what's actually inside.
A Concrete Trap: The Merged Checkpoint
Here's a real example of why this matters. Someone shares a checkpoint that has LoRA tensors baked in alongside a full backbone. By filename or by the presence of lora_ keys, a naive classifier calls it a LoRA — a small adjunct file. But it also carries a complete backbone, which makes it a full checkpoint, gigabytes of model. Get this wrong and the engine tries to load a multi-GB 'LoRA' as if it were a small patch, and everything downstream breaks. The fix: check for the full-backbone signature first, before checking for LoRA keys. Detection order encodes the priority of evidence.
Scope vs Kind Are Different Axes
There's a subtle second lesson here. Which directories you scan (scope) and what category a file is (kind) are independent questions. The engine scans the models directory but excludes the embeddings directory — that's a scope decision, made by folder. But within scope, a file's kind is never decided by its folder — only by its tensors. Conflating these two axes is how you end up trusting folders for the thing folders can't be trusted for.