LTX-2 icon indicating copy to clipboard operation
LTX-2 copied to clipboard

LTX-2.3 training requires a lot of VRAM

Open rkfg opened this issue 8 months ago • 4 comments

I run the trainer on a 5090 on Debian testing, in a Docker container. I remember training 2.0 just fine but 2.3 needs so much VRAM I have to close everything and it still takes 31 GB, almost OOMing. I use the same config based on ltx2_av_lora_low_vram.yaml No validation, no samples, no audio, using only images in the dataset. 8-bit quants and gradient checkpointing enabled, lora rank is 32 (not 16 but it worked before). Could it be because of the bigger connector? But I assume it can be unloaded after caching the latents?

rkfg avatar Mar 30 '26 20:03 rkfg

I’ve tried to train a LoRa for LTX2.3 with a A100 (80gb VRAM) . After 2000 steps within 20 hours, i got OOM error. So yes it requires a LOT if memory !

BrunoBang avatar May 22 '26 06:05 BrunoBang

Have you tried the low VRAM configuration for training? https://github.com/Lightricks/LTX-2/blob/main/packages/ltx-trainer/configs/ltx2_av_lora_low_vram.yaml

rluxemburg avatar May 29 '26 18:05 rluxemburg

That's mentioned in my post already. Yes, I tried that.

rkfg avatar May 29 '26 18:05 rkfg

Adding another data point from a 32 GB RTX 5090 system.

Environment:

  • GPU: NVIDIA GeForce RTX 5090, 32 GB class (32607 MiB reported by nvidia-smi)
  • Driver reported in WSL: 610.47
  • OS/runtime: Windows host + Ubuntu 22.04.5 LTS on WSL2 (6.18.33.1-microsoft-standard-WSL2)
  • LTX-2 checkout: 7809842 (origin/main at the time of testing)
  • Python: 3.12.13
  • Torch: 2.9.1+cu128, CUDA runtime 12.8
  • Model: ltx-2.3-22b-dev.safetensors
  • Text encoder: Gemma 3 12B QAT q4_0 unquantized directory

I tested a config based on the official packages/ltx-trainer/configs/t2v_lora_low_vram.yaml profile:

  • LoRA mode
  • rank 16 / alpha 16
  • batch size 1
  • gradient accumulation 1
  • adamw8bit
  • gradient checkpointing enabled
  • bf16 mixed precision
  • load_text_encoder_in_8bit: true
  • quantization: "int8-quanto"
  • no initial validation / no validation reached, reduced to a 1-step smoke test
  • preprocessed dataset with one small sample at 576x576x49

Observed result:

  • With int8-quanto, the run OOMed during transformer quantization before entering the actual training loop.
  • As an experiment, switching to int4-quanto got past quantization and reached Starting training..., but the actual step pushed the card to about 31.2 GB / 31.8 GB dedicated VRAM, with Windows also showing shared GPU memory use. GPU utilization stayed near full load, but progress was extremely slow. After roughly 20 minutes with no checkpoint from the 1-step smoke test, I stopped it.
  • The trainer logged model-preparation memory around 13.6 GB before the actual step, but the step itself climbed to the near-OOM range.
  • No LoRA checkpoint was produced from this local smoke test.

This seems consistent with the original report: the official low-VRAM path exists for 32 GB cards, but LTX-2.3 22B training appears to sit right on the edge of 32 GB in practice, even with validation disabled and the usual low-VRAM knobs enabled.

If there are recommended additional settings for 32 GB consumer cards, especially for a reliable minimal 1-step smoke test, I would be happy to try them. In particular, I am wondering whether the recommended 32 GB path should be narrower than the current low-VRAM T2V/audio-video preset, for example lower resolution/frame buckets, video-only target modules, or a different quantization path.

Deno2026 avatar Jun 18 '26 04:06 Deno2026