Skip to content

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 03:34
· 4 commits to main since this release

LoRA Forge 1.7.0

Before you update

  • NVIDIA driver 595 or newer is now required. LoRA Forge moves to PyTorch 2.15, which is built for CUDA 13.2 only. Check your driver version in the NVIDIA app or with nvidia-smi and update it first if needed.
  • On the first launch, PyTorch and a few other packages are downloaded again (a few GB, once), and the first training of each model compiles again.
  • flash-attn and xformers are removed from your .venv on the first launch (if you had them): PyTorch 2.15's own attention runs on flash kernels, as fast as flash-attn was. Close anything that uses .venv first, for example VS Code with its Python extensions.

Faster defaults without extra installs

  • Flash attention is now built in: Anima, SDXL, Krea 2 and MOSS-Image get it without installing anything. The uv sync --extra flash-attn step is gone.
  • The attention options are gone from the pages: attn_mode on Anima, Krea 2 and MOSS-Image, and the xformers switch on the SD1.5 / SDXL pages. An older config that asks for flash-attn or xformers uses PyTorch's attention instead, unless you installed that package yourself.
  • Short runs of every trainer on PyTorch 2.15 matched the old speed with flash-attn: Anima 1.627 vs 1.617 s/step, SDXL 0.837 vs 0.840, Krea 2 3.745 vs 3.694, MOSS-Image 2.105 vs 2.084.

Anima compile

  • compile_shapes now defaults to auto: PyTorch 2.15 fixed the bug that made it fail (pytorch#193194). Different bucket sizes share two or three compiled graphs instead of one per bucket, at the same step speed.
  • LoRA Forge's own bounded mode is gone: PyTorch 2.15 no longer accepts it. Configs that use it get auto.
  • dynamic works too when the Visual Studio C++ compiler is installed: one graph for all sizes, the same step speed.