Qwen-Image-Edit-2509 CMF

Qwen-Image-Edit-2509 for native Rust image editing with cortiq. The ready file includes the transformer, Qwen2.5-VL text/vision encoder, tokenizer, processor, VAE and scheduler. Separate components remain available.

Native editing is available; image-quality validation is incomplete.

English · Русский · 中文

Files

  • qwen-image-edit-2509-q4tp.cmf — ready single-file pipeline
  • transformer.cmf — Q4TP diffusion transformer
  • text_encoder.cmf — Qwen2.5-VL encoder, tokenizer and processor
  • vae.cmf — Qwen Image VAE
  • scheduler_config.json — scheduler for separate components

Usage

Install cortiq 0.8.80 or newer, then run:

cortiq imagine qwen-image-edit-2509-q4tp.cmf \
  --image input.png --prompt "Add a blue knitted scarf." \
  --height 1024 --width 1024 --steps 40 --cfg 4 --seed 7 \
  --reference-size 1024 --out edited.png

For separate components, pass their folder instead of the single file:

cortiq imagine qwen-image-parts \
  --image input.png --prompt "Add a blue knitted scarf." \
  --height 1024 --width 1024 --steps 40 --cfg 4 --seed 7 \
  --reference-size 1024 --out edited.png

--text-encoder, --vae and --scheduler select explicit component overrides.

Speed

cortiq 0.8.80 keeps every transformer block of a step on the card in one call, over CUDA and over Vulkan; the VAE's convolutions and attention run on the card too. NVIDIA RTX A5000 (24 GB), a 1024 × 1024 edit, 8 steps, CFG 4, seed 7, release build, single runs:

Backend Time Before 0.8.80
CUDA (CMF_GPU=cuda) 105.8 s 464 s
Vulkan (CMF_GPU=1) 148.1 s 442.5 s

On CUDA the edit fits an 8 GB card: CMF_GPU_VRAM_MB=8000 keeps the first blocks on the card and passes the rest through it every step (115.1 s, peak 7.4 GB). The card's 40-step recipe takes 371.6 s on CUDA. The CUDA backend is a build feature; the prebuilt release binaries do not include it:

cargo install cortiq-cli --features cuda     # needs the driver and the CUDA 12.x libraries
CMF_GPU=cuda cortiq imagine qwen-image-edit-2509-q4tp.cmf --image input.png \
  --prompt "Add a blue knitted scarf." --height 1024 --width 1024 --steps 40 --cfg 4 \
  --reference-size 1024 --out edited.png

Sources

The transformer was converted from QuantStack's Q6_K GGUF; other components come from Qwen. Apache-2.0.

Русский

Qwen-Image-Edit-2509 для правки картинок на Rust в cortiq: один файл с трансформером, энкодером Qwen2.5-VL, токенизатором, процессором, VAE и планировщиком. Нужен cortiq 0.8.80 или новее:

cortiq imagine qwen-image-edit-2509-q4tp.cmf \
  --image input.png --prompt "Add a blue knitted scarf." \
  --height 1024 --width 1024 --steps 40 --cfg 4 --seed 7 \
  --reference-size 1024 --out edited.png

Скорость. С 0.8.80 все блоки трансформера одного шага считаются на карте за один вызов на CUDA и на Vulkan, свёртки и внимание VAE тоже на карте. NVIDIA RTX A5000 (24 ГБ), правка 1024 × 1024, 8 шагов, CFG 4, релизная сборка: CUDA 105.8 s (до 0.8.80 — 464 s), Vulkan 148.1 s (было 442.5 s). На CUDA правка помещается в карту на 8 ГБ: с CMF_GPU_VRAM_MB=8000 — 115.1 s, пик 7,4 ГБ. Рецепт карточки на 40 шагов на CUDA — 371.6 s. CUDA включается при сборке: cargo install cortiq-cli --features cuda, затем CMF_GPU=cuda.

中文说明

Qwen-Image-Edit-2509 的原生 Rust 图像编辑版本,运行于 cortiq:单个文件包含 Transformer、Qwen2.5-VL 编码器、分词器、处理器、VAE 和调度器。 需要 cortiq 0.8.80 或更新版本:

cortiq imagine qwen-image-edit-2509-q4tp.cmf \
  --image input.png --prompt "Add a blue knitted scarf." \
  --height 1024 --width 1024 --steps 40 --cfg 4 --seed 7 \
  --reference-size 1024 --out edited.png

速度:从 0.8.80 起,每一步的全部 Transformer 块在 CUDA 和 Vulkan 上都一次调用在显卡上完成,VAE 的卷积和注意力也在显卡上。 NVIDIA RTX A5000(24 GB),1024 × 1024 编辑,8 步,CFG 4,发布版构建:CUDA 105.8 s(0.8.80 之前为 464 s), Vulkan 148.1 s(之前为 442.5 s)。在 CUDA 上 8 GB 显卡即可完成编辑:CMF_GPU_VRAM_MB=8000 时为 115.1 s,峰值 7.4 GB。 卡片推荐的 40 步在 CUDA 上用时 371.6 s。CUDA 需在构建时启用:cargo install cortiq-cli --features cuda,然后设置 CMF_GPU=cuda。

Downloads last month
145
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for infosave/Qwen-Image-Edit-2509-cmf

Quantized
(30)
this model

Collection including infosave/Qwen-Image-Edit-2509-cmf