DI-Decision-4B
LoRA chain for fast visual selection
2 min read
The DI-Decision-4B model is a three-stage LoRA chain (a small add-on to the base model) built on top of Qwen3.5-4B and fine-tuned for typed visual selection tasks. It takes one to four images, a question, and answer choices with letter indexes as input, and outputs the selected option and probabilities for each choice in a single pass. No text generation occurs—it reads the logits (numerical scores before the activation function) of the answer letters at the decision position. Useful for researchers and developers of multimodal systems.
Key features
- Fast response: A single forward pass with no text generation or sampling.
- Adapter chain: Three sequential LoRA stages (244 MB each) that must be loaded in strict order.
- Image processing: Support for resolutions up to 1.6 MP per image with auto-scaling.
- High benchmarks: Public Vision Index 0.3 reaches 73.76 across 11 datasets.
What you can do
- Multimodal analysis: Apply the model in visual testing and image analysis pipelines.
- Engine integration: Use the built-in
DecisionEngineclass for automated processing of multiple-choice queries. - Dataset evaluation: Run evaluation pipelines via the
decision-indexpackage to check accuracy on visual benchmarks.
Example
from inference import DecisionEngine
engine = DecisionEngine(model=".", device="cuda:0")
response, raw = engine(
state={},
questions={
"answer": {
"type": "choice",
"instructions": "How many motorcycles are in the image?",
"criteria": {"A": "3", "B": "4", "C": "5", "D": "6"},
}
},
images=["/path/to/image.jpg"],
)
print(response)
engine.close()Read more
DetailsBenchmarks: CV-Bench — 0.8994, InfographicVQA — 0.9549, KIE — 0.9619.
Requirements: a GPU with sdpa backend support (flash-kernels are not supported due to the attention mask), median latency of about 682 ms on a single A10 card.
Limitations: images only (video is not supported), exactly one multiple-choice question per request, strictly fixed
board prompt format. The base model is distributed under the Apache-2.0 license, and the adapters are a research artifact.









Comments