Built with Qwen3-VL | Fine-tuning: 4-bit QLoRA | Framework: LLaMA-Factory | Languages: English, Japanese, Chinese
A multilingual vision-language model fine-tuned from Qwen/Qwen3-VL-8B-Instruct for disaster type recognition using 4-bit QLoRA on the xView2 dataset.
Model Description
This model specializes in identifying disaster types from satellite/aerial imagery. Through LoRA fine-tuning on 55,008 trilingual (English/Japanese/Chinese) disaster images, it learns to accurately classify various disaster types including fires, floods, hurricanes, earthquakes, tsunamis, and volcanic eruptions.
Key Capabilities
🔥 Fire/Wildfire Recognition - Identifies fire disasters from aerial imagery
🌊 Flood Detection - Recognizes flooding disasters from satellite/aerial images
🌀 Hurricane/Wind Damage - Detects wind disasters and hurricane impacts
🏚️ Earthquake Damage - Identifies earthquake-affected areas
1from llamafactory.chat import ChatModel
23# Initialize model with LoRA adapter4chat_model = ChatModel(args={5"model_name_or_path":"Qwen/Qwen3-VL-8B-Instruct",6"adapter_name_or_path":"WayBob/Qwen3VL-8B-QLora-4bit-xView2-Disaster-Recognition",7"template":"qwen3_vl_nothink",8"quantization_bit":4,9"trust_remote_code":True,10"flash_attn":"fa2",# Optional: enable flash attention for faster inference11"infer_backend":"huggingface",12})1314# Ask about disaster type in image15messages =[{"role":"user","content":"<image>\nWhat type of disaster occurred in this image?"}]16responses = chat_model.chat(messages=messages, images=["disaster_image.png"])17print(responses[0].response_text)# Output: "Fire disaster"1819# Works in Japanese too20messages_ja =[{"role":"user","content":"<image>\nこの画像ではどのような種類の災害が発生しましたか?"}]21responses_ja = chat_model.chat(messages=messages_ja, images=["disaster_image.png"])22print(responses_ja[0].response_text)# Output: "火災災害"2324# And Chinese25messages_zh =[{"role":"user","content":"<image>\n这张图片中发生了什么类型的灾害?"}]26responses_zh = chat_model.chat(messages=messages_zh, images=["disaster_image.png"])27print(responses_zh[0].response_text)# Output: "火灾"
Hardware Requirements
Configuration
VRAM Required
4-bit Quantization (as used in training)
~10-12GB
Inference only
~8-10GB
Recommended GPU: RTX 3090 / 4090 / A100 or equivalent with 12GB+ VRAM
1method: qlora_4bit
2quantization: 4-bit (BitsAndBytes)
3lora_rank:84lora_alpha:165lora_target: all (all linear layers)
6lora_dropout:0.057learning_rate:1.0e-48batch_size: 4 per device × 2 accumulation = 8 effective
9epochs:3.010optimizer: AdamW
11lr_scheduler: cosine
12warmup_ratio:0.113precision: bfloat16
14image_max_pixels:262144
Training Duration: ~6.4 hours (23,190 seconds)
Memory Usage: ~10-12GB VRAM
Training Results
Metric
Value
Final Training Loss
0.0239
Training Throughput
7.12 samples/second
Total Training Steps
10,314
Training Duration
~6.4 hours
Training Loss Curve:
Training Loss
Model Comparison Examples
Comparison between base model and fine-tuned model on disaster type recognition tasks. The following examples demonstrate significant improvements in accuracy and response quality.
Example 1: Fire Disaster (Southern California)
Image: socal-fire_00001128_post_disaster.png
Fire Disaster Example
Question (English): "What type of disaster occurred in this image?"
Model
Response
Base Model
"Based on the visual evidence in the image, this appears to be the aftermath of a landslide or rockfall... The debris at the bottom is the key indicator..."
❌ INCORRECT - Misidentified as landslide (acceptable?)
Question (English): "What type of disaster occurred in this image?"
Model
Response
Base Model
"The image shows a green algae bloom, which is not a traditional disaster like a hurricane or earthquake, but it can be considered an environmental disaster..."
21 intermediate checkpoints saved every 500 steps:
checkpoint-500/ through checkpoint-10000/
checkpoint-10314/ (final checkpoint)
You can load any checkpoint by specifying its path in the adapter_name_or_path parameter.
Limitations
Language: Primarily trained on English/Japanese/Chinese; performance on other languages not guaranteed
Domain: Specialized for post-disaster satellite/aerial imagery; may not work on ground-level photos
Disaster Type Coverage: Some disaster types may have limited training samples, affecting recognition accuracy
Quantization: Designed for 4-bit quantization; full precision inference not tested
Geographic Bias: Training data may not cover all geographic regions equally
Model Evaluation: Comprehensive evaluation is ongoing; performance metrics will be updated
Intended Use Cases
✅ Recommended:
Post-disaster satellite/aerial image analysis
Disaster type classification for emergency response
Automated disaster dataset annotation
Multilingual disaster recognition (EN/JA/ZH)
Research on disaster impact assessment
❌ Not Recommended:
Real-time disaster prediction (this is classification, not prediction)
Ground-level disaster assessment (trained on aerial imagery)
Medical emergency classification
Legal/insurance claim decisions without human verification
Fine-grained damage severity assessment (binary disaster type only)
Ethical Considerations
Responsible Use
Human Oversight Required: This model should augment, not replace, human disaster assessment
Verification Needed: All classifications should be verified by disaster response professionals
Not for Sole Decision-Making: Do not use as the only basis for resource allocation or policy decisions
Privacy: Be mindful of privacy when processing imagery that may contain identifiable information
Bias Awareness: Model performance may vary across geographic regions and disaster contexts
Humanitarian Applications
This model is intended to support humanitarian efforts and disaster response. We encourage:
Open collaboration with disaster response organizations
Responsible sharing of insights with affected communities
Transparent communication of model limitations
Continuous improvement based on real-world feedback
Citation
bibtex
1@misc{qwen3vl-8b-qlora-xview2-disaster,
2 author = {WayBob},
3 title = {Qwen3VL-8B QLora 4-bit xView2 Disaster Recognition},
4 year = {2025},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/WayBob/Qwen3VL-8B-QLora-4bit-xView2-Disaster-Recognition}
7}
89@misc{disaster-recognition-dataset,
10 title={Disaster Recognition RemoteSense Dataset (EN/CN/JA)},
11 author={WayBob},
12 year={2025},
13 publisher={HuggingFace},
14 url={https://huggingface.co/datasets/WayBob/Disaster_Recognition_RemoteSense_EN_CN_JA}
15}
1617@inproceedings{xview2,
18 title={xBD: A Dataset for Assessing Building Damage from Satellite Imagery},
19 author={Gupta, Ritwik and Hosfelt, Richard and Sajeev, Sandra and Patel, Nirav and Goodman, Bryce and Doshi, Jigar and Heim, Eric and Choset, Howie and Gaston, Matthew},
20 booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops},
21 year={2019}
22}
This model is licensed under Creative Commons Attribution 4.0 International (CC-BY-4.0).
Key License Terms
Share: You can copy and redistribute the material in any medium or format for any purpose, even commercially
Adapt: You can remix, transform, and build upon the material for any purpose, even commercially
Attribution: You must give appropriate credit, provide a link to the license, and indicate if changes were made
No Additional Restrictions: You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits
Issues: Please report issues or suggestions through HuggingFace discussions
Disclaimer: This model is provided for research and humanitarian purposes. Always verify model outputs with domain experts before making critical decisions based on disaster classifications.