Image-Text-to-Text
Transformers
Safetensors
English
qwen3_vl
vision-language
pruning
layer-pruning
model-compression
qwen3-vl
interlace
cvpr2026
multimodal
vlm
efficient-inference
triplet-pruning
conversational
Eval Results (legacy)
Instructions to use pmadinei/Interlace-Qwen3-VL-4B-20pc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pmadinei/Interlace-Qwen3-VL-4B-20pc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="pmadinei/Interlace-Qwen3-VL-4B-20pc") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("pmadinei/Interlace-Qwen3-VL-4B-20pc") model = AutoModelForImageTextToText.from_pretrained("pmadinei/Interlace-Qwen3-VL-4B-20pc") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use pmadinei/Interlace-Qwen3-VL-4B-20pc with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pmadinei/Interlace-Qwen3-VL-4B-20pc" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pmadinei/Interlace-Qwen3-VL-4B-20pc", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/pmadinei/Interlace-Qwen3-VL-4B-20pc
- SGLang
How to use pmadinei/Interlace-Qwen3-VL-4B-20pc with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "pmadinei/Interlace-Qwen3-VL-4B-20pc" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pmadinei/Interlace-Qwen3-VL-4B-20pc", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "pmadinei/Interlace-Qwen3-VL-4B-20pc" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pmadinei/Interlace-Qwen3-VL-4B-20pc", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use pmadinei/Interlace-Qwen3-VL-4B-20pc with Docker Model Runner:
docker model run hf.co/pmadinei/Interlace-Qwen3-VL-4B-20pc
✂️ Interlace-Qwen3-VL-4B-20pc
This model was produced by INTERLACE, a layer-pruning framework for Vision-Language Models. 20% of the transformer layers in Qwen/Qwen3-VL-4B-Instruct were removed using triplet-based similarity analysis, and the remaining model was fine-tuned on 1% of FineVision for a single epoch.
88.0% average relative performance retained | 20% layers dropped (7 of 36) | 29 layers remaining
📋 Model Details
| Property | Value |
|---|---|
| Base Model | Qwen/Qwen3-VL-4B-Instruct |
| Pruning Method | INTERLACE (triplet-based interleaved pruning) |
| Pruning Ratio | 20% (7 of 36 layers removed) |
| Remaining Layers | 29 |
| Hidden Size | 2560 |
| Fine-tuning Data | 1% of FineVision (~240K samples) |
| Fine-tuning Epochs | 1 |
🚀 Usage
from transformers import AutoModelForImageTextToText, AutoProcessor
model = AutoModelForImageTextToText.from_pretrained(
"pmadinei/Interlace-Qwen3-VL-4B-20pc",
dtype="auto",
device_map="auto",
attn_implementation="flash_attention_2",
)
processor = AutoProcessor.from_pretrained("Qwen/Qwen3-VL-4B-Instruct")
messages = [
{
"role": "user",
"content": [
{"type": "image", "image": "path/to/image.jpg"},
{"type": "text", "text": "Describe this image in detail."},
],
}
]
inputs = processor.apply_chat_template(
messages, tokenize=True, add_generation_prompt=True,
return_dict=True, return_tensors="pt",
).to(model.device)
output = model.generate(**inputs, max_new_tokens=512)
print(processor.decode(output[0], skip_special_tokens=True))
📊 Performance
Relative performance compared to the unpruned baseline (% of baseline score, Chain-of-Thought enabled):
| Category | Benchmark | Relative Perf. |
|---|---|---|
| Text/Chart | AI2D | 85.0% |
| Text/Chart | ChartQA | 89.3% |
| Text/Chart | OCRBench | 85.6% |
| Text/Chart | TextVQA | 92.3% |
| General VQA | MMBench | 83.5% |
| General VQA | POPE | 98.7% |
| General VQA | RealWorldQA | 90.2% |
| Perception | HRBench4K | 88.8% |
| Perception | HRBench8K | 87.3% |
| Perception | V-Star | 81.7% |
| Inst & Sci | MIABench | 87.0% |
| Inst & Sci | ScienceQA | 86.2% |
| Overall Average | 88.0% |
🤗 All INTERLACE Models
| Model | Drop % | Rel. Perf. |
|---|---|---|
| Interlace-Qwen3-VL-8B-10pc | 10% | 94.0% |
| Interlace-Qwen3-VL-8B-15pc | 15% | 92.1% |
| Interlace-Qwen3-VL-8B-20pc | 20% | 86.9% |
| Interlace-Qwen3-VL-8B-25pc | 25% | 86.1% |
| Interlace-Qwen3-VL-4B-10pc | 10% | 93.9% |
| Interlace-Qwen3-VL-4B-15pc | 15% | 91.9% |
| Interlace-Qwen3-VL-4B-20pc | 20% | 88.0% |
| Interlace-Qwen3-VL-4B-25pc | 25% | 81.7% |
📝 Citation
@inproceedings{madinei2026interlace,
title={Interlace: Interleaved layer pruning and efficient adaptation in large vision-language models},
author={Madinei, Parsa and Solgi, Ryan and Wen, Ziqi and Skaza, Jonathan and Eckstein, Miguel and Pedarsani, Ramtin},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={2947--2956},
year={2026}
}
- Downloads last month
- 18
Model tree for pmadinei/Interlace-Qwen3-VL-4B-20pc
Base model
Qwen/Qwen3-VL-4B-InstructDataset used to train pmadinei/Interlace-Qwen3-VL-4B-20pc
Viewer • Updated • 24.2M • 175k • 489
Collection including pmadinei/Interlace-Qwen3-VL-4B-20pc
Evaluation results
- Relative Performance (avg)self-reported88.000