Instructions to use DawnLiu/EAN-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DawnLiu/EAN-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="DawnLiu/EAN-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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("DawnLiu/EAN-8B") model = AutoModelForMultimodalLM.from_pretrained("DawnLiu/EAN-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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DawnLiu/EAN-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DawnLiu/EAN-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": "DawnLiu/EAN-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/DawnLiu/EAN-8B
- SGLang
How to use DawnLiu/EAN-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 "DawnLiu/EAN-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": "DawnLiu/EAN-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 "DawnLiu/EAN-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": "DawnLiu/EAN-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 DawnLiu/EAN-8B with Docker Model Runner:
docker model run hf.co/DawnLiu/EAN-8B
EAN-8B
EAN-8B is Qwen3-VL-8B-Instruct trained with EAN (Evidence-Ablated Negatives), the method of our NeurIPS 2026 paper Grounding Multimodal Reasoning with Evidence-Ablated Negatives.
Code: github.com/DawnLIU35/EAN | Models: EAN-3B · EAN-7B · EAN-8B
Method
RLVR rewards typically check only the final answer, not whether it came from the image or from language priors and dataset shortcuts. EAN masks the visual evidence a question needs, lets the current policy answer without it, and penalizes plausible wrong answers under the clean image. EAN-8B is trained with DAPO on ViRL39K. The GitHub repository has the full method, data pipeline, and training scripts.
Results
Accuracy (%) from Table 1 of the paper, with sampling at temperature 1.0. DAPO uses the same data and training recipe without EAN.
| Model | Geo3K | MathVista | MathVerse | We-Math | DynaMath | MathVision | MMK12 | MMMU-Pro | LogicVista | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|
| Qwen3-VL-8B-Instruct | 65.2 | 68.7 | 69.4 | 77.2 | 73.4 | 38.0 | 69.1 | 40.3 | 61.3 | 62.5 |
| DAPO | 74.6 | 71.9 | 84.0 | 83.9 | 76.9 | 56.7 | 84.1 | 52.3 | 62.4 | 71.9 |
| EAN-8B | 76.6 | 74.9 | 85.0 | 84.9 | 77.6 | 57.0 | 85.0 | 52.0 | 63.6 | 73.0 |
Usage
Requires transformers>=4.57, accelerate, and torchvision. Add the instruction below after the question, as in training. The default generation config holds the sampling settings we used for evaluation.
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "DawnLiu/EAN-8B"
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype="auto", device_map="auto")
processor = AutoProcessor.from_pretrained(model_id)
question = "Which object is the largest?"
prompt = (
f"{question}\n\n"
"You first think through the reasoning process as an internal monologue, enclosed within <think> </think> tags. Then, provide your final answer enclosed within \\boxed{}."
)
messages = [
{
"role": "user",
"content": [
{"type": "image", "image": "path/to/image.png"},
{"type": "text", "text": prompt},
],
}
]
inputs = processor.apply_chat_template(
messages, tokenize=True, add_generation_prompt=True, return_dict=True, return_tensors="pt"
).to(model.device)
output = model.generate(**inputs)
print(processor.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))
License
Apache 2.0, the same as Qwen3-VL-8B-Instruct. Relative to the base model, the weights were changed by RL training with EAN, generation_config.json sets our evaluation sampling defaults, and the other configuration, tokenizer, and processor files were re-saved (with dtype set to bfloat16 in config.json).
- Downloads last month
- -
Model tree for DawnLiu/EAN-8B
Base model
Qwen/Qwen3-VL-8B-Instruct