Downloads · 30 days
0
AsadIsmail/Qwen2.5-VL-7B-Instruct-ternary
Qwen2.5-VL-7B-Instruct-ternary is a image-text-to-text model from AsadIsmail. 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.
Ternary-quantized version of Qwen/Qwen2.5-VL-7B-Instruct, produced with ternary-quant.
Downloads · 30 days
0
Access
Public
Updated Apr 27, 2026
Repo size
7.3 GB
Likes
1
Public
Click a slice to open those files.
.npz7.3 GB · 100%
From the Hugging Face model README
Ternary-quantized version of Qwen/Qwen2.5-VL-7B-Instruct, produced with ternary-quant.
Qwen2.5-VL is one of the most capable open-weight vision-language models. This ternary-quantized version targets lower memory use while preserving multimodal behavior in a HuggingFace-native, component-aware PTQ workflow.
| Metric | Value |
|---|---|
| Scheme | tritplane3 (3-plane progressive ternary) |
| Components quantized | text_backbone, multimodal_connector (196 linear layers) |
| Vision encoder | Kept in FP16 |
| Stored size | 7341 MB (~7.2 GB) |
| FP16 size | 13051 MB (~12.7 GB) |
| Compression ratio | 1.8x |
from ternary_quant.inference import load_ternary_model
model, processor = load_ternary_model(
"AsadIsmail/Qwen2.5-VL-7B-Instruct-ternary",
runtime_mode="metal" # "cached" for NVIDIA/CPU
)
from PIL import Image
image = Image.open("photo.jpg")
inputs = processor(text="What is shown in this image?", images=image, return_tensors="pt")
inputs = {k: v.to(model.device) for k, v in inputs.items()}
outputs = model.generate(**inputs, max_new_tokens=256)
print(processor.decode(outputs[0], skip_special_tokens=True))
pip install ternary-quant
ternary-quant quantize-broad Qwen/Qwen2.5-VL-7B-Instruct \
--output ./Qwen2.5-VL-7B-Instruct-ternary \
--components text_backbone multimodal_connector \
--scheme tritplane3 --dtype float16 --eval