Skip to content

feat: support vae parallel for qwen-image-edit-plus.#1499

Open
shan-chen-feng wants to merge 5 commits into
jd-opensource:mainfrom
shan-chen-feng:qwenimage_vae_parallel
Open

feat: support vae parallel for qwen-image-edit-plus.#1499
shan-chen-feng wants to merge 5 commits into
jd-opensource:mainfrom
shan-chen-feng:qwenimage_vae_parallel

Conversation

@shan-chen-feng
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces VAE patch parallelism for the DiT model, adding necessary configuration flags, updating the collective communicator to support VAE process groups, and implementing tiled encoding with row-based parallelism in the AutoencoderKLQwenImage model. The review comments identified several critical issues, including a race condition in the RankGenerator initialization, an incorrect row distribution calculation for VAE parallelism, and encapsulation issues in the RankGenerator class. I have kept the comments pointing out these bugs and improvement opportunities while removing comments that were purely explanatory or lacked actionable feedback.

Comment thread xllm/core/framework/parallel_state/rank_generator.h
Comment thread xllm/models/dit/npu/qwen_image_edit/autoencoder_kl_qwenimage.h Outdated
Comment thread xllm/core/framework/parallel_state/rank_generator.h
Comment thread xllm/models/dit/npu/qwen_image_edit/autoencoder_kl_qwenimage.h
Comment thread xllm/models/dit/npu/qwen_image_edit/autoencoder_kl_qwenimage.h Outdated
@shan-chen-feng shan-chen-feng force-pushed the qwenimage_vae_parallel branch from b968992 to ad3bf68 Compare May 20, 2026 10:01
@shan-chen-feng shan-chen-feng requested a review from wly-115 May 20, 2026 10:08
@shan-chen-feng shan-chen-feng force-pushed the qwenimage_vae_parallel branch from ad3bf68 to 87db6d7 Compare May 20, 2026 13:11
Comment thread xllm/core/framework/config/parallel_config.h
@shan-chen-feng shan-chen-feng changed the title Qwenimage vae parallel feat: support vae parallel for qwen-image-edit-plus. May 20, 2026
@shan-chen-feng shan-chen-feng force-pushed the qwenimage_vae_parallel branch from 87db6d7 to afa809c Compare May 20, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants