Image-Text-to-Text
Transformers
Safetensors
qwen3_vl
image-quality-assessment
iqa
mr-iqa
conversational
Instructions to use RobinY99/MR-IQA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RobinY99/MR-IQA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="RobinY99/MR-IQA", 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?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("RobinY99/MR-IQA") model = AutoModelForMultimodalLM.from_pretrained("RobinY99/MR-IQA", 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 RobinY99/MR-IQA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RobinY99/MR-IQA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RobinY99/MR-IQA", "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/RobinY99/MR-IQA
- SGLang
How to use RobinY99/MR-IQA 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 "RobinY99/MR-IQA" \ --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": "RobinY99/MR-IQA", "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 "RobinY99/MR-IQA" \ --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": "RobinY99/MR-IQA", "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 RobinY99/MR-IQA with Docker Model Runner:
docker model run hf.co/RobinY99/MR-IQA
RobinY99 commited on
Commit ·
e8526dd
1
Parent(s): 7cc7be6
Upload MR-IQA 2B final model
Browse files- README.md +25 -23
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -8,40 +8,42 @@ tags:
|
|
| 8 |
- iqa
|
| 9 |
- qwen3-vl
|
| 10 |
- mr-iqa
|
| 11 |
-
- grpo
|
| 12 |
---
|
| 13 |
|
| 14 |
-
# MR-IQA
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
-
|
|
|
|
| 26 |
|
| 27 |
## Files
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
- `config.json`
|
| 33 |
-
- `generation_config.json`
|
| 34 |
-
- `processor_config.json`
|
| 35 |
-
- `tokenizer.json`
|
| 36 |
-
- `tokenizer_config.json`
|
| 37 |
-
- `chat_template.jinja`
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
|
| 42 |
|
| 43 |
-
The training/evaluation prompt asks for an overall image quality score as a float between 1 and 5, rounded to two decimal places, with the final answer in `<answer>...</answer>` tags.
|
| 44 |
|
| 45 |
-
## Path Hygiene
|
| 46 |
|
| 47 |
-
The
|
|
|
|
| 8 |
- iqa
|
| 9 |
- qwen3-vl
|
| 10 |
- mr-iqa
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# MR-IQA
|
| 14 |
|
| 15 |
+
MR-IQA is a 2B vision-language model for no-reference image quality assessment. It predicts a perceptual quality score from an input image and a short instruction prompt.
|
| 16 |
|
| 17 |
+
This repository contains the final checkpoint from the original June 17, 2026 MR-IQA 2B training run. The training data used KONIQ-style image quality supervision, and the model was validated on a 200-image KONIQ validation split with fixed data sampling.
|
| 18 |
|
| 19 |
+
## Validation
|
| 20 |
+
|
| 21 |
+
Final checkpoint validation on the 200-image KONIQ validation split:
|
| 22 |
+
|
| 23 |
+
| Split | Valid samples | SRCC | PLCC | Shards |
|
| 24 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 25 |
+
| KONIQ validation | 200 | 0.9250992954 | 0.9420850686 | 8 |
|
| 26 |
|
| 27 |
## Files
|
| 28 |
|
| 29 |
+
The repository includes only inference-ready assets:
|
| 30 |
+
|
| 31 |
+
-
|
| 32 |
+
-
|
| 33 |
+
-
|
| 34 |
+
-
|
| 35 |
+
-
|
| 36 |
+
-
|
| 37 |
+
-
|
| 38 |
+
|
| 39 |
+
Training-only artifacts such as optimizer state, scheduler state, RNG state, trainer state, and distributed checkpoint helpers are intentionally excluded.
|
| 40 |
|
| 41 |
+
## Usage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
Use a standard Transformers vision-language loading flow with and the Qwen3-VL model class. Provide an image and ask the model to assess overall perceptual quality. The expected score range is 1 to 5, rounded to two decimal places.
|
| 44 |
|
| 45 |
+
Example prompt:
|
| 46 |
|
|
|
|
| 47 |
|
|
|
|
| 48 |
|
| 49 |
+
The model is released as MR-IQA. Paths used during training and evaluation are not required for loading or inference.
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4255140312
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:586d7cd834da987fabc2c696234526782ef7e9bb1f60bbd938bdb6752fe32a33
|
| 3 |
size 4255140312
|