Instructions to use Allenda/VIEScore2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Allenda/VIEScore2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Allenda/VIEScore2") 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("Allenda/VIEScore2") model = AutoModelForMultimodalLM.from_pretrained("Allenda/VIEScore2", 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 Allenda/VIEScore2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Allenda/VIEScore2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Allenda/VIEScore2", "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/Allenda/VIEScore2
- SGLang
How to use Allenda/VIEScore2 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 "Allenda/VIEScore2" \ --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": "Allenda/VIEScore2", "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 "Allenda/VIEScore2" \ --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": "Allenda/VIEScore2", "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 Allenda/VIEScore2 with Docker Model Runner:
docker model run hf.co/Allenda/VIEScore2
VIEScore2
A unified evaluator for generated and edited images. In a single autoregressive pass the model emits:
- a quality score — dual-axis perceptual quality (
pq:) and semantic consistency (sc:), - a defect grid — sparse cells on a text-native 16×16 grid localizing
problems, optionally split into
artifact:/misalign:channels, and - a verifiable explanation, rendered deterministically from the score and grid so the text can never contradict the spatial evidence.
Because every output element is a discrete text token set, predictions are exactly checkable against ground truth. Training is supervised fine-tuning followed by GRPO with a verifiable cell-level F_β reward on the defect grid.
Repository contents
Naming convention: VIEScore2 denotes the full model after GRPO;
ablated variants are marked by what they lack, never by added suffixes.
| path | contents |
|---|---|
/ (root) |
VIEScore2 — the full post-GRPO checkpoint (drop-in Qwen3VLForConditionalGeneration) |
wo-grpo/ |
VIEScore2 (w/o GRPO) — the SFT-stage LoRA adapter on Qwen/Qwen3-VL-8B-Instruct |
Usage
from transformers import AutoProcessor, Qwen3VLForConditionalGeneration
model = Qwen3VLForConditionalGeneration.from_pretrained(
"Allenda/VIEScore2", dtype="bfloat16", device_map="auto")
processor = AutoProcessor.from_pretrained("Allenda/VIEScore2")
Evaluation prompts, the frozen protocol, the deterministic explanation renderer, and all benchmark converters and baseline harnesses live in the accompanying code release (see the paper).
Evaluation
On a 1,300-example multi-source suite (RichHF, PAL4VST, EvalMuse, ImagenWorld, COCO; frozen protocol v3.1): localization cell-F1 0.506, problem-sample grid IoU 0.324, overall-score SRCC 0.601. After mapping all methods to a shared 16×16 grid, VIEScore2 is the only evaluator in the top two of cell-F1 or grid-IoU on all six external localization benchmarks (RichHF, AbHuman, HAD, SynthScars, PAL4VST, SDG-30K). See the paper and code repository for the full tables and protocol details.
Citation
Citation information will be added upon publication.
- Downloads last month
- 19
Model tree for Allenda/VIEScore2
Base model
Qwen/Qwen3-VL-8B-Instruct