Run this model with HF Jobs

Run oidlabs/cue-reflex-4B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/oidlabs/cue-reflex-4B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/oidlabs/cue-reflex-4B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

CueReflex-E4B

CueReflex-E4B is a fast, calibrated System-1 decision model fine-tuned from google/gemma-4-E4B-it. Given a structured or unstructured state, a decision question, and bounded criteria/options, it returns a calibrated probability distribution over the options in a single forward pass without text generation.

Quickstart: Python inference

Run the model directly in Python; no server is required. For HTTP serving and JevBench evaluation, see the standalone inference guide.

In a Python 3.11+ environment, download the release and install its bundled runtime:

python -m pip install huggingface_hub
hf download oidlabs/cue-reflex-4B --local-dir cue-reflex-e4b
cd cue-reflex-e4b
python -m pip install ./inference

Accept the Gemma base model's access terms and authenticate with hf auth login before the first load. The runtime downloads the base model automatically.

This public JevBench example asks the model to select a tool for a dinner reservation:

from pathlib import Path

from serve import evaluate_request_payload, load_runtime

runtime = load_runtime(Path.cwd())  # Load once and reuse across requests.
response = evaluate_request_payload(runtime, {
    "state": "Book a table for four at Luigi's tonight at 8.",
    "questions": {
        "tool": {
            "type": "choice",
            "instructions": "Which single tool should be called to handle this request?",
            "criteria": {
                "search_flights": "Find flights between two cities",
                "book_restaurant": "Reserve a table at a restaurant",
                "set_reminder": "Remind the user of something at a given time",
                "get_stock_price": "Look up the current price of a stock",
                "call_taxi": "Order a taxi to a location",
            },
        },
    },
})

answer = response["answers"]["tool"]
print(answer["choice"])  # book_restaurant in the recorded run
print(answer["probabilities"])

Release Goal

This v0.3 release builds on previous CueReflex-E4B checkpoints to improve the overall performance while maintaining a reproducible baseline for independent evaluation. The reported JevBench public results are local diagnostics, not official leaderboard scores. Use the standalone inference runtime and its reproduction instructions in the accompanying inference/ package. Future improvements will be released as separately versioned checkpoints.

Model Summary

  • Developed by: OidLabs Team
  • Base model: google/gemma-4-E4B-it
  • Architecture: LoRA adapter (r=32, alpha=64) + frozen answer-letter readout derived from the base model's output embeddings, with logit softcapping (30.0); standalone inference does not require decision_head.pt.
  • Supported decision types:
    • choice: Categorical selection over 2 to 16 options
    • noul: Binary verification (no / yes)
    • score: Ordinal grading across ordered rubric levels (0 .. K-1)
  • Max sequence length: 8,192 prompt tokens; longer inputs are rejected without truncation.
  • Prompt format: sandwich (Question, State, Question, Options)
  • Max options: 16 (A–P)
  • Temperature calibration: choice: 1.0135042228440614, noul: 1.0, score: 1.0332528501042386, fitted on 5,000 validation decisions with a no-sharpening T >= 1.0 policy.
  • Serving calibration: Temperatures are stored in inference_config.json; standalone inference does not load calibration.json, which retains the fitting provenance.
  • NOUL commit band: Enabled by default in inference_config.json. Set "noul_commit_band": false to retain temperature-scaled probabilities without this adjustment. After temperature scaling, yes probabilities in (0.20, 0.50) become 0.199 and those in [0.50, 0.80) become 0.801. The runtime defaults to disabled if the setting is omitted.
  • License: Apache-2.0

Training & Contamination Disclosure

  • Training data: Fine-tuned on curated, commercial-friendly structured decision examples covering choice, noul, and score tasks.
  • External benchmark evaluation: The 231 public JevBench items were used for external diagnostic evaluation, not included in training or used to fit model parameters or temperature calibration.

Diagnostic Evaluation (JevBench Public 231)

Local diagnostic results on the 231 public JevBench items (original.jsonl, easy.jsonl, hard.jsonl):

The v0.3 results below were measured with the offline evaluator using the release temperatures (noul_commit_band disabled, 10-bin ECE, matching the historical zero-shot baseline). Accuracy is local argmax accuracy, not an official leaderboard score.

Metric Zero-Shot (gemma-4-E4B-it) CueReflex-E4B v0.3
Accuracy 64.94% (150 / 231) 80.09% (185 / 231)
Log Loss 1.1725 0.5715
Brier Score 0.5639 0.2952
ECE 0.2569 0.0946
Coverage 100.0% 100.0%

Accuracy by Public Tier

Tier Items Zero-Shot CueReflex-E4B v0.3
Easy 48 48 / 48 (100.00%) 48 / 48 (100.00%)
Original 72 65 / 72 (90.28%) 70 / 72 (97.22%)
Hard 111 37 / 111 (33.33%) 67 / 111 (60.36%)

On JevBench (v0.2)

https://benchmarkheaven.com/jev-models

Screenshot 2026-12-01 at 4.28.05β€―PM

Downloads last month
128
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for oidlabs/cue-reflex-4B

Finetuned
(525)
this model