Image-Text-to-Text
Transformers
Safetensors
English
gemma4
aerial-vlm
drone
uav
vision-language-model
aerial-imagery
scene-understanding
visual-question-answering
visual-grounding
robotics
edge-ai
structured-output
open-weights
miril
conversational
Instructions to use MirilAI/Miril-DroneVLM-2B-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MirilAI/Miril-DroneVLM-2B-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="MirilAI/Miril-DroneVLM-2B-2") 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("MirilAI/Miril-DroneVLM-2B-2") model = AutoModelForMultimodalLM.from_pretrained("MirilAI/Miril-DroneVLM-2B-2", 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 MirilAI/Miril-DroneVLM-2B-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MirilAI/Miril-DroneVLM-2B-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MirilAI/Miril-DroneVLM-2B-2", "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/MirilAI/Miril-DroneVLM-2B-2
- SGLang
How to use MirilAI/Miril-DroneVLM-2B-2 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 "MirilAI/Miril-DroneVLM-2B-2" \ --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": "MirilAI/Miril-DroneVLM-2B-2", "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 "MirilAI/Miril-DroneVLM-2B-2" \ --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": "MirilAI/Miril-DroneVLM-2B-2", "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 MirilAI/Miril-DroneVLM-2B-2 with Docker Model Runner:
docker model run hf.co/MirilAI/Miril-DroneVLM-2B-2
Publish DroneVLM-2 release package and technical report
Browse files- README.md +11 -3
- technical_report.pdf +2 -2
README.md
CHANGED
|
@@ -472,7 +472,7 @@ These automated metrics are regression signals, not proof of physical-world safe
|
|
| 472 |
|
| 473 |
The methods report explains how detector annotations became image-question-JSON supervision, why the four response envelopes exist, how observed model failures became preference data, and how the evidence gate prevents partial evaluations from becoming release claims:
|
| 474 |
|
| 475 |
-
**[Miril-DroneVLM-2B-2:
|
| 476 |
|
| 477 |
The report treats data design as the central engineering contribution and clearly separates verified dataset properties from model-quality and operational-safety claims.
|
| 478 |
|
|
@@ -480,7 +480,7 @@ The report treats data design as the central engineering contribution and clearl
|
|
| 480 |
|
| 481 |
```bibtex
|
| 482 |
@techreport{sturges2026mirildrone2b2,
|
| 483 |
-
title = {Miril-DroneVLM-2B-2:
|
| 484 |
author = {Sturges, Stephan},
|
| 485 |
institution = {Miril.ai},
|
| 486 |
year = {2026},
|
|
@@ -504,7 +504,15 @@ Treat those measured deltas as authoritative. The CUDA 8-bit and 4-bit
|
|
| 504 |
packages use different bitsandbytes algorithms, so bit width alone does not
|
| 505 |
rank their multimodal fidelity.
|
| 506 |
|
| 507 |
-
The MLX 4-bit artifact remains available as a measured compact variant, not as an equivalent replacement for MLX 8-bit. On the complete balanced independent benchmark it preserves valid JSON at 100.0% after rounding but drops to 55.8% exact schema validity and 56.9% route accuracy, predominantly because pointing responses use `intent` where the contract requires `action`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 508 |
|
| 509 |
## WALDO Lineage
|
| 510 |
|
|
|
|
| 472 |
|
| 473 |
The methods report explains how detector annotations became image-question-JSON supervision, why the four response envelopes exist, how observed model failures became preference data, and how the evidence gate prevents partial evaluations from becoming release claims:
|
| 474 |
|
| 475 |
+
**[Miril-DroneVLM-2B-2: Turning Aerial Detector Labels into a Structured Vision-Language Interface](./technical_report.pdf)**
|
| 476 |
|
| 477 |
The report treats data design as the central engineering contribution and clearly separates verified dataset properties from model-quality and operational-safety claims.
|
| 478 |
|
|
|
|
| 480 |
|
| 481 |
```bibtex
|
| 482 |
@techreport{sturges2026mirildrone2b2,
|
| 483 |
+
title = {Miril-DroneVLM-2B-2: Turning Aerial Detector Labels into a Structured Vision-Language Interface},
|
| 484 |
author = {Sturges, Stephan},
|
| 485 |
institution = {Miril.ai},
|
| 486 |
year = {2026},
|
|
|
|
| 504 |
packages use different bitsandbytes algorithms, so bit width alone does not
|
| 505 |
rank their multimodal fidelity.
|
| 506 |
|
| 507 |
+
The MLX 4-bit artifact remains available as a measured compact variant, not as an equivalent replacement for MLX 8-bit. On the complete balanced independent benchmark it preserves valid JSON at 100.0% after rounding but drops to 55.8% exact schema validity and 56.9% route accuracy, predominantly because pointing responses use `intent` where the contract requires `action`.
|
| 508 |
+
|
| 509 |
+
The export tensor audit passes. All expected key/value-owner and vision `k_norm` tensors are present; later language layers intentionally reuse shared key/value states. The leading hypothesis is therefore precision loss from uniform affine 4-bit conversion of token embeddings and linear modules, not a missing tensor. The variant card contains the full evidence and operational warning.
|
| 510 |
+
|
| 511 |
+
## Next Experiments
|
| 512 |
+
|
| 513 |
+
- **Mixed-bit MLX:** keep token embeddings, the language head, and selected projections at 8-bit, then require recovery of the `action` key, exact route, and exact schema on the same benchmark cases.
|
| 514 |
+
- **Gemma 4 E4B:** repeat the four-schema training and evaluation protocol at the larger effective model scale while holding the text corpus, grouped splits, and release gates fixed.
|
| 515 |
+
- **Paired spoken input:** replace a deterministic subset of typed questions with ElevenLabs-generated speech while preserving the image and JSON target. Split-isolated synthesis voices, varied voice settings, local acoustic augmentation, held-out voices, and later human recordings will test whether audio training closes the observed spoken-input gap without degrading typed requests.
|
| 516 |
|
| 517 |
## WALDO Lineage
|
| 518 |
|
technical_report.pdf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4b3e52dfefae8f76c1301a19d877f13262b7aa1d3db8d5b29fde7be1e0d0d12
|
| 3 |
+
size 1212612
|