Instructions to use AutoRepair/AutoRepair-VLM-Qwen3-VL-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AutoRepair/AutoRepair-VLM-Qwen3-VL-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="AutoRepair/AutoRepair-VLM-Qwen3-VL-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("AutoRepair/AutoRepair-VLM-Qwen3-VL-8B") model = AutoModelForMultimodalLM.from_pretrained("AutoRepair/AutoRepair-VLM-Qwen3-VL-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 AutoRepair/AutoRepair-VLM-Qwen3-VL-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AutoRepair/AutoRepair-VLM-Qwen3-VL-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": "AutoRepair/AutoRepair-VLM-Qwen3-VL-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/AutoRepair/AutoRepair-VLM-Qwen3-VL-8B
- SGLang
How to use AutoRepair/AutoRepair-VLM-Qwen3-VL-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 "AutoRepair/AutoRepair-VLM-Qwen3-VL-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": "AutoRepair/AutoRepair-VLM-Qwen3-VL-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 "AutoRepair/AutoRepair-VLM-Qwen3-VL-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": "AutoRepair/AutoRepair-VLM-Qwen3-VL-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 AutoRepair/AutoRepair-VLM-Qwen3-VL-8B with Docker Model Runner:
docker model run hf.co/AutoRepair/AutoRepair-VLM-Qwen3-VL-8B
AutoRepair-VLM-Qwen3-VL-8B
The vision-language judge of AutoRepair, a multi-agent loop that repairs TFT display-panel defects by writing repair programs. Given a panel image on which a candidate repair has been drawn (laser-cut paths, ITO-removal paths, defect outline) and the repair rule for the defect, the model writes a review in Chinese that checks the drawn repair against the rule and ends with its verdict.
Fine-tuned from Qwen/Qwen3-VL-8B-Instruct: two stages of supervised fine-tuning (panel-domain question answering, then repair review), followed by GRPO. This checkpoint is GRPO step 2200, the judge used in the paper's full-pipeline experiments.
Use
The model is meant to be run by the AutoRepair loop, which builds the review prompt (the prompt template and the repair rule) and reads the verdict. Point the loop's configuration at this checkpoint:
judge:
backend: local
local:
model_path: AutoRepair-VLM-Qwen3-VL-8B # local download of this repository
max_new_tokens: 8192
do_sample: false
Settings used in the paper: greedy decoding (do_sample: false), up to 8,192 new tokens, one image followed by
the text prompt in a single user turn. The configuration stores float32, so with torch_dtype="auto" the model
loads in float32 (about 35 GB of GPU memory).
To call the model directly:
from transformers import AutoProcessor, Qwen3VLForConditionalGeneration
from qwen_vl_utils import process_vision_info
path = "AutoRepair-VLM-Qwen3-VL-8B"
model = Qwen3VLForConditionalGeneration.from_pretrained(path, torch_dtype="auto", device_map="auto")
processor = AutoProcessor.from_pretrained(path)
messages = [{"role": "user", "content": [
{"type": "image", "image": "rendered_repair.jpg"},
{"type": "text", "text": review_prompt}, # the AutoRepair judge prompt with the repair rule filled in
]}]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
images, _ = process_vision_info(messages)
inputs = processor(text=text, images=images, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=8192, do_sample=False)
print(processor.batch_decode(out[:, inputs.input_ids.shape[1]:], skip_special_tokens=True)[0])
- Downloads last month
- -
Model tree for AutoRepair/AutoRepair-VLM-Qwen3-VL-8B
Base model
Qwen/Qwen3-VL-8B-Instruct