Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
autonomous-driving
vision-language-action
trajectory-planning
multimodal
qwen3.5
conversational
Instructions to use zwc2003/DriveMA-2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zwc2003/DriveMA-2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="zwc2003/DriveMA-2B") 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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("zwc2003/DriveMA-2B") model = AutoModelForMultimodalLM.from_pretrained("zwc2003/DriveMA-2B", device_map="auto") 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 zwc2003/DriveMA-2B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zwc2003/DriveMA-2B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "zwc2003/DriveMA-2B", "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/zwc2003/DriveMA-2B
- SGLang
How to use zwc2003/DriveMA-2B 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 "zwc2003/DriveMA-2B" \ --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": "zwc2003/DriveMA-2B", "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 "zwc2003/DriveMA-2B" \ --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": "zwc2003/DriveMA-2B", "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 zwc2003/DriveMA-2B with Docker Model Runner:
docker model run hf.co/zwc2003/DriveMA-2B
File size: 3,549 Bytes
de7d89b 96c868d de7d89b 96c868d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | ---
license: apache-2.0
library_name: transformers
pipeline_tag: image-text-to-text
language:
- en
base_model: Qwen/Qwen3.5-2B
datasets:
- zwc2003/DriveMA_Datasets
tags:
- autonomous-driving
- vision-language-action
- trajectory-planning
- multimodal
- qwen3.5
- "arxiv:2605.31271"
---
# DriveMA-2B
DriveMA-2B is the official 2B checkpoint accompanying
**[DriveMA: Driving Vision-Language-Action Models with Verifiable Meta-Actions](https://huggingface.co/papers/2605.31271)**.
It is fine-tuned from [Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B)
using the DriveMA three-stage pipeline: action-centric pretraining,
action-conditioned trajectory supervised fine-tuning, and turn-level
reinforcement learning.
DriveMA formulates driving planning as a two-turn generation process. The first
turn predicts a compact, interpretable meta-action from multi-view observations
and vehicle state. The second turn generates future waypoints conditioned on
that meta-action.
## Resources
- **Paper:** [Hugging Face Papers](https://huggingface.co/papers/2605.31271) · [arXiv:2605.31271](https://arxiv.org/abs/2605.31271)
- **Code:** [Tsinghua-MARS-Lab/DriveMA](https://github.com/Tsinghua-MARS-Lab/DriveMA)
- **Dataset annotations:** [zwc2003/DriveMA_Datasets](https://huggingface.co/datasets/zwc2003/DriveMA_Datasets)
- **Base model:** [Qwen/Qwen3.5-2B](https://huggingface.co/Qwen/Qwen3.5-2B)
## Loading
DriveMA-2B uses the same model architecture, processor, and standard loading
interface as Qwen3.5-2B:
```python
from transformers import AutoModelForMultimodalLM, AutoProcessor
model_id = "zwc2003/DriveMA-2B"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
)
```
For general multimodal inference, follow the
[Qwen3.5-2B usage instructions](https://huggingface.co/Qwen/Qwen3.5-2B).
To reproduce the model's driving-planning behavior, start from the
[official DriveMA repository](https://github.com/Tsinghua-MARS-Lab/DriveMA)
and use its
[inference scripts and prompt templates](https://github.com/Tsinghua-MARS-Lab/DriveMA/tree/main/tools/infer_scripts),
which implement the expected multi-view inputs, vehicle-state fields, two-turn
interaction, and output format.
## Results
On the Waymo Open Dataset vision-based end-to-end planning benchmark, the paper
reports the following results for DriveMA-2B:
| RFS Overall ↑ | RFS Spotlight ↑ | ADE@5s ↓ | ADE@3s ↓ |
|---:|---:|---:|---:|
| 8.060 | 7.251 | 2.616 | 1.154 |
See the paper and code repository for the full evaluation protocol,
comparisons, and ablations.
## Intended Use and Limitations
DriveMA-2B is intended for research on vision-language-action modeling and
end-to-end autonomous-driving planning. The released dataset repository
contains annotations; users must obtain the corresponding source image/video
assets under their original licenses and update local paths as described in the
code repository.
This model is not validated for deployment in safety-critical systems and
should not be used to control a real vehicle without independent safety
validation, system-level safeguards, and compliance with applicable laws and
regulations.
## Citation
```bibtex
@article{zheng2026drivema,
title={DriveMA: Driving Vision-Language-Action Models with Verifiable Meta-Actions},
author={Zheng, Weicheng and Huang, Yixin and Sun, Qiao and Li, Derun and Zhao, Hang},
journal={arXiv preprint arXiv:2605.31271},
year={2026}
}
```
|