WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@E10H1M

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

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