unsloth/studio/backend/models
Daniel Han cb9247e537 Add mxfp8 training base precision and SDXL U-Net regional compile
- base_precision="mxfp8": torchao MX block-scaled float8 compute on the frozen
  base linears (Blackwell sm100+, cuBLAS kernels). Applied after add_adapter like
  fp8, never fatal, weights stay bf16 in memory. Measured 1.16x over compiled
  bf16 on Z-Image at 1024px batch 4 (16k tokens/step); a wash at small token
  counts, so it stays an explicit opt-in and auto never picks it.
- SDXL: regionally compile the U-Net's BasicTransformerBlocks through the same
  never-fatal wrapper the DiT trainer uses. 1.35x steady state at 1024px batch 4
  with same-seed loss parity (~1e-5 per step) and unchanged peak VRAM; ~30 s
  one-time warmup. Steady-state samples/sec now excludes step 1, matching the
  DiT trainer.
- /info: mxfp8 advertised only on sm100+; supports_compile now true for sdxl.
- NVFP4 training: not available in torchao 0.16 (no autograd path, no training
  recipe), so NVFP4 stays an inference-only quant for now.

193 diffusion backend tests green; frontend build clean.
2026-07-03 19:13:03 +00:00
..
.gitkeep fix: restore models directory files deleted during restructure 2026-02-02 19:36:30 +00:00
__init__.py Import diffusion training schemas from models.training directly 2026-07-01 22:11:43 +00:00
auth.py Studio: make code comments and docstrings more succinct (#6029) 2026-06-08 23:07:28 -07:00
data_recipe.py Studio: make code comments and docstrings more succinct (#6029) 2026-06-08 23:07:28 -07:00
datasets.py Studio fix recipe dataset preview (#6031) 2026-06-09 14:02:00 +02:00
export.py Studio: imatrix GGUF option and FP8/NVFP4 compressed export in the export UI (#6729) 2026-06-30 03:41:02 -07:00
inference.py Merge remote-tracking branch 'origin/diffusion-lora' into diffusion-controlnet 2026-07-02 06:40:54 +00:00
mcp_servers.py studio: show MCP "Import config" on the add-server form (#6030) 2026-06-11 16:17:22 +01:00
models.py Merge remote-tracking branch 'origin/main' into image-generation 2026-07-01 10:47:21 +00:00
providers.py Studio: Add custom provider option to Connections (#6112) 2026-06-12 13:09:35 +02:00
responses.py Studio: make code comments and docstrings more succinct (#6029) 2026-06-08 23:07:28 -07:00
training.py Add mxfp8 training base precision and SDXL U-Net regional compile 2026-07-03 19:13:03 +00:00
users.py Studio: make code comments and docstrings more succinct (#6029) 2026-06-08 23:07:28 -07:00