Skip to content

How to train Qwen Image on 4090, getting non stop OOM no matter what I set up the config to. #863

Description

@E10H1M

I’m unable to train Qwen-Image on a 24GB GPU — it always runs into CUDA OOM.

Steps I already tried:

  • export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
  • --enable_fp8_training
  • --use_gradient_checkpointing
  • --gradient_accumulation_steps 2
  • --max_pixels 262144

Even with these, the model immediately runs out of memory on 24GB card

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions