MAPLE-4B
a multimodal model for structured outputs and object detection
2 min read
MAPLE-4B (4.55 billion parameters by OrilinZ) analyzes text or images and answers multiple questions over shared inputs in a single pass. Instead of generating free-form text, it returns structured results: multiple-choice selections with probabilities, graded scores, condition checks (NOUL), or object coordinates. Under the hood, it combines a 32-layer language backbone using alternating linear and full attention, a 24-layer vision encoder, a fusion module, and two specialized heads for decision-making and grounding. It's built for developers automating document parsing, UI analysis, and request routing without having to parse raw text outputs.
Key features
- Supports four output formats: multiple-choice selection (Choice), condition probability (NOUL), graded scores, and bounding box coordinates.
- Evaluates multiple questions against a single text or image in one forward pass by compiling them into a shared state.
- Handles context windows up to 65,536 tokens (including image tokens up to 1,638,400 pixels) via a built-in PyTorch HTTP server.
- Released in SafeTensors format under the open Apache 2.0 license, complete with a ready-to-run
serve.pyserver script.
What you can do
- Automate key information extraction (KIE) from scans and documents by identifying the form type and locating exact field coordinates simultaneously.
- Parse UI screenshots and infographics for web agent navigation (handling Mind2Web and InfographicVQA-level tasks).
- Drop it into function-calling and user-intent classification pipelines as a lightweight alternative to bulky LLMs.
- Run content moderation and fact-checking in RAG pipelines with calibrated answer probabilities and model confidence scores.
Example
hf download OrilinZ/MAPLE-4B --local-dir MAPLE-4B
CUDA_VISIBLE_DEVICES=0 python MAPLE-4B/serve.py --port 8000
curl -sS [http://127.0.0.1:8000/v1/systemone](http://127.0.0.1:8000/v1/systemone) \
-H 'Content-Type: application/json' \
-d '{"model":"MAPLE-4B","state":"The shipment arrived on Monday.","questions":{"day":{"type":"choice","instructions":"When did it arrive?","criteria":{"A":"Monday","B":"Friday"}}}}'
Read more
DetailsDecision Index (Public v0.3): 70.03 on text tasks and 77.95 on visual tasks, with strong accuracy on InfographicVQA (97.54%), KIE CORD+FUNSD (97.48%), Mind2Web (93.22%), and BFCL (97.82%).
Average single-GPU latency in testing (on 8× NVIDIA H100 80GB): 302.6 ms for text and 526.3 ms for images.
Requirements: Linux, Python 3.12, PyTorch 2.10.0, and a CUDA-capable NVIDIA GPU (inference runs in BF16 for the backbone and FP32 for the output heads).
Limitations: an audit of the training set found at least 115 text and 136 visual examples overlapping with the public evaluation suite; requests exceeding 65,536 tokens are rejected.










Comments