unsloth/studio/backend/core/training
Daniel Han 83a5d52e7b Wrap the DiT training forward in bf16 autocast
The fp32 LoRA parameters and the bnb 4-bit base matmuls need a single
compute dtype during the forward, exactly like the diffusers dreambooth
scripts run under accelerator.autocast. Without it the 4-bit backward on
FLUX.1-dev fails with an illegal-address CUBLAS error partway into the
first step. Z-Image and Qwen-Image smokes are unaffected and the SDXL
path (its own trainer) is untouched.
2026-07-02 16:05:56 +00:00
..
__init__.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00
diffusion_dit_trainer.py Wrap the DiT training forward in bf16 autocast 2026-07-02 16:05:56 +00:00
diffusion_lora_trainer.py Speed up + shrink SDXL LoRA training (precompute text embeds, 8-bit AdamW) 2026-07-02 15:25:55 +00:00
diffusion_train_common.py Add flow-matching DiT LoRA trainers (FLUX.1-dev, Qwen-Image, Z-Image) 2026-07-02 15:25:43 +00:00
diffusion_training_service.py Retain diffusion training loss history and expose it in status 2026-07-02 14:55:17 +00:00
resume.py feat(studio): implement S3 dataset loading (completes #5951) (#6222) 2026-06-12 14:52:04 +02:00
s3_dataset.py feat(studio): implement S3 dataset loading (completes #5951) (#6222) 2026-06-12 14:52:04 +02:00
trainer.py Fix Windows Studio UTF-8 startup handling (#6614) 2026-07-01 13:47:33 +01:00
training.py (feat) Add project names to studio training runs (#6512) 2026-06-29 16:06:36 +02:00
worker.py (feat) Add project names to studio training runs (#6512) 2026-06-29 16:06:36 +02:00