Skip to content

[OpenVINO] Support Qwen-Image#1790

Open
openvino-agent wants to merge 1 commit into
huggingface:mainfrom
openvino-agent:worktree-qwen-image
Open

[OpenVINO] Support Qwen-Image#1790
openvino-agent wants to merge 1 commit into
huggingface:mainfrom
openvino-agent:worktree-qwen-image

Conversation

@openvino-agent

@openvino-agent openvino-agent commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Export:

optimum-cli export openvino -m Qwen/Qwen-Image ./Qwen-Image

Inference:

import numpy as np
import torch
from optimum.intel import OVDiffusionPipeline, OVPipelineForText2Image, OVQwenImagePipeline

#MODEL_ID = "Qwen/Qwen-Image"
MODEL_ID = "./Qwen-Image"

pipe = OVQwenImagePipeline.from_pretrained(MODEL_ID)

image = pipe(
    prompt="a cinematic photo of a fox in a snowy forest, golden hour",
    num_inference_steps=20,
    height=512,
    width=512,
    true_cfg_scale=4.0,
    negative_prompt="blurry, low quality",
    generator=torch.Generator().manual_seed(42),
).images[0]

image.save("./qwen_image_ov.png")
qwen_image_ov

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

is_flux = pipeline.__class__.__name__.startswith("Flux")
is_sana = pipeline.__class__.__name__.startswith("Sana")
is_ltx_video = pipeline.__class__.__name__.startswith("LTX")
is_qwen_image = pipeline.__class__.__name__.startswith("QwenImage")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does it cover QwenImageEdit pipeline for Qwen/Qwen-Image-Edit?

@regisss

regisss commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

It seems there are merge conflicts to solve

@rkazants rkazants requested review from echarlaix and regisss June 29, 2026 19:02

@regisss regisss left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The PR looks good to me. There are still merge conflicts to solve though and then we can trigger CI.

@IlyasMoutawwakil

Copy link
Copy Markdown
Member

@openvino-agent please address the comments since this PR is on the priority list

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.

5 participants