Repository navigation
Description
The model to consider
InternLM/Intern-Decision — a three-size family of open-weight (Apache-2.0) multimodal typed-decision checkpoints published by InternLM in late September 2026:
| Checkpoint | Fine-tuned from | Role |
|---|---|---|
| internlm/Intern-Decision-4B | Qwen/Qwen3.5-4B | flagship |
| internlm/Intern-Decision-2B | Qwen/Qwen3.5-2B | mid |
| internlm/Intern-Decision-0.8B | Qwen/Qwen3.5-0.8B | edge |
All three are Qwen3_5ForConditionalGeneration (model_type: qwen3_5, image_token_id: 248056): the language backbone is fine-tuned for decisions while the Qwen3.5 vision tower and projector are kept frozen. The reference implementation (Apache-2.0) ships training code, two inference backends, an HTTP server/demo, an evaluation harness, and calibration artifacts.
What it computes is exactly this engine's contract: one request carries a state, up to 8 images, and a schema of 1–16 typed questions (choice, score, noul, up to 62 options per field, 8192-token budget including image tokens); a single causal forward pass returns calibrated probabilities for every field. Inference maps each field's options to single-token answer symbols (A–Z, a–z, 0–9), renders an assistant JSON skeleton with one <decision> special token per field, reads logits immediately before each placeholder, applies a restricted softmax over that field's legal symbols, then a per-checkpoint calibration temperature (hash-verified released artifacts, NLL-fitted; 4B ≈ 1.992, 2B ≈ 2.101, 0.8B ≈ 2.748; upstream defaults to 1.0 without one). Zero generated tokens.
Upstream serving is POST /v1/decisions (alias /v1/jev) plus GET /health — near our /v1/systemone envelope but not identical. Two reference backends (native HF: Transformers 5.14.1 / flash-linear-attention 0.4.2; XTuner: pinned fb51baebdf91b03bd39255c4427edac9aca82865, torch 2.6.0, transformers 4.57.0), which the repo explicitly states are not bitwise-identical — a normative oracle must be chosen before fixtures.
Upstream-reported numbers (their protocols, RTX 4090 BF16, a 289-token three-field request): 4B averages 90.02 across their seven suites vs Jev 88.74 / Kev 79.56 / Laya 57.77 on the same table (2B 84.68, 0.8B 79.38); mean latency 44.16 ms for 4B and ~33–34 ms for 2B/0.8B; a 96-case calibration pilot reports Brier 0.550 / ECE 0.089 for 4B vs Jev 0.595 / 0.130. These need independent reproduction under our benchmark protocol before any claim.
The closest planned or implemented model
- Architecture: Cua-S1. Same
Qwen3_5ForConditionalGenerationfamily, so the shared Qwen3.5 prefill kernels (src/models/qwen3_5,src/backends/cuda/qwen3_5) and the native Cua-S1 vision / image-preprocessing path apply. Cua-S1's last-position label-symbol readout is the special case of Intern-Decision's readout with one placeholder; Intern-Decision generalizes it to one placeholder per question field. - Contract: the Jev family.
choice/score/noulsemantics match Open-Jev-9B/27B and the shared/v1/systemonecontract ([RFC]: Write down which parts of the /v1/systemone contract all workers share #61). Kev ([New Model]: Support Kev (0.5B–9B) — second Qwen3.5 decision model, reusing the qwen3_5 CUDA backend #27) was scoped as the second Qwen3.5 decision model; this would be the third. - Calibration: JEMM ([RFC]: Native Rust/CUDA support for MaestroYan/JEMM and community help #121). Same pattern of a per-checkpoint temperature over label-symbol logits — JEMM reads 32 fixed labels at the final position; Intern-Decision reads a restricted per-field symbol set at N placeholder positions.
No existing worker can serve these checkpoints: per-field skeleton rendering, multiple readout positions in one forward, and restricted per-field symbol sets differ from Open-Jev (trained scalar head per candidate), Cua-S1 (labels at the final position), and JEMM (fixed 32-label readout). This is a new model directory and recipe, not a config change.
What's your difficulty of supporting the model you want?
Low operator risk; the work is request compilation, readout, and calibration:
- Execution reuse. Shared Qwen3.5 prefill kernels and the layer loop cover the backbone; the frozen vision tower should reuse the native Cua-S1 vision entry points and image preprocessing (CPU image prep must match the base
AutoProcessorexactly; verify the frozen vision weights against the base checkpoint at pin time). Check embedding tying from the config before reading label rows (the [RFC]: Support openjev/openjev in System1-Omni — community help wanted #95 warning in this family) and verify that<decision>plus all 62 answer symbols are single tokens under the pinned tokenizer, with fixtures. - No merge step. Unlike JEMM ([RFC]: Native Rust/CUDA support for MaestroYan/JEMM and community help #121) and Kev ([New Model]: Support Kev (0.5B–9B) — second Qwen3.5 decision model, reusing the qwen3_5 CUDA backend #27), these are full checkpoints (language fine-tuned, vision frozen) — no LoRA-merge drift qualification. Export reduces to packaging weights, processor/tokenizer, the
<decision>token, and the calibration artifact behind a manifest the worker validates; it refuses a bare base checkpoint. - New model-specific code. (1) schema → assistant-JSON-skeleton rendering with
<decision>placeholders and symbol assignment; (2) multi-position readout — gather logits immediately before each placeholder and apply the restricted per-field softmax; (3) calibration-temperature loading and recording; (4)choice/noul/scoreresponse finishing consistent with the Jev envelope; (5) a documented, tested/v1/decisions→/v1/systemonewire mapping. - Execution shape. Prefill-only, one forward per request, zero generated tokens, serial admission via the shared runtime to start — matches the engine's native shape and the architecture contracts. No new CUDA operators expected; BF16 4B fits a single 24 GB GPU, and 0.8B is a natural later candidate for Mac/Metal/CPU work given the footprint.
Suggested first slice: BF16 CUDA, text + images, all three question types, 1–16 fields, ≤62 options, serial, behind the existing frontend. Out of scope initially: XTuner-backend parity, quantization, Metal. Later optimizations (request-local observation reuse #85, CUDA Graphs) are separate measured changes.
Use case and motivation
- Same System-1 typed-decision domain as every model this engine serves (
choice/noul/score), multimodal with up to 8 screenshots — directly serves the System1-Agents path. - An attractive point on the quality/latency frontier if verified: upstream reports 4B above Jev on their seven-suite benchmark at ~44 ms/request on one RTX 4090 with calibrated probabilities, and 2B/0.8B at ~33 ms — a much smaller deployment than Open-Jev-27B.
- Roadmap fit: [Tracking]: System1-Omni roadmap: models, features, and agent integration #125 (M13) lists Intern-Decision as a candidate for owned first integrations but notes it "has benchmark context, not an Omni integration issue" — this issue is that integration issue.
- Low marginal cost: the third Qwen3.5-family decision model, reusing shared kernels, the vision path, and the [RFC]: Write down which parts of the /v1/systemone contract all workers share #61 contract.
Related: #9 (roadmap RFC), #27 (Kev), #61 (shared contract), #83 (model tracker), #85 (observation reuse), #95/#114/#121 (sibling decision-model RFCs), #125 (M13).
Before submitting a new issue...
- Make sure you already searched for relevant issues in the issue tracker, and looked for the answer in the documentation.
(Searched open and closed issues for Intern-Decision and internlm; no existing integration request — Kev #27 is a different model family.)
Preparation inspected public model metadata, configs, and the upstream README only — no weights loaded, no inference or benchmarks run, no speedup claimed.
Activity
linear3735 commentedon Oct 11, 2026
I’ll take this integration. I’ll start with Intern-Decision-4B text and online image requests in native Rust/CUDA, reusing the shared Qwen3.5 prefill backend and existing serial runtime. Then I’ll adapt and validate 2B and 0.8B on the same path, with separate results for each checkpoint.
I’ll pin the official reference before collecting fixtures, cover all three decision types and multi-field/multi-image requests, and validate both numerical parity and complete-request latency. I’ll share the reviewed diff and reproducible evidence in the corresponding PRs.
hsliuustc0106 commentedon Oct 24, 2026
@psv666 Owner ask (Hongsheng, 2026-10-24): please drive this native/new-model gap. Hongsheng will review PRs daily — keep slices small and independent (one model per PR/issue as usual). Comment here with your first slice when you start.