Views
No views yet
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen2.5-VL-3B-Instruct |
| Quantization | FP8 W8A8 (8-bit float weights, 8-bit float activations) |
| Quantization Scope | LLM decoder only (ViT encoder in BF16) |
| Strategy | Per-tensor, static, symmetric (minmax observer) |
| Format | compressed-tensors (float-quantized) |
| Model Size | ~5.0 GB (2 shards) |
| Ignored Layers | lm_head, all model.visual.* layers |
| Tool | llm-compressor v0.7.1 |
| Supported Runtime | vLLM (with compressed-tensors) |
lm_head (kept in BF16) and all ViT encoder layers (model.visual.*)1quant_stage:
2 quant_modifiers:
3 QuantizationModifier:
4 ignore: ["lm_head", "re:model.visual.*"]
5 config_groups:
6 group_0:
7 weights:
8 num_bits: 8
9 type: float
10 strategy: tensor
11 dynamic: false
12 symmetric: true
13 input_activations:
14 num_bits: 8
15 type: float
16 strategy: tensor
17 dynamic: false
18 symmetric: true
19 targets: ["Linear"]1export VLLM_ATTENTION_BACKEND=TORCH_SDPA
2
3vllm serve JongYeop/Qwen2.5-VL-3B-Instruct-FP8-W8A8-LM-Only \
4 --trust-remote-code \
5 --max-model-len 4096 \
6 --enforce-eager1from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
2from qwen_vl_utils import process_vision_info
3
4model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
5 "JongYeop/Qwen2.5-VL-3B-Instruct-FP8-W8A8-LM-Only",
6 torch_dtype="auto",
7 device_map="auto",
8)
9processor = AutoProcessor.from_pretrained("Qwen/Qwen2.5-VL-3B-Instruct")
10
11messages = [{"role": "user", "content": [
12 {"type": "image", "image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg"},
13 {"type": "text", "text": "Describe this image in detail."},
14]}]
15
16text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
17image_inputs, video_inputs = process_vision_info(messages)
18inputs = processor(text=[text], images=image_inputs, videos=video_inputs, return_tensors="pt").to(model.device)
19
20output = model.generate(**inputs, max_new_tokens=256)
21result = processor.batch_decode(output[:, inputs["input_ids"].shape[1]:], skip_special_tokens=True)
22print(result[0])| Component | Version |
|---|---|
| llm-compressor | 0.7.1 |
| compressed-tensors | 0.11.0 |
| transformers | 4.55.2 |
| torch | 2.8.0+cu128 |
| GPU | NVIDIA RTX PRO 6000 (98GB) |