Downloads · 30 days
20
8% of all-time downloads
JEILDLWLRMA/Qwen3VL-8B-Instruct-FP8
Qwen3VL-8B-Instruct-FP8 is a image-to-text model from JEILDLWLRMA. Use it when you need a caption or text from an image. The card lists the license as apache-2.0.
This is an FP8 quantized version of Qwen3-VL-8B-Instruct, a powerful vision-language model for multimodal understanding and generation tasks.
Downloads · 30 days
20
8% of all-time downloads
All-time downloads
263
Public
Parameters
8.8B
10.6 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors10.6 GB · 100%
How the weights are stored.
F8_E4M36.9B · 79%
From the Hugging Face model README
This is an FP8 quantized version of Qwen3-VL-8B-Instruct, a powerful vision-language model for multimodal understanding and generation tasks.
The following modules were excluded from quantization to maintain model quality:
lm_head (language model head)model.visual.*).*mlp.gate$)pip install transformers torch qwen-vl-utils pillow
from transformers import AutoProcessor, Qwen3VLForConditionalGeneration
from PIL import Image
import requests
# Load model and processor
model = Qwen3VLForConditionalGeneration.from_pretrained(
"JEILDLWLRMA/Qwen3VL-8B-Instruct-FP8",
torch_dtype="auto",
device_map="auto"
)
processor = AutoProcessor.from_pretrained("JEILDLWLRMA/Qwen3VL-8B-Instruct-FP8")
# Prepare inputs
image_url = "http://images.cocodataset.org/train2017/000000231895.jpg"
image = Image.open(requests.get(image_url, stream=True).raw)
messages = [
{
"role": "user",
"content": [
{"type": "image", "image": image_url},
{"type": "text", "text": "What does the image show?"},
],
}
]
# Process and generate
prompt = processor.apply_chat_template(messages, add_generation_prompt=True)
inputs = processor(
text=[prompt],
images=[image],
padding=False,
return_tensors="pt",
).to(model.device)
output = model.generate(**inputs, max_new_tokens=100, temperature=0.7)
generated_text = processor.decode(output[0], skip_special_tokens=True)
print(generated_text)
For faster inference, you can use this model with vLLM:
from vllm import LLM
from vllm.multimodal.utils import encode_image_base64
from PIL import Image
import base64
from io import BytesIO
# Initialize vLLM engine
llm = LLM(
model="JEILDLWLRMA/Qwen3VL-8B-Instruct-FP8",
max_model_len=8192,
limit_mm_per_prompt={"image": 1, "video": 0},
trust_remote_code=True,
)
# Prepare image
image = Image.open("path/to/image.jpg")
buffered = BytesIO()
image.save(buffered, format="PNG")
img_str = base64.b64encode(buffered.getvalue()).decode()
# Generate
messages = [
{
"role": "user",
"content": [
{"type": "image", "image": f"data:image/png;base64,{img_str}"},
{"type": "text", "text": "Describe this image."},
],
}
]
outputs = llm.chat(messages, max_tokens=100)
print(outputs[0].outputs[0].text)
This quantized model maintains high quality for vision-language tasks while significantly reducing memory usage. The SmoothQuant technique helps preserve model accuracy during quantization.
If you use this model, please cite the original Qwen3-VL model:
@article{qwen3vl,
title={Qwen3-VL: A Versatile Vision-Language Model},
author={Qwen Team},
journal={arXiv preprint},
year={2024}
}
This model inherits the license from the base model Qwen/Qwen3-VL-8B-Instruct. Please refer to the original model's license for details.