Skip to content

31B-gemma4 v2

The largest v2 checkpoint, on Gemma 4 31B, a size that v1 did not have. It is one full model: a LoRA adapter merged into google/gemma-4-31B-it, with a token readout in place of the v1 pointer head. The probability of each option is read from its answer code (A, B, C, and so on) at the last token of the prompt. The state is encoded once, in both directions, and every question reads it. The release is the average of three runs of the same recipe, then calibrated.

  • Base model: google/gemma-4-31B-it
  • Parameters: 30.7B
  • Image support: yes (no image training; uses the base’s image input)
  • Decision types: choice (2 to 255 options), noul (yes/no), score (2 to 10 levels)
  • Prompt length: 32,768 tokens by default, up to 131,072 with --max-length; trained on prompts of up to 16,384 tokens
  • Size: 63 GB in bf16; one GPU with 80 GB of memory
  • Training: LoRA adapter (rank 64) + token readout; one pass over the v2 data mix; average of three runs; then calibrated with one temperature, fitted on held-out questions
  • License: Apache-2.0
  • Hugging Face: StrandsAgents/strands-decider-31B-gemma4-v2-2611
ModelDecision Index 0.3, publicJevBenchOpenDecisionsDecisionPivotBEV
31B-gemma4-v2-2611 (this model)71.593.192.284.384.5
26B-A4B-gemma4-v1-261048.890.575.123.272.8

Scores are 0 to 100. Decision Index 0.3, public: 41 tasks in five areas. JevBench: the share of the 231 public items answered correctly. OpenDecisions: everyday decisions, scored on answer quality and calibration. DecisionPivot: pair accuracy on items that differ in one decisive detail. BEV: choice, yes/no and ordered-score decisions across 18 domains. The v2 row uses the calibration temperature that the model ships with, and the v1 row uses a temperature of 1. Only OpenDecisions depends on the temperature: at a temperature of 1, this model scores 93.2 there. v1 had no 31B, so the v1 row is its largest model. The numbers are those of the HF card.

On one H100 in bf16, the median request over the 231 JevBench items takes 99 ms with one question and 614 ms with 30 questions about the same state.

Calibration: the average gap between confidence and accuracy is 0.7 points (HF card).

Terminal window
pip install strands-decider
strands-decider ask StrandsAgents/strands-decider-31B-gemma4-v2-2611 \
--state "Help! My payouts have been failing for 3 days!" \
--choice "Which team should handle this?=billing,sales,retail" \
--noul "Does this convey urgency?"

A v2 model needs strands-decider 0.4.0 or later.

Add --image photo.jpg, once for each image, to send images with the state. To serve the model over HTTP:

Terminal window
strands-decider serve StrandsAgents/strands-decider-31B-gemma4-v2-2611 --port 8000

In Python:

from strands_decider.core import Request
from strands_decider.decision import load_decision_engine
engine = load_decision_engine("StrandsAgents/strands-decider-31B-gemma4-v2-2611", device="cuda")
request = Request.model_validate(
{
"state": "My integration keeps failing with a 401 since we rotated our API key. Please help.",
"questions": {
"team": {
"type": "choice",
"instructions": "Which team should handle this request?",
"criteria": {
"billing": "Charges and refunds",
"support": "Technical integration errors",
"sales": "Questions about buying a product",
},
},
"urgent": {"type": "noul", "instructions": "Is the customer blocked right now?"},
},
}
)
response = engine.evaluate(request)
answers = response.model_dump(exclude_none=True)["answers"]
print(answers["team"]["choice"], answers["urgent"]["noul"])

See Inference server for the request shape.

  • You want the most accurate v2 model: it has the highest score of the five v2 models on all five benchmarks.
  • You have one GPU with 80 GB of memory.
  • The model needs one GPU with 80 GB of memory and cannot be split over GPUs. Long prompts with many questions need more memory: send a shorter text or fewer questions in one request.
  • v2 is trained on text only. Images go through the base model’s own image input, unchanged.
  • The temperature is fitted on held-out data and does not change the chosen answer. If your application relies on the probability values, check them on a sample of your own traffic.