---
title: MechVL-4B-SFT
canonical_url: "https://www.modelscope.cn/models/xiaofengalg/MechVL-4B-SFT"
md_url: "https://www.modelscope.cn/models/xiaofengalg/MechVL-4B-SFT.md"
repository: xiaofengalg/MechVL-4B-SFT
last_updated: 2026-06-26
license: apache-2.0
pipeline_tag: visual-question-answering
tasks:
  - visual-question-answering
model_type:
  - qwen3_vl
architectures:
  - Qwen3VLForConditionalGeneration
base_model:
  - Qwen/Qwen3-VL-4B-Instruct
base_model_relation: finetune
parameters: 4.4B
tensor_type:
  - BF16
library_name:
  - pytorch
  - safetensors
language:
  - zh
  - en
downloads: 166
stars: 1
tags:
  - multimodal
  - vision-language
  - mechanical-drawing
  - vqa
  - mechvqa
---

# MechVL-4B-SFT

> MechVL-4B-SFT - xiaofengalg 在 ModelScope 开源的模型。The SFT checkpoint of MechVL — the domain-specialized multimodal model for mechanical engineering drawing understanding, introduced in:

xiaofengalg/MechVL-4B-SFT 是 ModelScope 魔搭社区上的 4.4B 参数visual-question-answering模型，采用 apache-2.0 许可，基于 Qwen/Qwen3-VL-4B-Instruct 构建。

- **Repository**: xiaofengalg/MechVL-4B-SFT
- **License**: apache-2.0
- **Tasks**: visual-question-answering
- **Parameters**: 4.4B
- **Base model**: Qwen/Qwen3-VL-4B-Instruct
- **Tags**: multimodal, vision-language, mechanical-drawing, vqa, mechvqa
- **Downloads**: 166
- **Stars**: 1
- **Last updated**: 2026-06-26

Source: https://www.modelscope.cn/models/xiaofengalg/MechVL-4B-SFT

---

# MechVL-4B-SFT

The **SFT checkpoint** of **MechVL** — the domain-specialized multimodal model for mechanical engineering drawing understanding, introduced in:

> **MechVQA: Benchmarking and Enhancing Multimodal LLMs on Comprehensive Mechanical Drawing Understanding** (ICML 2026)

[![arXiv](https://img.shields.io/badge/arXiv-2605.30794-b31b1b.svg)](https://arxiv.org/abs/2605.30794)
[![GitHub](https://img.shields.io/badge/Code-GitHub-181717.svg)](https://github.com/xiaofengShi/MechVQA)

## Model description

MechVL-4B-SFT is initialized from `Qwen3-VL-4B-Instruct` and trained with **full-parameter SFT** on the LLM module (vision encoder & projection frozen) over the MechVQA training split. It serves as the **reference policy (π_ref)** for the subsequent RL stage.

| | |
|---|---|
| Base model | Qwen3-VL-4B-Instruct |
| Architecture | Qwen3VLForConditionalGeneration |
| Stage | 1 / 2 — SFT (→ RL) |
| MechVQA Total | **76.36** |
| RL checkpoint | [xiaofengalg/MechVL-4B-RL](https://modelscope.cn/models/xiaofengalg/MechVL-4B-RL) |

## Usage (ModelScope)

```python
import torch
from modelscope import AutoModelForCausalLM, AutoProcessor

model = AutoModelForCausalLM.from_pretrained(
    "xiaofengalg/MechVL-4B-SFT", torch_dtype=torch.bfloat16, device_map="auto"
)
processor = AutoProcessor.from_pretrained("xiaofengalg/MechVL-4B-SFT")

messages = [{"role": "user", "content": [
    {"type": "image", "image": "path/to/drawing.png"},
    {"type": "text", "text": "图纸中标注的零件总长度是多少？"},
]}]
inputs = processor.apply_chat_template(
    messages, add_generation_prompt=True, tokenize=True,
    return_dict=True, return_tensors="pt",
).to(model.device)
out = model.generate(**inputs, max_new_tokens=1024)
print(processor.decode(out[0], skip_special_tokens=True))
```

Also available on [HuggingFace](https://huggingface.co/MonteXiaofeng/MechVL-4B-SFT). For batch vLLM inference, see [`scripts/batch_infer.py`](https://github.com/xiaofengShi/MechVQA/blob/main/scripts/batch_infer.py).

## Training

Full-parameter SFT on the LLM module (vision tower frozen) over the MechVQA training split. See [§4.1 of the paper](https://arxiv.org/abs/2605.30794).

## Citation

```bibtex
@misc{kou2026mechvqabenchmarkingenhancingmultimodal,
      title={MechVQA: Benchmarking and Enhancing Multimodal LLMs on Comprehensive Mechanical Drawing Understanding},
      author={Qian Kou and Xiaofeng Shi and Yulin Li and Xiaosong Qiu and Xinyang Wang and Hua Zhou and Cao Dongxing},
      year={2026},
      eprint={2605.30794},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2605.30794}
}
```

## License

Apache-2.0.
