---
title: devision
canonical_url: "https://www.modelscope.cn/models/baibaibai000/devision"
md_url: "https://www.modelscope.cn/models/baibaibai000/devision.md"
repository: baibaibai000/devision
chinese_name: "deVision 视觉决策模型"
last_updated: 2026-10-15
license: apache-2.0
pipeline_tag: visual-question-answering
tasks:
  - visual-question-answering
base_model:
  - convaiinnovations/laya
  - google/siglip2-base-patch16-256
base_model_relation: finetune
parameters: 518.4M
tensor_type:
  - F32
library_name:
  - safetensors
language:
  - en
downloads: 5
stars: 0
tags:
  - devision
  - visual-decisions
  - calibrated-probabilities
  - jev
  - system-one
  - rlcd
  - cpu
---

# devision

> devision - baibaibai000 在 ModelScope 开源的模型。Image and English questions to structured answers with calibrated probabilities. ModelScope mirror of deVision v0.2.

baibaibai000/devision 是 ModelScope 魔搭社区上的 518.4M 参数visual-question-answering模型，采用 apache-2.0 许可，基于 convaiinnovations/laya、google/siglip2-base-patch16-256 构建。

- **Repository**: baibaibai000/devision
- **License**: apache-2.0
- **Tasks**: visual-question-answering
- **Parameters**: 518.4M
- **Base model**: convaiinnovations/laya, google/siglip2-base-patch16-256
- **Tags**: devision, visual-decisions, calibrated-probabilities, jev, system-one, rlcd, cpu
- **Downloads**: 5
- **Stars**: 0
- **Last updated**: 2026-10-15

Source: https://www.modelscope.cn/models/baibaibai000/devision

---

# deVision v0.3

<p align="center"><img src="https://modelscope.cn/models/baibaibai000/devision/resolve/master/assets/logo.png" alt="deVision" width="200"></p>

**Image + English questions → structured answers with calibrated probabilities.** deVision pairs a SigLIP2 vision encoder with Laya's ModernBERT decision model. It scores the options of yes/no (`noul`) and multiple-choice (`choice`) questions instead of generating text, follows the Jev answer format, and runs without a GPU. Several questions about one image share a single image encoding.

## Usage

```bash
pip install devision modelscope-hub
```

```python
import devision

from modelscope_hub import HubApi

model_dir = HubApi().download_repo("baibaibai000/devision", repo_type="model")
model = devision.load(model_dir)   # device defaults to auto
result = model.predict(
    image="photo.jpg",   # a path, an http(s) URL, a data URI, base64, bytes or a PIL image
    state="",            # text context; "" when there is none
    questions={
        "has_fork": {"type": "noul", "instructions": "Is there a fork in the image?"},
        "room": {"type": "choice", "instructions": "Which room is this?",
                 "criteria": {"kitchen": None, "bathroom": None, "bedroom": None}},
    },
)
print(result["answers"]["has_fork"]["noul"])        # probability of yes
print(result["answers"]["room"]["probabilities"])   # one probability per option, summing to 1
```

HTTP server with a browser demo at `http://127.0.0.1:8000`:

```bash
ms-hub download baibaibai000/devision --local-dir ./devision-model
devision-serve --checkpoint ./devision-model --port 8000
curl -s http://127.0.0.1:8000/v1/systemone -H 'Content-Type: application/json' \
  -d '{"image": "https://example.com/photo.jpg", "state": "", "questions": {"has_fork": {"type": "noul", "instructions": "Is there a fork in the image?"}}}'
```

Over HTTP, `image` is an http(s) URL, a data URI or base64; the server never reads its own files. Responses follow Jev; `confidence` for `choice` is `(n * p_max - 1) / (n - 1)`. Invalid requests return 422 (`devision.InvalidRequest` in Python).

**Good for:** whether something is present and how many (ask counts as a choice), what kind of thing or scene, colours and materials, up/down and left/right in photos (as a choice). **Not for:** comparing two places on a diagram, chart or map; relative-position yes/no questions; small text; other languages or several images. Use the probabilities as thresholds and send uncertain cases to a person or a stronger model, after checking the thresholds on your own data.

## Evaluation

Accuracy through `decide` with the fitted temperatures. *Mismatched*: the same questions with every picture swapped for an unrelated one. These are project evaluation subsets, not official leaderboard scores. Although test pictures are excluded from training, these sets have informed successive experiments and release decisions; they are not a fresh independent test. See the release limitations below.

| Set | Questions | Accuracy | Mismatched | NLL | ECE |
|---|---:|---:|---:|---:|---:|
| COCO object presence | 1,120 | 0.947 | 0.504 | 0.163 | 0.034 |
| VQAv2 multiple choice | 1,420 | 0.909 | 0.380 | 0.271 | 0.038 |
| COCO size | 1,100 | 0.872 | 0.511 | 0.336 | 0.029 |
| POPE, project filtered set | 8,676 | 0.850 | 0.527 | 0.368 | 0.039 |
| GQA val subset | 992 | 0.790 | 0.550 | 0.410 | 0.040 |
| COCO position | 1,274 | 0.885 | 0.493 | 0.288 | 0.029 |
| VQAv2 yes/no subset | 1,000 | 0.704 | 0.512 | 0.574 | 0.026 |
| COCO relative position | 1,950 | 0.755 | 0.496 | 0.490 | 0.038 |
| VSR, project held-out split | 904 | 0.661 | 0.487 | 0.620 | 0.046 |
| Visual7W, project held-out split | 1,000 | 0.721 | 0.419 | 0.673 | 0.041 |
| Fresh counting test (unseen pictures) | 600 | 0.763 | 0.405 | 0.574 | 0.054 |
| CountBench, 0–10 choices | 491 | 0.356 | 0.104 | 1.602 | 0.052 |
| COCO mirrored position | 640 | 0.847 | 0.477 | 0.359 | 0.044 |
| COCO mirrored relative position | 1,492 | 0.698 | 0.507 | 0.545 | 0.030 |
| GQA binding test | 1,484 | 0.676 | 0.498 | 0.559 | 0.028 |
| What'sUp | 820 | 0.287 | 0.245 | 1.491 | 0.245 |

