Downloads · 30 days
81
35% of all-time downloads
kizuna-intelligence/Qwen3.8-27B-int4-qep
Qwen3.8-27B-int4-qep is a image-text-to-text model from kizuna-intelligence. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as other.
Fujitsu OneCompressionで量子化したQwen3.8-27Bの画像対応版。 既存のテキストモデルに、4bit化した画像エンコーダーを追加している。 単一の32 GB GPUにモデル全体を配置できる。
Downloads · 30 days
81
35% of all-time downloads
All-time downloads
232
Public
Parameters
5.9B
18.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.4 GB · 100%
How the weights are stored.
I323.2B · 54%
From the Hugging Face model README
Fujitsu OneCompressionで量子化したQwen3.8-27Bの画像対応版。 既存のテキストモデルに、4bit化した画像エンコーダーを追加している。 単一の32 GB GPUにモデル全体を配置できる。
| 部分 | 量子化 | モジュール数 |
|---|---|---|
| テキスト | AutoBitによる4/8bit混在GPTQ + QEP | 4bit: 405、8bit: 91 |
| 画像 | 4bit GPTQ | 111 |
Qwen/Qwen3.8-27B1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c009cc5d01896ee4dec37027ff1668a4337929ad65既存のmodel.safetensorsはテキスト側の第1シャードとしてそのまま再利用し、
model-00002-of-00002.safetensorsに画像側の重みを収録している。
読み込み時はmodel.safetensors.index.jsonを使用する。
重みはOneCompression専用のGPTQ形式なので、通常のTransformersローダーではなく、
VLM対応のonecompression-runtimeを使用する。
from transformers import AutoProcessor
from onecomp_runtime.models.qwen38_vlm import load_int4_qwen38_vlm
checkpoint = "/path/to/Qwen3.8-27B-int4-qep"
model = load_int4_qwen38_vlm(
checkpoint,
device="cuda:0",
backend="fused",
fused_8bit="dequant",
)
processor = AutoProcessor.from_pretrained(checkpoint, local_files_only=True)
config.jsonのlanguage_model_onlyはfalseで、27層の画像エンコーダーを含む。
画像前処理にはpreprocessor_config.jsonとvideo_preprocessor_config.jsonを使用する。
テキスト側はAutoBitで選んだ405個の4bitモジュールと91個の8bitモジュールからなる。
画像側はattention、MLP、merger、位置埋め込みを含む111モジュールを4bit化した。
テキスト側の量子化条件はquantization_summary.json、各画像モジュールの誤差指標と
group sizeはvision_quantization_summary.jsonに記録している。
Kizuna Intelligence