Qwen-Image-SP

QwenImage DiT + text-encoder fine-tuned on Structured-Prompt data (context-scaling project). EMA weights, bf16, 55 GB total.

Sharded across 14 safetensors files (each ~4.5 GB, well under HF LFS per-file limits):

  • dit_model-*.safetensors (10 shards) โ†’ transformer state dict
  • text_encoder-*.safetensors (4 shards) โ†’ Qwen2.5-VL text-encoder

Module prefix already stripped inside each shard, so:

import torch, glob
from safetensors.torch import load_file
from diffusers import QwenImagePipeline
from huggingface_hub import hf_hub_download, snapshot_download

pipe = QwenImagePipeline.from_pretrained("Qwen/Qwen-Image", torch_dtype=torch.bfloat16)
local = snapshot_download("heheyas/Qwen-Image-SP")

for shard in sorted(glob.glob(f"{local}/dit_model-*.safetensors")):
    pipe.transformer.load_state_dict(load_file(shard), strict=False)
for shard in sorted(glob.glob(f"{local}/text_encoder-*.safetensors")):
    pipe.text_encoder.load_state_dict(load_file(shard), strict=False)

VAE, tokenizer, scheduler are inherited from Qwen/Qwen-Image at load time and not shipped here.

Downloads last month
986
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for heheyas/Qwen-Image-SP

Base model

Qwen/Qwen-Image
Finetuned
(93)
this model

Space using heheyas/Qwen-Image-SP 1

Collection including heheyas/Qwen-Image-SP