玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
blaj /

Qwen-Image-2.1-Uncensored-OpenVINO-INT4

HF 源站

blaj/Qwen-Image-2.1-Uncensored-OpenVINO-INT4 is an uncensored open-source model hosted on Hugging Face.

Text-to-ImageLicense: otheropenvinoqwen-imageuncensoredabliteratedhereticint4intel-arc
README.md说明 / 使用方法

license: other license_name: qwen-research base_model:

  • Qwen/Qwen-Image-2.1
  • pottokao/Qwen-Image-2.1-Text-Encoder-Heretic base_model_relation: quantized pipeline_tag: text-to-image library_name: openvino tags:
  • openvino
  • qwen-image
  • uncensored
  • abliterated
  • heretic
  • int4
  • text-to-image
  • intel-arc

Qwen-Image-2.1 Uncensored — OpenVINO INT4

OpenVINO IR build of Qwen-Image-2.1 with an abliterated text encoder, quantized to INT4. Runs text-to-image on Intel Arc iGPUs.

Uncensoring lives in the prompt-embedding path, so only the Qwen3-VL text encoder needed replacing — the transformer, VAE and vision encoder are the stock model.

What's inside

ComponentPrecisionSizeSource
text_encoderINT4 asym3.9 GBabliterated Qwen3-VL
text_encoder_i2iINT4 asym3.9 GBsame (editing slot)
transformerINT4 asym3.5 GBstock Qwen-Image-2.1
vision_encoderINT8553 MBstock
vae_decoderINT8243 MBstock
vae_encoderINT876 MBstock

Total ~13 GB.

Abliteration verified

Embeddings for "a portrait of a woman, photorealistic" differ decisively from the stock encoder — this is not a renamed copy:

stock   mean 0.59543
heretic mean 0.22803
max abs diff : 1550.99353
mean abs diff: 10.12831
identical    : False

Measured performance

Intel Core Ultra 7 258V, Arc 130V/140V iGPU, 8 cores, 30 GB RAM:

TestResult
pipeline load43.5 s
512x512, 10 steps12.9 s (1.29 s/step)
peak RSS7.1 GB

Usage

import torch
from optimum.intel import OVDiffusionPipeline

pipe = OVDiffusionPipeline.from_pretrained(
    "blaj/Qwen-Image-2.1-Uncensored-OpenVINO-INT4",
    compile=True, device="GPU",
)
img = pipe(
    "your prompt",
    num_inference_steps=20, height=1024, width=1024,
    generator=torch.Generator().manual_seed(42),
).images[0]
img.save("out.png")

Requires the nightly stack: diffusers and optimum-intel from main, plus OpenVINO 2026.5.0 nightly. See the full conversion write-up: https://devnotes.page/how-to-convert-qwen-image-2-1-to-openvino-ir-and-build-an-uncensored-version

How it was built

  1. Exported the abliterated text encoder to fp16 IR with optimum (57 s, 14.4 GB), taking only .model.language_model.
  2. Compressed that IR to INT4 with NNCF — group_size=-1 is required, 128 and 64 raise InvalidGroupSizeError (37 s, → 3.9 GB).
  3. Copied a pre-converted stock INT4 pipeline and replaced text_encoder/ and text_encoder_i2i/.

Python 3.12 is required for step 1. On Python 3.14 functools.partial is a descriptor, so NORMALIZED_CONFIG_CLASS resolves to a bound method and the export dies with:

TypeError: NormalizedConfig.__init__() got multiple values for argument 'allow_new'

A full-pipeline export of the 33 GB source is OOM-killed (exit 137) on a 30 GB machine — export components separately.

Limitations

  • Image editing (i2i) loads but exhausts 30 GB during generation; it needs the vision encoder and both text encoders resident at once. Not resolution-bound — 256x256 with 8 steps still reached 28 GB. Text-to-image is unaffected.
  • The abliterated text encoder is a community artifact and carries its own behaviour changes beyond removing refusals.
  • Inherits the Qwen-Image-2.1 research licence. Uncensored output is your responsibility.
HUGGING FACE

上游数据

HF 下载量0
HF 点赞量0

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
blaj
最近更新
2026/10/07
最新创建
2026/10/07
HF 趋势
未知
数据快照
2026/10/07
版本
未知
许可证
other