Image-Text-to-Text
Transformers
Safetensors
English
Chinese
qwen3_vl
multimodal
hallucination-detection
hallucination-classification
hallucination-diagnosis
mllm
qwen3-vl
conversational
Instructions to use wkinglin/HalluScope-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wkinglin/HalluScope-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="wkinglin/HalluScope-8B") 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("wkinglin/HalluScope-8B") model = AutoModelForMultimodalLM.from_pretrained("wkinglin/HalluScope-8B", 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 wkinglin/HalluScope-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wkinglin/HalluScope-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wkinglin/HalluScope-8B", "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/wkinglin/HalluScope-8B
- SGLang
How to use wkinglin/HalluScope-8B 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 "wkinglin/HalluScope-8B" \ --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": "wkinglin/HalluScope-8B", "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 "wkinglin/HalluScope-8B" \ --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": "wkinglin/HalluScope-8B", "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 wkinglin/HalluScope-8B with Docker Model Runner:
docker model run hf.co/wkinglin/HalluScope-8B
Add paper and GitHub repository links to model card
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
base_model: Qwen/Qwen3-VL-8B-Instruct
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
library_name: transformers
|
|
|
|
|
|
|
| 6 |
tags:
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
language:
|
| 14 |
-
- en
|
| 15 |
-
- zh
|
| 16 |
-
datasets:
|
| 17 |
-
- wkinglin/HalluScope-30K
|
| 18 |
---
|
| 19 |
|
| 20 |
# HalluScope-8B
|
|
@@ -25,6 +25,8 @@ model-generated response, it detects hallucinated spans, classifies each into
|
|
| 25 |
one of **12 fine-grained types**, and returns span-level annotations in a single
|
| 26 |
pass. It is the larger, higher-accuracy variant of the HalluScope family.
|
| 27 |
|
|
|
|
|
|
|
| 28 |
- **Base model:** Qwen3-VL-8B-Instruct
|
| 29 |
- **Training data:** [HalluScope-30K](https://huggingface.co/datasets/wkinglin/HalluScope-30K)
|
| 30 |
- **Task:** span-level hallucination detection + classification
|
|
@@ -65,7 +67,8 @@ messages = [{
|
|
| 65 |
"role": "user",
|
| 66 |
"content": [
|
| 67 |
{"type": "image", "image": Image.open("example.jpg")},
|
| 68 |
-
{"type": "text", "text": "Analyze the response and tag hallucinated spans:
|
|
|
|
| 69 |
],
|
| 70 |
}]
|
| 71 |
inputs = processor.apply_chat_template(
|
|
@@ -93,4 +96,4 @@ the OpenAI-compatible API.
|
|
| 93 |
booktitle = {Proceedings of the 34th ACM International Conference on Multimedia (MM '26)},
|
| 94 |
year = {2026}
|
| 95 |
}
|
| 96 |
-
```
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
base_model: Qwen/Qwen3-VL-8B-Instruct
|
| 3 |
+
datasets:
|
| 4 |
+
- wkinglin/HalluScope-30K
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
- zh
|
| 8 |
library_name: transformers
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
pipeline_tag: image-text-to-text
|
| 11 |
tags:
|
| 12 |
+
- multimodal
|
| 13 |
+
- hallucination-detection
|
| 14 |
+
- hallucination-classification
|
| 15 |
+
- hallucination-diagnosis
|
| 16 |
+
- mllm
|
| 17 |
+
- qwen3-vl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
# HalluScope-8B
|
|
|
|
| 25 |
one of **12 fine-grained types**, and returns span-level annotations in a single
|
| 26 |
pass. It is the larger, higher-accuracy variant of the HalluScope family.
|
| 27 |
|
| 28 |
+
- **Paper:** [HalluScope: Fine-grained Hallucination Diagnosis for Multimodal Large Language Models](https://huggingface.co/papers/2607.21105)
|
| 29 |
+
- **Code:** [GitHub Repository](https://github.com/wkinglin/HalluScope)
|
| 30 |
- **Base model:** Qwen3-VL-8B-Instruct
|
| 31 |
- **Training data:** [HalluScope-30K](https://huggingface.co/datasets/wkinglin/HalluScope-30K)
|
| 32 |
- **Task:** span-level hallucination detection + classification
|
|
|
|
| 67 |
"role": "user",
|
| 68 |
"content": [
|
| 69 |
{"type": "image", "image": Image.open("example.jpg")},
|
| 70 |
+
{"type": "text", "text": "Analyze the response and tag hallucinated spans:
|
| 71 |
+
<response to diagnose>"},
|
| 72 |
],
|
| 73 |
}]
|
| 74 |
inputs = processor.apply_chat_template(
|
|
|
|
| 96 |
booktitle = {Proceedings of the 34th ACM International Conference on Multimedia (MM '26)},
|
| 97 |
year = {2026}
|
| 98 |
}
|
| 99 |
+
```
|