https://www.doi.org/10.1007/s10694-026-02000-3 Existing vision-based methods suffer from high false alarm rates in urban flame detection. Applying Multimodal Large Language Models (MLLMs) for secondary filtering shows great potential in reducing false alarms, yet they have high inference latency and are prone to reasoning collapse on negative samples without explicit Chain-of-Thought (CoT) guidance. To overcome these challenges, this study proposed Flash-Cascade, the first sub-second MLLM-based firewall to leverage CoT to efficiently filter false alarms. We deconstructed the flame detection process into four logical stages (planning, observation, analysis, and judgment), which informed the…
Open-weight model · Visual question answering
Qwen2VL-2B-Instruct-fire
by Gaoqie gaoqie/Qwen2VL-2B-Instruct-fire
Qwen2VL-2B-Instruct-fire is an open-weight model for visual question answering from Gaoqie, released under Apache License 2.0. It has 2.2B parameters and a 32,768-token context. At 16-bit it needs about 5.3 GB of GPU memory, which fits on 1x MI300X from $1.85 an hour, at the lowest prices in the SAVRN Index. It draws 9 downloads a month.
https://doi.org/10.1007/s10694-026-02000-3 Existing vision-based methods suffer from high false alarm rates in urban flame detection.
Runs On
What it takes to serve Qwen2VL-2B-Instruct-fire (2.2B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.
| Precision | Weights | Memory needed | Cheapest setup | Per hour | Also fits |
|---|---|---|---|---|---|
| 16-bit | 4.4 GB | 5.3 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
| 8-bit | 2.2 GB | 2.7 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
| 4-bit | 1.1 GB | 1.3 GB | 1x MI300X (192 GB) Vultr |
$1.85 | 1x H100 $1.99 · 1x MI325X $2.00 |
Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 21, 2026.
Qwen2VL-2B-Instruct-fire on every accelerator the SAVRN Index prices, at every precision
Model Card
By Gaoqie, published under apache-2.0, revision ac03cef6c5ef.
https://doi.org/10.1007/s10694-026-02000-3 Existing vision-based methods suffer from high false alarm rates in urban flame detection. Applying Multimodal Large Language Models (MLLMs) for secondary filtering shows great potential in reducing false alarms, yet they have high inference latency and are prone to reasoning collapse on negative samples without explicit Chain-of-Thought (CoT) guidance. To overcome these challenges, this study proposed Flash-Cascade, the first sub-second MLLM-based firewall to leverage CoT to efficiently filter false alarms. We deconstructed the flame detection process into four logical stages (planning, observation, analysis, and judgment), which informed the…
Read Gaoqie's full model card
Using Multimodal Large Language Models for False Alarm Reduction in Image-based Fire Detection
https://doi.org/10.1007/s10694-026-02000-3
Existing vision-based methods suffer from high false alarm rates in urban flame detection. Applying Multimodal Large Language Models (MLLMs) for secondary filtering shows great potential in reducing false alarms, yet they have high inference latency and are prone to reasoning collapse on negative samples without explicit Chain-of-Thought (CoT) guidance. To overcome these challenges, this study proposed Flash-Cascade, the first sub-second MLLM-based firewall to leverage CoT to efficiently filter false alarms. We deconstructed the flame detection process into four logical stages (planning, observation, analysis, and judgment), which informed the design of three switchable reasoning modes (Detailed, Quick, and Rapid) to achieve inference acceleration via CoT compression. We fine-tuned Qwen2-VL-7B-Instruct on a multi-grained instruction dataset via Low-Rank Adaptation. This process internalizes explicit reasoning logic into implicit parameter representations, enabling the model to maintain robust reasoning capability even without explicit CoT guidance. On our newly constructed benchmark incorporating real-world hard negatives, Flash-Cascade achieves an accuracy of 97.79% and an F1-score of 0.9767 in Rapid mode, outperforming the baseline by 61.63 percentage points (pp) and 0.5152, respectively. Furthermore, it outperforms the state-of-the-art object detector DEIMv2 by 14.64 pp in accuracy. The method exhibits exceptional sample efficiency, converging with only 600 samples and 2 epochs, and improves inference speed by 810% over standard CoT. This study will open a door for robust and efficient flame detection in high-interference scenarios.
1. Quick Start
-
Installation
For installation instructions, please refer to Qwen/Qwen2-VL-2B-Instruct.
-
Simple Inference Example
from transformers import Qwen2VLForConditionalGeneration, AutoTokenizer, AutoProcessor
from qwen_vl_utils import process_vision_info
model_dir = "" # */gaoqie/Qwen2VL-2B-Instruct-fire
device = "cuda:0"
# default: Load the model on the available device(s)
model = Qwen2VLForConditionalGeneration.from_pretrained(
model_dir, torch_dtype="bfloat16", device_map=device
)
# default processer
processor = AutoProcessor.from_pretrained(model_dir)
# The default range for the number of visual tokens per image in the model is 4-16384. You can set min_pixels and max_pixels according to your needs, such as a token count range of 256-1280, to balance speed and memory usage.
# min_pixels = 256*28*28
# max_pixels = 1280*28*28
# processor = AutoProcessor.from_pretrained(model_dir, min_pixels=min_pixels, max_pixels=max_pixels)
def infer(img_path):
# 模式一
messages = [
{
"role": "user",
"content": [
{
"type": "image",
"image": img_path,
},
{
"type": "text",
"text": "图像中是否存在火焰?详细分析。"
}
],
}
]
# 模式二
messages = [
{
"role": "user",
"content": [
{
"type": "image",
"image": img_path,
},
{
"type": "text",
"text": "图像中是否存在火焰?简单回答。"
}
],
}
]
# 模式三
messages = [
{
"role": "user",
"content": [
{
"type": "image",
"image": img_path,
},
{
"type": "text",
"text": "图像中是否存在火焰?快速回答。"
}
],
}
]
# Preparation for inference
text = processor.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(
text=[text],
images=image_inputs,
videos=video_inputs,
padding=True,
return_tensors="pt",
)
inputs = inputs.to(device)
# Inference: Generation of the output
generated_ids = model.generate(**inputs, max_new_tokens=500)
# print(processor.batch_decode(
# generated_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False
# ))
generated_ids_trimmed = [
out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
)
output_text = output_text[0]
# print(output_text)
image_path = ""
infer(image_path)
2. License
This code repository is licensed under the Apache license 2.0.
3. Citation
Configuration
- Architecture
- Qwen2VLForConditionalGeneration
- Context length (tokens)
- 32,768
- Layers
- 28
- Hidden size
- 1,536
- Feed-forward size
- 8,960
- Attention heads
- 12
- Key/value heads
- 2
- Vocabulary size
- 151,936
- Sliding window (tokens)
- 32,768
- RoPE base
- 1e+06
- Stored precision
- bfloat16
- Model type
- qwen2_vl
Identity and Version
- Repository
- gaoqie/Qwen2VL-2B-Instruct-fire
- Publisher
- Gaoqie
- Task
- Visual question answering
- Modality
- Other
- Library
- Not stated by the source
- Parameters
- 2.2B parameters
- Languages
- zh
- Revision
- ac03cef6c5ef2d7503ee7c999d7efabc71c9539b
- First published
- 2026-02-04
- Last updated
- 2026-09-21
Files and Weights
13 files, 4.4 GB in total. The weights are 1 file totalling 4.4 GB in safetensors.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| model.safetensors | Weights | 4.4 GB | 5e325c02ecce |
| added_tokens.json | Configuration | 392 B | — |
| chat_template.json | Configuration | 1.0 KB | — |
| config.json | Configuration | 1.2 KB | — |
| generation_config.json | Configuration | 215 B | — |
| preprocessor_config.json | Configuration | 347 B | — |
| special_tokens_map.json | Configuration | 613 B | — |
| README.md | Documentation | 5.5 KB | — |
| .gitattributes | Repository | 1.6 KB | — |
| merges.txt | Tokenizer | 1.7 MB | — |
| tokenizer.json | Tokenizer | 11.4 MB | 091aa7594dc2 |
| tokenizer_config.json | Tokenizer | 4.3 KB | — |
| vocab.json | Tokenizer | 2.8 MB | — |
License and Download
- License
- apache-2.0
- Access
- Open weights, no gate
- Download size
- 4.4 GB
Released by Gaoqie through its official repository on Hugging Face. Read the license.
Built From
- Derived from Qwen/Qwen2-VL-2B-Instruct
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 4.4 GB |
| 16-bit | 4.4 GB |
| 8-bit | 2.2 GB |
| 4-bit | 1.1 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About Qwen2VL-2B-Instruct-fire
How much GPU memory does Qwen2VL-2B-Instruct-fire need?
About 5.3 GB at 16-bit and 1.3 GB at 4-bit: the weights (2.2B parameters) plus a working margin. A long context needs more.
What is the cheapest GPU to run Qwen2VL-2B-Instruct-fire on?
At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.
Can I use Qwen2VL-2B-Instruct-fire commercially?
Yes. Qwen2VL-2B-Instruct-fire is released under Apache License 2.0. The Apache License 2.0 is a permissive open-source license. It permits commercial use, modification and redistribution. It requires keeping the license and copyright notices and any NOTICE file, stating significant changes, and it includes an express patent grant from contributors.
What is Qwen2VL-2B-Instruct-fire's context length?
32,768 tokens, from the maximum position embeddings in its published configuration.
Similar Models
https://doi.org/10.1007/s10694-026-02000-3 Existing vision-based methods suffer from high false alarm rates in urban flame detection. Applying Multimodal Large Language Models (MLLMs) for secondary filtering shows great potential in reducing false alarms, yet they have high inference latency and are prone to reasoning collapse on negative samples without explicit Chain-of-Thought (CoT) guidance. To overcome these challenges, this study proposed Flash-Cascade, the first sub-second MLLM-based firewall to leverage CoT to efficiently filter false alarms. We deconstructed the flame detection process into four logical stages (planning, observation, analysis, and judgment), which informed the…
https://doi.org/10.1007/s10694-026-02000-3 Existing vision-based methods suffer from high false alarm rates in urban flame detection. Applying Multimodal Large Language Models (MLLMs) for secondary filtering shows great potential in reducing false alarms, yet they have high inference latency and are prone to reasoning collapse on negative samples without explicit Chain-of-Thought (CoT) guidance. To overcome these challenges, this study proposed Flash-Cascade, the first sub-second MLLM-based firewall to leverage CoT to efficiently filter false alarms. We deconstructed the flame detection process into four logical stages (planning, observation, analysis, and judgment), which informed the…
https://doi.org/10.1007/s10694-026-02000-3 Existing vision-based methods suffer from high false alarm rates in urban flame detection. Applying Multimodal Large Language Models (MLLMs) for secondary filtering shows great potential in reducing false alarms, yet they have high inference latency and are prone to reasoning collapse on negative samples without explicit Chain-of-Thought (CoT) guidance. To overcome these challenges, this study proposed Flash-Cascade, the first sub-second MLLM-based firewall to leverage CoT to efficiently filter false alarms. We deconstructed the flame detection process into four logical stages (planning, observation, analysis, and judgment), which informed the…
https://doi.org/10.1007/s10694-026-02000-3 Existing vision-based methods suffer from high false alarm rates in urban flame detection. Applying Multimodal Large Language Models (MLLMs) for secondary filtering shows great potential in reducing false alarms, yet they have high inference latency and are prone to reasoning collapse on negative samples without explicit Chain-of-Thought (CoT) guidance. To overcome these challenges, this study proposed Flash-Cascade, the first sub-second MLLM-based firewall to leverage CoT to efficiently filter false alarms. We deconstructed the flame detection process into four logical stages (planning, observation, analysis, and judgment), which informed the…