Downloads · 30 days
40
8% of all-time downloads
MLliu6/Qwen3-VL-4B-Instruct-SmoothQuant-W8A8-FP8
Qwen3-VL-4B-Instruct-SmoothQuant-W8A8-FP8 is a image-text-to-text model from MLliu6. 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 apache-2.0.
This repository provides a SmoothQuant-based compressed version of Qwen3-VL-4B-Instruct for efficient multimodal inference and evaluation.
Downloads · 30 days
40
8% of all-time downloads
All-time downloads
494
Public
Parameters
4.4B
5.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.2 GB · 100%
How the weights are stored.
F8_E4M33.6B · 82%
From the Hugging Face model README
This repository provides a SmoothQuant-based compressed version of Qwen3-VL-4B-Instruct for efficient multimodal inference and evaluation.
This model is a third-party compressed checkpoint built on top of Qwen3-VL-4B-Instruct, mainly for efficient deployment, benchmarking, and PTQ baseline construction.
The current release follows a SmoothQuant-style W8A8-FP8 workflow in the llm-compressor framework. In this project, the checkpoint is released as a deployment-oriented baseline for FP8-compatible serving and evaluation.
Compared with the original checkpoint layout, this release also reduces storage footprint in a practical way.
4,850,810 KB + 3,816,885 KB4,873,795 KB + 245,804 KB-40.935%Qwen/Qwen3-VL-4B-InstructQwen3-VLSmoothQuantW8A8-FP8llm-compressorThis release follows a SmoothQuant-based post-training workflow in llm-compressor, where activation outliers are first smoothed and the model is then exported through an FP8-oriented low-precision deployment path.
recipe = [
SmoothQuantModifier(
smoothing_strength=0.5,
mappings=SMOOTHQUANT_MAPPINGS,
ignore=["re:.*visual.*"],
num_calibration_steps=NUM_CALIBRATION_SAMPLES,
),
QuantizationModifier(
targets="Linear",
scheme="FP8",
ignore=["re:.*lm_head", "re:.*visual.*"],
),
]
SmoothQuantModifier is used to smooth activation outliers before quantization.smoothing_strength=0.5 balances the migration of quantization difficulty between activations and weights.mappings=SMOOTHQUANT_MAPPINGS defines how the smoothing transform is applied across eligible modules.num_calibration_steps=NUM_CALIBRATION_SAMPLES matches the calibration subset used during PTQ.QuantizationModifier(..., scheme="FP8") is used to quantize target Linear layers for deployment-oriented inference.lm_head and visual modules are excluded from this quantization path in the released checkpoint.Calibration data was constructed from the Flickr30k image-caption dataset.
For SmoothQuant calibration, 128 samples were selected from local Flickr30k parquet files after dataset loading and random shuffling with a fixed seed (seed=42). Each sample was converted into a multimodal chat-style input containing one image and one paired caption, and then processed into model inputs such as input_ids, attention_mask, pixel_values, and image_grid_thw.
1282048For evaluation in VLMEvalKit, the following model entry can be added to VLMEvalKit/vlmeval/config.py:
'Qwen3-VL-4B-Instruct-SmoothQuant-W8A8-FP8': partial(
vlm.Qwen3VLChat,
model_path='/home/lml/models/Qwen3-VL-4B-Instruct-SmoothQuant-W8A8-FP8',
min_pixels=256 * 28 * 28,
max_pixels=1280 * 28 * 28,
use_custom_prompt=False,
use_vllm=True,
temperature=0.7,
max_new_tokens=8192,
repetition_penalty=1.0,
presence_penalty=1.5,
top_p=0.8,
top_k=20,
max_model_len=16384,
gpu_utils=0.90,
enable_thinking=False,
)
This release is intended for:
This is a third-party quantized checkpoint and is not an official release from the Qwen team.
The checkpoint is provided as a practical SmoothQuant-style baseline. Actual runtime behavior and performance can depend on the serving backend and hardware support path.
If you use this model, please cite the original Qwen3-VL report, SmoothQuant, VLMEvalKit, and the calibration dataset when appropriate.
@article{bai2025qwen3vl,
title={Qwen3-VL Technical Report},
author={Bai, Shuai and Cai, Yuxuan and Zhu, Keming and others},
journal={arXiv preprint arXiv:2511.21631},
year={2025}
}
@article{xiao2023smoothquant,
title={SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models},
author={Xiao, Guangxuan and Lin, Ji and Sehwag, Vikhram and others},
journal={Proceedings of the International Conference on Machine Learning (ICML)},
year={2023}
}
@misc{duan2024vlmevalkit,
title={VLMEvalKit: An Open-Source Toolkit for Evaluating Large Vision-Language Models},
author={OpenCompass Team},
howpublished={\url{https://github.com/open-compass/VLMEvalKit}},
year={2024}
}
@article{young2014image,
title={From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions},
author={Young, Peter and Lai, Alice and Hodosh, Micah and Hockenmaier, Julia},
journal={Transactions of the Association for Computational Linguistics},
volume={2},
pages={67--78},
year={2014},
publisher={MIT Press}
}
This repository builds upon the following open-source projects: