mentat-Spice-4B

Text and images in. Decision probabilities out.

mentat-Spice-4B turns text and images into decisions your software can use: route a customer request, review an invoice, verify an answer against evidence, or select the next tool. Supply the context and your candidate answers; the model returns a choice, a yes/no probability, or a score with its probability distribution.

Text + images · Three output types · Local inference · Apache-2.0

GitHub · Examples · Benchmarks · Quick start · Specifications

Examples

Support ticket workflow: Load context → route → create ticket.
Support ticket workflow
Load context → route → create ticket.
Execution trace · Run workflow
Invoice review workflow: Mismatch held · matching invoice approved.
Invoice review workflow
Mismatch held · matching invoice approved.
Execution trace · Run workflow
Grounded publishing workflow: Retrieve → verify → extract → recheck → save.
Grounded publishing workflow
Retrieve → verify → extract → recheck → save.
Execution trace · Run workflow
Security alert triage: Unscheduled logging change → investigate.
Security alert triage
Unscheduled logging change → investigate.
Input / output · Run locally
Contract clause review: NDA → supported, contradicted or unstated.
Contract clause review
NDA → supported, contradicted or unstated.
Input / output · Run locally
Search relevance: Wine query + corkscrew → accessory, not exact match.
Search relevance
Wine query + corkscrew → accessory, not exact match.
Input / output · Run locally
Agent trace-summary triage: Supplied trace summary → human review.
Agent trace-summary triage
Supplied trace summary → human review.
Input / output · Run locally
Event and reminder tool selection: Reference histories → AddAgenda / AddAlarm.
Event and reminder tool selection
Reference histories → AddAgenda / AddAlarm.
Input / output · Run locally
Browser action selection: Six reference screenshots → correct target elements.
Browser action selection
Six reference screenshots → correct target elements.
Input / output · Run locally
Receipt information extraction: Receipt photo → IDR 17,000 total, 3,000 change.
Receipt information extraction
Receipt photo → IDR 17,000 total, 3,000 change.
Input / output · Run locally
Scientific figure analysis: Compare six plots → 0 consistently increasing.
Scientific figure analysis
Compare six plots → 0 consistently increasing.
Input / output · Run locally
Sequential task planning: 62 actions → two doors opened, ball collected.
Sequential task planning
62 actions → two doors opened, ball collected.
Input / output

A shared state + questions interface powers all these decisions. Try the examples · Example sources and scope.

Example sources and scope

The first three cards were freshly executed with this checkpoint in local SQLite workflows. Customer and invoice inputs are synthetic business scenarios from Typed Decisions. The publishing workflow uses RAGTruth source news and a draft summary. These workflows persist actual tickets, review states and summary records in a local test database; they do not connect to production services. The controller performs retrieval, queue mapping, accounting guards and deterministic source extraction; mentat supplies the recorded decisions and verification probabilities.

The remaining cards show selected capability examples from public datasets and environments. These examples are not aggregate application success rates.

The BabyAI game is a completed episode in a public simulation. Browser screenshots and API histories are reference states supplied at each step; those sequences are offline decision replays. Browser action types and arguments are supplied; the model selects the target element. The tool example selects APIs after authentication; it does not request credentials, generate arguments or execute tools. Agent triage uses supplied summary statistics, including violation counts. The model returns judgments and recommendations. Business-system actions are performed by the integrating application.

Source credits and media licenses · Example index

Evaluation

Decision Index · Text: full model names and frozen scores Decision Index · Vision: full model names and frozen scores JevBench ‡: full model names and frozen scores
Typed Decisions †: full model names and frozen scores DecisionBench: full model names and frozen scores Procedural Typed Decisions: full model names and frozen scores
JevAlt-Bench: full model names and frozen scores zh-decision-bench: full model names and frozen scores VisualDecisionBench · Image: full model names and frozen scores

One checkpoint across all nine panels. DI reports Public index points; other panels show accuracy.
† Typed uses soft-target modal accuracy.
‡ JevBench comparison values are provider-reported.

Text DI uses the frozen public 0.3 protocol: 139,677 requests / 311,819 fields; unmeasured HLE contributes zero with its original weight retained. Vision covers 12,210 questions / 11 tasks. Typed is a local rescore of 400 cases / 2,000 fields using the System One Bench modal-label rule, not an official board entry.

Comparison values are published references, not matched reruns; Qwen Vision uses a stock VLM answer-letter readout. Sources: DI board · Nov 19 · JevalKit · Nov 10 · Google's JevBench report. Model names and values · Provider definitions.

Inference

21.9 ms median on one A800 for a warm short-text decision with the Turbo runtime (251 input tokens, four choices, 100 sequential Python calls). Loading, compilation and HTTP transport are excluded. Runtime and acceleration guide.

Using the model

Python 3.12 · Linux · CUDA GPU. Install the GitHub runtime, then sign in to an HF account with access to this private model:

pip install "mentat-sys1[serve] @ https://github.com/mentat-asi/mentat-sys1/releases/download/v0.4.0/mentat_sys1-0.4.0-py3-none-any.whl"
hf auth login
from mentat_spice import DecisionModel

model = DecisionModel.from_pretrained("yunqu/mentat-Spice-4B")
result = model.predict({
    "state": "A delivery address is missing its street number.",
    "questions": {"complete": {
        "type": "noul", "instructions": "The delivery address is complete."
    }},
})
print(result["answers"])

The first call downloads the four adapter files and the pinned Qwen3.5-4B backbone; later calls reuse the HF cache. Weights stay on your machine and inference runs locally. Supports choice, noul and score; add images=["./image.png"] to predict for pictures.

Examples and workflows · HTTP API · Turbo acceleration · Offline loading

Model information

Property Specification
Model mentat-Spice-4B
Backbone Qwen3.5-4B
Input Text and images
Outputs Candidate probabilities, Boolean probabilities, ordinal scores
Readout Original language-model projection; no separate decision head
Attention Eight full-attention layers use bidirectional attention
Native runtime context 32,768 tokens by default
Images Up to four per request, within the runtime's pixel and visual-token budgets
Questions Up to eight per request; each question is evaluated separately
Candidates 2–255 choice options; 2–10 ordered score levels

The model scores candidates without generating an answer explanation. Native video, audio, and bounding-box grounding are not supported. Long-context limits describe accepted input sizes, not guaranteed accuracy at every length.

License and credits

Adapter and inference code: Apache-2.0. The separately downloaded Qwen backbone retains its upstream license. Demo sources and individual media terms are listed in Attribution.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for yunqu/mentat-Spice-4B

Finetuned
Qwen/Qwen3.5-4B
Adapter
(1,236)
this model