modelscope / modelscope/DiffSynth-Studio

qwen-image-edit lora训练 是否有显存优化手段

Open
#977 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13.1k
Forks
1.3k
Avg merge
13h 12m
Merged PRs (30d)
45

Description

使用单机8卡49GA6000,按照repo中的lora去训练,已经启动了 --use_gradient_checkpointing --use_gradient_checkpointing_offload --enable_fp8_training,降低了lora_rank,zero_stage2/3都试过,全都在accelerator.prepare步骤爆显存
求各位指导:

  1. 是否是deepspeed配置没起作用?配置方式见下图(--config_file)
  2. 是否有其他方法能够优化显存?
Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report concerns LoRA training for qwen-image-edit and an out-of-memory failure at accelerator.prepare, despite the listed gradient-checkpointing, FP8, LoRA rank, and ZeRO settings. Start by reproducing the repository's documented LoRA training command and checking whether the supplied --config_file is applied. Done would require identifying a confirmed configuration or training change that prevents the reported memory failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, machine-learning
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.