Views
No views yet
--lora: its language and vision changes are already in these files.1llama-server \
2 -m Cityscapes-Qwen3.5-4B-Q4_K_M.gguf \
3 --mmproj mmproj-Cityscapes-Qwen3.5-4B-BF16.gguf \
4 --ctx-size 4096 \
5 --parallel 1 \
6 -ngl 99 \
7 --jinja \
8 --no-webui \
9 --host 127.0.0.1 \
10 --port 8080Cityscapes-Qwen3.5-4B-BF16.gguf./v1/chat/completions. Put the image before the text and use a schema-explicit
prompt:1import base64
2import mimetypes
3import requests
4
5image_path = "frankfurt_000000_000294_leftImg8bit.png"
6mime = mimetypes.guess_type(image_path)[0] or "image/png"
7with open(image_path, "rb") as handle:
8 image_url = f"data:{mime};base64,{base64.b64encode(handle.read()).decode()}"
9
10system_prompt = """You extract structured Cityscapes facts from an image.
11Return raw JSON only with exactly the top-level keys surfaces, objects, relations.
12surfaces contains exactly road and sidewalk with present and zones.
13objects contains exactly person, rider, car, truck, bus, train, motorcycle,
14bicycle, traffic_light, traffic_sign, pole with present, count, zones.
15Zones use a 3x3 grid: upper|middle|lower combined with left|center|right.
16Counts are 0, 1, 2-3, 4-7, 8+, or unknown. An absent object uses false, 0, [].
17Relations contain subject, relation=on, and object=road|sidewalk."""
18
19response = requests.post(
20 "http://127.0.0.1:8080/v1/chat/completions",
21 json={
22 "messages": [
23 {"role": "system", "content": system_prompt},
24 {
25 "role": "user",
26 "content": [
27 {"type": "image_url", "image_url": {"url": image_url}},
28 {
29 "type": "text",
30 "text": (
31 "Analyze this urban road image and return only one "
32 "completed JSON object in the required schema."
33 ),
34 },
35 ],
36 },
37 ],
38 "temperature": 0,
39 "seed": 3407,
40 "max_tokens": 1024,
41 "chat_template_kwargs": {"enable_thinking": False},
42 },
43 timeout=600,
44)
45response.raise_for_status()
46print(response.json()["choices"][0]["message"]["content"])unsloth/Qwen3.5-4B, revision
3764fa359b9082ea5a1e4a5e3ac3aaf6e9671636.instance on surface relations.1e-4, cosine schedule, 5% warmup,
weight decay 0.001.temperature=0, seed=3407, max_tokens=1024;response_format;| Metric | Base BF16 | Tuned BF16 | Delta |
|---|---|---|---|
| JSON valid rate | 0.292 | 1.000 | +0.708 |
| Strict schema valid rate | 0.214 | 1.000 | +0.786 |
| Task score | 0.1840 | 0.8054 | +0.6214 |
task_score equally weights presence macro F1, per-class count accuracy, zone
micro F1, and relation micro F1.| Metric | Base BF16 | Tuned BF16 | Delta | Paired-bootstrap 95% CI |
|---|---|---|---|---|
| Presence macro F1 | 0.8110 | 0.8989 | +0.0879 | [0.0619, 0.1156] |
| Count macro accuracy | 0.7280 | 0.8211 | +0.0932 | [0.0821, 0.1043] |
| Zone micro F1 | 0.3495 | 0.8447 | +0.4953 | [0.4857, 0.5046] |
| Relation micro F1 | 0.5711 | 0.6513 | +0.0802 | [0.0606, 0.1001] |
| Task score | 0.6149 | 0.8040 | +0.1891 | [0.1790, 0.2000] |
b7b80a3b18578acb8406af229392f9d5585563ecbace3aac724145f2d8187a3f.qwen35 text or clip mmproj);model or mmproj);unsloth/Qwen3.5-4B
is Apache-2.0.1@inproceedings{Cordts2016Cityscapes,
2 title = {The Cityscapes Dataset for Semantic Urban Scene Understanding},
3 author = {Cordts, Marius and Omran, Mohamed and Ramos, Sebastian and
4 Rehfeld, Timo and Enzweiler, Markus and Benenson, Rodrigo and
5 Franke, Uwe and Roth, Stefan and Schiele, Bernt},
6 booktitle = {Proc. of the IEEE Conference on Computer Vision and Pattern
7 Recognition (CVPR)},
8 year = {2016}
9}