Run this model with HF Jobs
Run Kaylee0501/Qwen3-VL-8B-CrossImage-SFT on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Kaylee0501/Qwen3-VL-8B-CrossImage-SFT. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Kaylee0501/Qwen3-VL-8B-CrossImage-SFT on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Kaylee0501/Qwen3-VL-8B-CrossImage-SFT. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Kaylee0501/Qwen3-VL-8B-CrossImage-SFT. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Kaylee0501/Qwen3-VL-8B-CrossImage-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kaylee0501/Qwen3-VL-8B-CrossImage-SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Kaylee0501/Qwen3-VL-8B-CrossImage-SFT") 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("Kaylee0501/Qwen3-VL-8B-CrossImage-SFT") model = AutoModelForMultimodalLM.from_pretrained("Kaylee0501/Qwen3-VL-8B-CrossImage-SFT", 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 Kaylee0501/Qwen3-VL-8B-CrossImage-SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kaylee0501/Qwen3-VL-8B-CrossImage-SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kaylee0501/Qwen3-VL-8B-CrossImage-SFT", "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/Kaylee0501/Qwen3-VL-8B-CrossImage-SFT
- SGLang
How to use Kaylee0501/Qwen3-VL-8B-CrossImage-SFT 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 "Kaylee0501/Qwen3-VL-8B-CrossImage-SFT" \ --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": "Kaylee0501/Qwen3-VL-8B-CrossImage-SFT", "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 "Kaylee0501/Qwen3-VL-8B-CrossImage-SFT" \ --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": "Kaylee0501/Qwen3-VL-8B-CrossImage-SFT", "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 Kaylee0501/Qwen3-VL-8B-CrossImage-SFT with Docker Model Runner:
docker model run hf.co/Kaylee0501/Qwen3-VL-8B-CrossImage-SFT
Qwen3-VL-8B-CrossImage-SFT
A multi-image reasoning model built on Qwen/Qwen3-VL-8B-Instruct. It was fine-tuned on Kaylee0501/CrossImage-CoT-36K, then weight-interpolated with the base model (WiSE-FT).
It writes a short structured rationale before answering. The format is Understand โ Perceive (one line per image) โ Connect (relate the images) โ Conclude, followed by <answer>โฆ</answer>.
How it was built
- Supervised fine-tuning.
- Data: 36,495 chain-of-thought traces over multi-image questions (see the dataset card).
- Traces were generated by GPT teachers without access to the gold answer. A trace was kept only if the teacher's first answer was correct.
- What was trained: full fine-tuning of the language model and the vision-language merger. The vision encoder was frozen.
- Settings: 1 epoch, learning rate 1e-5 with a cosine schedule, effective batch size 16, bf16 autocast over fp32 master weights.
- Images were capped at 1280ยท28ยท28 pixels each, at both training and evaluation time.
- Weight interpolation. The final weights are
ฮธ = 0.3ยทฮธ_SFT + 0.7ยทฮธ_base.- The SFT model improved multi-image skills but weakened some base skills, for example abstaining on unanswerable items and some single-image perception. Interpolation keeps most of the gain and recovers those skills.
- The value ฮฑ = 0.3 was chosen from {0.3, 0.5, 0.7, 1.0} on a development split only: a stratified 25% of the evaluation items.
- The selection rule was fixed in advance: pick the candidate that beats the base model on the most benchmarks, breaking ties by mean gain.
Results
The same harness, prompt and greedy decoding were used for every model. Scoring is letter- or exact-match, with no LLM judge.
Held-out 75% of items (never used for any choice; this is the unbiased comparison):
| Benchmark | Qwen3-VL-8B-Instruct | this model | ฮ | exact McNemar p |
|---|---|---|---|---|
| BLINK (val) | 63.7 | 67.6 | +3.9 | 0.001 |
| MIRB (multi-image subsets) | 54.2 | 59.5 | +5.3 | 0.001 |
| MuirBench | 75.1 | 76.1 | +1.0 | 0.28 |
| Mantis-Eval | 80.4 | 80.4 | 0.0 | 1.0 |
Full benchmarks. These include the 25% development items, so they are slightly optimistic:
| BLINK | MuirBench | MIRB | Mantis | |
|---|---|---|---|---|
| Qwen3-VL-8B-Instruct | 63.6 | 73.5 | 55.2 | 77.0 |
| SFT only (ฮฑ = 1.0) | 63.4 | 72.5 | 61.1 | 79.7 |
| this model (ฮฑ = 0.3) | 67.3 | 74.4 | 60.0 | 78.8 |
Evaluation sets:
- BLINK val: 1,901 items
- MuirBench: 2,600 items
- MIRB: 814 items across the multi-image subsets 3d_scene, analogy, attribute, count, food, image_jigsaw, sightseeing and visual_chain
- Mantis-Eval: 217 items
Decontamination: every training sample containing an image near-identical to any evaluation image was removed before training (dHash, then pixel check).
Prompt format (use it for best results)
System prompt:
You are a careful visual reasoning assistant. Reason across all the images, grounding each observation in a specific image by index, then give the final answer inside <answer></answer> tags.
User turn:
- All images first.
- Then the question, with options written as
A. โฆlines. - Then this instruction:
Reason step by step in this exact format:
Understand: state what the question asks and what form the answer must take.
Perceive: one line per image, "- Image k: ...", giving only the evidence in that image which bears on the question.
Connect: say how the evidence across specific images combines or conflicts, citing at least two image indices. If you pick one image, name the closest rival and why it fails.
Conclude: one sentence.
Then give the final answer alone inside <answer></answer> tags, with no explanation and no placeholder text inside the tags.
from transformers import AutoModelForImageTextToText, AutoProcessor
from PIL import Image
model_id = "Kaylee0501/Qwen3-VL-8B-CrossImage-SFT"
model = AutoModelForImageTextToText.from_pretrained(model_id, dtype="bfloat16", device_map="auto")
processor = AutoProcessor.from_pretrained(model_id)
SYSTEM = "You are a careful visual reasoning assistant. Reason across all the images, grounding each observation in a specific image by index, then give the final answer inside <answer></answer> tags."
COT = "\n\nReason step by step in this exact format:\nUnderstand: ...\n..." # paste the instruction above
images = [Image.open("a.jpg"), Image.open("b.jpg")]
question = "Do Image 1 and Image 2 show the same building?\nA. Yes\nB. No"
messages = [{"role": "system", "content": [{"type": "text", "text": SYSTEM}]},
{"role": "user", "content": [{"type": "image"} for _ in images] + [{"type": "text", "text": question + COT}]}]
prompt = processor.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
inputs = processor(text=[prompt], images=images, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=1024, do_sample=False)
print(processor.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Limitations
- Small, noisy margins on two benchmarks. The MuirBench and Mantis gains are not statistically significant. Mantis-Eval has only 217 items.
- Abstention is still weaker than base on image-option questions. The model abstains less often than the base model on MuirBench's unanswerable items, especially when the options are images. It sometimes answers "Neither" on two-option questions that offer no such choice.
- Possible perception errors inherited from the teachers. The rationales come from GPT teachers. A blinded visual audit flagged about 15% of the training traces for at least one wrong per-image statement; these traces were kept in the SFT data, and the dataset marks them.
- Research use only. The base model's license (Apache-2.0) applies to the weights. The training data inherits the terms of its source datasets.
- Downloads last month
- 24