mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
test(flux2): canonical offline tests for native adapter loaders
36 tests across parsing primitives, family loaders, calc_updown shape sanity, and the lora_apply ex_bias accumulation path. Builds a mock Flux2-shaped transformer (HIDDEN=128, 2 double + 2 single blocks) and writes synthesized state dicts to tempfile-managed safetensors so the loaders' real read_state_dict path runs. Loader fixtures include the full nine-family menu plus four prefix variants (kohya, BFL/AI-toolkit, PEFT, bare-BFL) and the two real ground-truth formats observed on Hugging Face: base_model.model. (peft.save_pretrained wrapper) and lycoris_ (LyCORIS-standalone).
This commit is contained in: