"""The models folder of Spellcast3D (spellcast3d/models) and the tools' AI models in it. STDLIB ONLY. models/checkpoints, vae, text-encoders, loras image models; Forge Neo reads them (adapters/forge.py) models/qwen-image Qwen-Image 2.1's AI models (~12 GB with the default size: the Turbo and our albedo add-on in albedo/; + 4.2 GB for the full model, on the artist's request) models/flux3-klein FLUX.3 Image Klein's (6.8 GB with the default size), only on the artist's request (made by its download, not at the start) models/pixal3d Pixal3D's AI models (~27 GB, + 14 GB of faster-loading copies) models/hi3d Hi3D's (11.4 GB), the 3D stage's second Shape, only on the artist's request (made by its download, not at the start) models/lato2 LATO.2's AI models (4.8 GB with DINOv2) models/triflow TriFlow's AI models (1.3 GB); code/triflow/checkpoints links to them Qwen-Image 2.1's and the retopology tools' models are fetched by the installer itself (pinned revisions, SHA-256 checked, resumed after an interruption). Copies already on this PC are hard-linked instead of downloaded: from the artist's HuggingFace caches, from folders given with install.py --models-from (or SPELLCAST_MODELS_FROM), and for TriFlow from code/triflow/checkpoints. A hard link needs the same drive and takes no disk space; GBs are never copied. A file that got into those folders some other way (copied in by hand) is checked once against its pin too (SHA-256; DINOv2's code: tree_digest) before it is used; what was checked is remembered in code/venvs/models-verified.json (by size and time), so it is not hashed again at every start. Pixal3D keeps using its own folder code/pixal3d/MODELS: its install.py downloads there, its app loads from there (HF_HOME and TORCH_HOME point inside it). The installer makes that folder a directory junction to models/pixal3d - junctions need no admin rights, unlike symbolic links - so the artist can drop weights they already have into models/pixal3d, and they stay there when the tool is updated or reinstalled. An older install's real code/pixal3d/MODELS folder is moved into models/pixal3d first: renames on the same drive (a second, never a copy of 27 GB), and nothing is ever deleted. Where models/pixal3d already has a file, it keeps its own, and the older copies are set aside in models/pixal3d-old-