Downloads ยท 30 days
20
12% of all-time downloads
msaid1976/Qwen3-VL-2B-FineTuned-Vision-Assistant
Qwen3-VL-2B-FineTuned-Vision-Assistant is a image-text-to-text model from msaid1976. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads ยท 30 days
20
12% of all-time downloads
All-time downloads
170
Public
Parameters
2.1B
4.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors4.3 GB ยท 100%
From the Hugging Face model README
Fine-tuned vision-language model for blind navigation assistance
Quick Start โข Performance โข Usage โข Training โข Citation
</div>Fine-tuned Qwen3-VL-2B-Instruct for vision-based navigation assistance for blind and visually impaired users. The model generates comprehensive, navigation-focused scene descriptions (25โ60 words) optimized for text-to-speech delivery during active navigation. Developed as a Master's thesis project at Asia Pacific University.
Key Results:
Author: Mohammad Mohamed Said Aly Amin
Supervisor: Dr. Raheem Mafas
Institution: Asia Pacific University of Technology and Innovation
Program: Master's in Data Science & Business Analytics
The model produces detailed, actionable descriptions (25โ60 words) covering spatial relationships, obstacles, safety cues, and environmental context โ optimized for blind navigation via text-to-speech.
| Capability | Description | Example Query |
|---|---|---|
| ๐ Scene Description | Comprehensive environment narratives | "Describe this scene for a blind person." |
| ๐ฏ Spatial Reasoning | Object relationships & positioning | "What obstacles should I be aware of?" |
| ๐งญ Navigation Context | Pathways, directions & safety cues | "Describe the navigation context of this scene." |
| ๐ Text Recognition | Signs, labels & written information | "What text or signs can you see?" |
| Metric | Fine-tuned | Baseline | Improvement |
|---|---|---|---|
| BLEU | 0.164 | 0.008 | +2,031% ๐ |
| ROUGE-1 | 39.30 | 19.37 | +103% |
| ROUGE-2 | 17.74 | 3.60 | +393% |
| ROUGE-L | 30.92 | 12.48 | +148% |
| METEOR | 0.335 | 0.211 | +59% |
| BERTScore F1 | 82.0 | 73.4 | +12% |
| Avg Response Length | 36.2 words | 92.8 words | โ61% (optimal) |
| Length Ratio (vs ref) | 0.98 | 2.52 | Near-perfect โ |
| Performance Grade | Aโ | D | +4 levels ๐ |
Statistical Validation: Paired t-test: t = 4.31, p = 7.88 ร 10โปโต (p << 0.05, n = 50)
| Epoch | Training Loss | Validation Loss | Train-Val Gap |
|---|---|---|---|
| 1 | 1.275 | 1.254 | 0.021 |
| 2 | 1.208 | 1.208 | 0.000 |
| 3 | 1.091 | 1.195 | 0.096 |
| 4 | 0.952 | 1.203 | 0.251 |
| 5 | 0.935 | 1.217 | 0.282 |
pip install transformers torch pillow accelerate unsloth
from transformers import Qwen2_5_VLForConditionalGeneration, AutoProcessor
from PIL import Image
import torch
# Load model
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
"msaid1976/Qwen3-VL-2B-Navigation-FineTuned",
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
processor = AutoProcessor.from_pretrained(
"msaid1976/Qwen3-VL-2B-Navigation-FineTuned",
trust_remote_code=True
)
# Prepare input
image = Image.open("scene.jpg")
messages = [{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "Describe this scene for a blind person."}
]
}]
# Generate
prompt = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
inputs = processor(text=prompt, images=[image], return_tensors="pt")
inputs = {k: v.to("cuda") for k, v in inputs.items()}
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=200,
do_sample=False,
pad_token_id=processor.tokenizer.eos_token_id,
eos_token_id=processor.tokenizer.eos_token_id
)
response = processor.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
print(response)
messages = [{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "Describe this scene for a blind person."}
]
}]
# Output: "A busy intersection with pedestrians waiting at the corner of a crosswalk.
# Traffic lights control vehicle movement and there are several cars stopped in
# adjacent lanes. Buildings with retail stores line both sides of the street,
# with wide sidewalks leading in multiple directions."
messages = [{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "What safety concerns or obstacles should I be aware of?"}
]
}]
# Output: "There are several orange traffic cones placed along the sidewalk creating
# a narrow walking path, with construction barriers on the left side that you
# should stay away from for safety."
messages = [{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "Describe the navigation context of this scene for someone who is blind."}
]
}]
# Output: "A long corridor extending straight ahead with doorways on both the left
# and right sides. The hallway is well-lit from overhead lights and the floor
# appears clear and even. There are approximately four doors visible before
# the corridor turns."
messages = [{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "What text or signs can you see in this image?"}
]
}]
# Output: "The sign says 'EXIT' in red letters above the doorway on the right side."
# 8-bit quantization (reduces VRAM usage)
from transformers import BitsAndBytesConfig
quantization_config = BitsAndBytesConfig(load_in_8bit=True)
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
"msaid1976/Qwen3-VL-2B-Navigation-FineTuned",
quantization_config=quantization_config,
device_map="auto",
trust_remote_code=True
)
| Parameter | Value | Description |
|---|---|---|
| Base Model | Qwen3-VL-2B-Instruct | 2.16B total parameters |
| Framework | Unsloth | Optimized training framework |
| Method | LoRA | Low-Rank Adaptation |
| Quantization | 4-bit (QLoRA compatible) | Memory-efficient training |
| Trainable Params | ~34.9M (~1.6%) | LoRA adapters only |
| LoRA Rank (r) | 32 | Adapter dimension |
| LoRA Alpha | 64 | Scaling factor (ฮฑ/r = 2) |
| LoRA Dropout | 0.1 | Regularization |
| Target Modules | q, k, v, o, gate, up, down proj | Attention + MLP layers |
| Epochs | 5 | Full data passes |
| Batch Size | 2 (effective: 16) | With 8ร gradient accumulation |
| Learning Rate | 5 ร 10โปโต | AdamW 8-bit optimizer |
| LR Schedule | Cosine with warmup | 10% warmup ratio |
| Weight Decay | 0.01 | L2 regularization |
| Max Grad Norm | 0.1 | Gradient clipping |
| Max Seq Length | 4,096 tokens | Context window |
| Precision | FP16 | Mixed precision training |
| GPU | RTX 5070 Ti 16GB | Training hardware |
| Training Time | ~1h 46m | 3,295 steps |
| Peak VRAM | ~14.2GB | During training |
Size: 21,000 samples (17000 train / 4000 validation)
Average Response Length: 34 words (100% โฅ 25 words)
Format: Qwen3-VL native with embedded base64 images
Four-Stage Data Preparation Pipeline:
Sources (7 datasets):
| Use Case | GPU | RAM | Storage |
|---|---|---|---|
| Inference (FP16) | 6GB+ VRAM | 16GB | 8GB |
| Inference (8-bit) | 4GB+ VRAM | 8GB | 6GB |
| Training (QLoRA) | 16GB VRAM | 32GB | 50GB |
Recommended for Inference: RTX A2000+ or equivalent
โ ๏ธ This is an assistive tool, not a replacement for traditional navigation aids. Users should:
Primary:
Out of Scope:
This model serves as the primary navigation description generator within a multi-model assistive system:
@misc{amin2025qwen3vl_navigation,
author = {Amin, Mohammad Mohamed Said Aly},
title = {Qwen3-VL Navigation Assistant: Fine-tuned for Blind Navigation},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/msaid1976/Qwen3-VL-2B-Navigation-FineTuned}}
}
@mastersthesis{amin2025thesis,
author = {Amin, Mohammad Mohamed Said Aly},
title = {An Efficient Multi-Object Detection and Smart Navigation Using Vision Language Models for Visually Impaired},
school = {Asia Pacific University of Technology and Innovation},
year = {2025},
address = {Kuala Lumpur, Malaysia}
}
Supervision:
Technical:
Datasets:
Author: Mohammad Mohamed Said Aly Amin
Institution: Asia Pacific University of Technology and Innovation
Email : [email protected]
Issues: Model Discussions
Made with โค๏ธ for accessibility and inclusion
Empowering independence through AI-powered vision assistance
</div>