Against Laya Vision 201M on the same questions (its published per-question predictions; difference in points, 95% interval from paired resampling by picture):

| Set | Questions | Laya Vision | deVision | Difference |
|---|---:|---:|---:|---|
| VQAv2 yes/no | 4,887 | 0.717 | 0.725 | +0.8 [-0.8, +2.4] |
| A-OKVQA | 1,138 | 0.598 | 0.613 | +1.4 [-1.8, +4.7] |
| ScienceQA with images | 2,097 | 0.824 | 0.789 | -3.5 [-5.6, -1.4] |
| ScienceQA natural science, needs the picture | 323 | 0.700 | 0.495 | -20.4 [-27.2, -13.3] |

On the full POPE random / popular / adversarial sets (3,000 questions each) deVision scores **0.880 / 0.859 / 0.805**, against Laya Vision's published **0.836 / 0.819 / 0.777** (aggregate scores only, not paired).

CPU latency: P50 175 ms, P95 190 ms (Darwin arm64, 4 threads, FP32, one question per request, warm-up excluded).

## Model

| | |
|---|---|
| Vision | SigLIP2-B/16, 256 × 256 letterboxed input, 64 visual tokens after a 2 × 2 merge and an MLP projector; training policy described below |
| Decision | Laya-initialised ModernBERT-large and Laya's decision head; each option is scored at its `[MASK]`, then a temperature-scaled softmax |
| Size | About 518M parameters, FP32, 2.07 GB (LoRA merged) |

This release continues v0.2 with 81,875 questions of counting, object presence, mirrored spatial questions, VSR and broad replay, for one 10,235-step schedule (seed 1). The first 2,000 steps were run as exp19; r15 resumes that exact training state. SigLIP2's top four encoder layers and final LayerNorm were fine-tuned at 5e-6 alongside the projector, decision head and ModernBERT LoRA. LoRA is merged into the released weights. The input remains 256×256 with 64 visual tokens; S2 question conditioning is **not** enabled.

Temperatures were fitted on the designated calibration set, by question type and option-count bucket. Missing buckets fall back to the question-type temperature:

| Bucket | Temperature |
|---|---:|
| Choice, 11+ options | 1.2012 |
| Choice, 2 options | 1.9488 |
| Choice, 3–5 options | 1.7575 |
| Noul (yes / no) | 1.8258 |
| Choice, any other count | 1.5922 |

The owner adopted v0.3 as a trade-off: counting, relations and ScienceQA improved, while four old-capability protection conditions were not met. The original automated verdict remains `candidate=false`. See the [adoption decision and v0.2 comparison](evaluation/adoption.md), [original acceptance report](evaluation/accept_vs_v0.2.json) and [training configuration](evaluation/training.yaml).

## Limitations

- English, one image, yes/no and choice questions only. `score` is not implemented. At 256×256, small text and fine diagram details are hard to read.
- CountBench improved by 16.7 points over v0.2, but absolute accuracy is only 35.6%. Answer-order sensitivity increased (39.5% change their answer when options are reversed, versus 16.9%); this is not a general-purpose accurate counter.
- VSR accuracy is 1.8 points lower and A-OKVQA 1.3 points lower than v0.2; their overall intervals contain zero, but non-inferiority was not established. VSR positive recall fell by 5.3 points. A-OKVQA and What'sUp have worse probability quality than v0.2. No prewritten NLL warning was triggered; that does not mean all probabilities improved.
- Diagram, chart and map comparisons and question-to-region binding remain weak. On natural-science ScienceQA questions that require the picture, accuracy is 49.5% versus Laya Vision's 70.0%.
- Calibration reflects the calibration distribution, not every deployment domain. Validate thresholds on your own examples.
- Test sets have repeatedly informed experiment and release decisions. This is one training seed, not a fresh independent confirmation. Gains cannot be attributed solely to unfreezing the vision encoder.

## Licence

Weights and code: Apache-2.0, like the three base models ([Laya](https://huggingface.co/convaiinnovations/laya), [SigLIP2](https://huggingface.co/google/siglip2-base-patch16-256), [ModernBERT](https://huggingface.co/answerdotai/ModernBERT-large)). The training datasets (listed in this card's metadata) have their own terms, some non-commercial (e.g. ScienceQA, CC BY-NC-SA 4.0); check them against your use.

## Links

[Code and training records](https://github.com/byebyebruce/devision) (this release: tag `model-v0.3`) · [evaluation details](evaluation/results.md) · [provenance](provenance.json) · [Laya Vision](https://github.com/r33drichards/laya-vision)
