Views
No views yet
Qwen2.5-VL-7B-Instruct for informativeness inference for accommodation images.q_proj, k_proj, v_proj, o_proj) as well as MLP layers (gate_proj, up_proj, down_proj).| Task | #Samples |
|---|---|
| Facility (main) | 5,000 |
| Facility (sub) | 3,552 |
| Planes | 2,268 |
| Meaningful elements | 3,552 |
| Proportions | 2,400 |
| Building exterior | 1,116 |
| View type | 1,265 |
| Room type | 576 |
| Total | 19,729 |
1from unsloth import FastVisionModel
2import requests
3from PIL import Image
4
5# Load model and tokenizer
6model, tokenizer = FastVisionModel.from_pretrained(
7 model_name = "jwlee9941/informativeness",
8 load_in_4bit = False, # Set to False for 16bit LoRA
9 max_seq_length = 8192,
10)
11FastVisionModel.for_inference(model) # Enable for inference!
12model.eval()
13
14# Preparation for inference
15instruction = "Your task is to identify the type of view visible from the room's interior based on the following criteria:..." # Text Prompt
16url = "https://..." # Image URL
17image = Image.open(requests.get(url, stream = True).raw)
18
19messages = [
20 {"role": "user", "content": [
21 {"type": "image"},
22 {"type": "text", "text": instruction}
23 ]}
24]
25input_text = tokenizer.apply_chat_template(messages, add_generation_prompt = True)
26inputs = tokenizer(
27 image,
28 input_text,
29 add_special_tokens = False,
30 return_tensors = "pt",
31 max_length = 8192,
32 truncation = False
33).to("cuda")
34
35# Inference: Generation
36outputs = model.generate(**inputs, max_new_tokens = 128, do_sample = False)
37decoded = tokenizer.decode(outputs[0], skip_special_tokens = True)
38print(decoded)| Metric / Task | Gemini 2.5 Pro | GPT-5 | GPT-4o-mini | GLM-4.1V-9B-Thinking | Qwen2.5-VL-7B LoRA (w/o CoT) |
|---|---|---|---|---|---|
| Facility (Main) | 90.67 | 92.33 | 92.33 | 93.67 | 92.00 |
| Main&Sub | 75.00 | 82.55 | 84.91 | 79.25 | 85.37 |
| Planes | 11.51 | 46.76 | 97.12 | 89.21 | 97.12 |
| Meaningful Elements | 9.43 | 18.87 | 38.21 | 35.85 | 44.34 |
| Scenery | 46.81 | 31.91 | 56.03 | 57.45 | 67.37 |
| Building Faces | 7.35 | 20.59 | 8.82 | 16.18 | 32.35 |
| Room Type | 80.65 | 83.87 | 70.97 | 61.29 | 87.10 |
| View Type | 50.00 | 64.10 | 79.49 | 57.69 | 74.36 |