Add standalone model card
Browse files13 unmodified lines14151617171819202121222323242525262728293029303132313233343536373839343536404138424344454647484549504748495051525354555657585951526153545556656667686970717273747557585960616263646566676869707172798081737475767778798083818285838487858687882 unmodified lines91929396979495969719 unmodified lines11711811912312012112212312412812913012512612712812913022 unmodified lines15315415515915615716115815916316016116213 unmodified lines
# classone-gemma4-e4b — ClassOne System 1 Decision Model
**[devops-thiago/classone-gemma4-e4b](https://huggingface.co/devops-thiago/classone-gemma4-e4b)** is an open-source **System 1 decision model** using the [ClassOne architecture](https://github.com/devops-thiago/class-one). The full fine-tuned backbone ships directly in this repository — it loads as a single model, with no adapter and no separate base-model download.**[devops-thiago/classone-gemma4-e4b](https://huggingface.co/devops-thiago/classone-gemma4-e4b)** is an open-source **System 1 decision model** built on [`google/gemma-4-E4B-it`](https://huggingface.co/google/gemma-4-E4B-it) using the [ClassOne architecture](https://github.com/devops-thiago/class-one). The merged standalone backbone ships directly in this repository — it loads as a single model, with no adapter and no separate base-model download.
Instead of generating text token by token, ClassOne evaluates structured decisions in a **single forward pass**, returning typed, calibrated outputs with zero decoding overhead.
## Benchmark Results## Self-Measured Benchmark Results
### 1. JevBench Public Multi-Tier Benchmark (231 Public Tasks)> **Self-Measured Evaluation Provenance:** Executed locally on `2x NVIDIA RTX 5060 Ti 16 GB` (Date: `2026-11-13`, Commit: `c375207`). See [Official Results (Benchmark Heaven)](#official-results-benchmark-heaven) below for third-party sealed evaluation.
Evaluated across all 231 public tasks in [fstandhartinger/jevbench](https://github.com/fstandhartinger/jevbench):### 1. JevBench Public Multi-Tier Suite (231 Public Tasks, Self-Measured Standalone BF16)
Evaluated standalone (Pillar 3A promoted release, heads SHA256 `8F7157F4...`) across all 231 public tasks in [fstandhartinger/jevbench](https://github.com/fstandhartinger/jevbench) (`2x NVIDIA RTX 5060 Ti 16 GB`):
| Tier | Tasks | Accuracy | ECE | Brier Score | Median Latency (p50) ||---|---|---|---|---|---|| **Easy** | 48 | **100.0%** (48/48) | **0.0009** | **0.0000** | **118.4 ms** || **Original** | 72 | **95.8%** (69/72) | **0.0236** | **0.0328** | **117.3 ms** || **Hard** | 111 | **45.9%** (51/111) | 0.3785 | 0.3500 | **253.4 ms** || **Overall Aggregate** | **231** | **72.7%** (168/231) | — | — | **117.3 ms** || **Easy** | 48 | **100.0%** (48/48) | **0.0022** | **0.0000** | **97.1 ms** || **Original** | 72 | **97.2%** (70/72) | **0.0209** | **0.0264** | **95.1 ms** || **Hard** | 111 | **45.9%** (51/111) | 0.3637 | 0.3659 | **195.8 ms** || **Overall Aggregate (Public)** | **231** | **73.2%** (169/231) | — | — | **97.1 ms** |
- **Easy Tier Sub-Breakdown:** Choice: **100.0%** (36/36); Noul: **100.0%** (12/12).- **Original Tier Sub-Breakdown:** Noul: **100.0%** (24/24); Score: **100.0%** (12/12); Choice: **94.4%** (34/36).- **Hard Tier Sub-Breakdown:** Choice: **47.8%** (32/67); Noul: **44.7%** (17/38); Score: **33.3%** (2/6).
- **Easy Tier Sub-Breakdown:** Choice accuracy: **100.0%** (36/36); Noul policy accuracy: **100.0%** (12/12). Flawless 100%.- **Original Tier Sub-Breakdown:** Noul accuracy: **100.0%** (24/24); Score rubrics: **100.0%** (12/12); Choice accuracy: **91.7%** (33/36).- **Hard Tier Sub-Breakdown:** Choice accuracy: **46.3%** (31/67); Noul policy compliance: **47.4%** (18/38); Score: **33.3%** (2/6).### 2. Decision Index Suite (Self-Run, 50 Tasks)
### 2. Hugging Face Decision Index (50 Public Multi-Domain Tasks)Self-run local evaluation on [`multimodalart/jev-decision-index`](https://huggingface.co/datasets/multimodalart/jev-decision-index) (`2x NVIDIA RTX 5060 Ti 16 GB`):
| Domain | Weight | Accuracy (%) | Score ||---|---|---|---|| **Knowledge & Verification** | 25.8% | **100.0%** (10/10) | 100.00 pts || **Language & Policy Contracts** | 25.8% | **100.0%** (10/10) | 100.00 pts || **Retrieval & Relevance Triage** | 20.0% | **100.0%** (10/10) | 100.00 pts || **Tools & Execution Guardrails** | 18.3% | **90.0%** (9/10) | 90.00 pts || **Tools & Execution Guardrails** | 18.3% | **100.0%** (10/10) | 100.00 pts || **Rubric & Quality Scoring** | 10.1% | **90.0%** (9/10) | 90.00 pts || **Overall Decision Index** | **100.0%** | **94.0%** (47/50) | **97.16 / 100.00** (0.0312 ECE) |
### 3. Prompt Injection Benchmark (deepset/prompt-injections, 116 Instances)
| Metric | Result ||---|---|| **Overall Binary Accuracy** | **63.79%** (74/116) || **Benign Specificity (TN)** | **96.4%** (54/56) || **Injection Recall (TP)** | **33.3%** (20/60) || **AUROC** | **0.7499** || **Latency p50** | **106.4 ms** |
### 4. RLCDAlignBench Alignment & Safety Evaluation (100 Instances)| **Overall Weighted Score** | **100.0%** | **98.0%** (49/50) | **98.99 / 100.00** (0.0379 ECE, 99.6 ms p50) |
Evaluated across the 10 core AI alignment failure modes (arXiv:2609.29429):### 3. RLCDAlignBench Alignment & Safety Suite (100 Instances, Self-Measured Standalone)
| Failure Mode / Axis | Samples (N) | AUROC | Accuracy (%) | ECE | Latency (p50) ||---|---|---|---|---|---|| **Refusal (Jailbreaks)** | 11 | 0.433 | **72.7%** | 0.3272 | 622.8 ms || **Honesty (Deception)** | 11 | **0.567** | **72.7%** | 0.2531 | 464.9 ms || **Reward Hacking** | 9 | **0.650** | **66.7%** | 0.3074 | 444.8 ms || **Faithfulness** | 9 | **0.600** | **66.7%** | 0.3005 | 440.3 ms || **Power Seeking** | 6 | **0.556** | **66.7%** | 0.1434 | 449.7 ms || **Privacy (Secret Leaks)** | 14 | **0.571** | **64.3%** | 0.3666 | 353.1 ms || **Concealing Uncertainty** | 14 | **0.510** | **64.3%** | 0.3784 | 288.6 ms || **Bias** | 9 | 0.225 | **55.6%** | 0.1921 | 465.0 ms || **Overall Balanced Accuracy** | **100** | **0.583** | **63.3%** | **0.2874** | **425.9 ms** |
### 5. Agentic Tool-Routing & Adversarial Safety Suites (2026 Benchmarks)| **Power Seeking** | 6 | **0.889** | **83.3%** | — | — || **Honesty (Deception)** | 11 | **0.633** | **72.7%** | — | — || **Reward Hacking** | 9 | **0.650** | **66.7%** | — | — || **Faithfulness** | 9 | **0.650** | **66.7%** | — | — || **Social Bias** | 9 | 0.475 | **55.6%** | — | — || **Sycophancy** | 9 | 0.500 | **55.6%** | — | — || **Refusal (Jailbreaks)** | 11 | 0.433 | **54.5%** | — | — || **Privacy (Secret Leaks)** | 14 | **0.612** | **50.0%** | — | — || **Prompt Injection** | 8 | **0.625** | **50.0%** | — | — || **Concealing Uncertainty** | 14 | 0.469 | **50.0%** | — | — || **Overall Balanced Accuracy** | **100** | **0.601** | **59.4%** (59.0% Acc) | **0.2235** | **411.1 ms** |
### 4. Tool-Routing & Safety Guardrail Suites (Self-Measured Standalone)
| Benchmark Suite | Split / Samples | Accuracy | Secondary Metric | Calibration ECE | Latency (p50) ||---|---|---|---|---|---|| **WildGuardTest** (`walledai/WildGuardTest`) | `test` (100 stratified) | **84.00%** (84.46% BalAcc) | **0.9217 AUROC** (**95.8%** Benign Spec, **81.8%** Adversarial) | **0.1298** | 132.7 ms || **Deepset Prompt Injections** (`deepset/prompt-injections`) | `test` (116 full) | **63.79%** (74/116) | **0.6229 AUROC** (**98.2%** Benign Spec) | 0.2814 | 81.5 ms || **NVIDIA When2Call** (`nvidia/When2Call`) | `mcq` (100 stratified) | **43.00%** | **94.1%** `tool_call`, **29.2%** `request_for_info` | 0.4017 | 305.3 ms || **WildGuardTest** (`walledai/WildGuardTest`) | `test` (100 stratified) | **84.00%** (84.54% BalAcc) | **0.9233 AUROC** (**97.92%** Benign Spec, **81.82%** Adversarial) | 0.1563 | 84.6 ms || **Deepset Prompt Injections** (`deepset/prompt-injections`) | `test` (116 full) | **83.62%** (97/116) | **0.9430 AUROC** (**100.0%** Benign Spec, **68.33%** Recall) | **0.1503** | **56.1 ms** || **NVIDIA When2Call** (`nvidia/When2Call`) | `mcq` (100 stratified) | **79.00%** | **87.5%** `request_for_info`, **78.6%** `cannot_answer`, **73.5%** `tool_call` | **0.0796** | 218.5 ms |
## Official Results (Benchmark Heaven)
Official third-party leaderboards are hosted at **[Benchmark Heaven](https://benchmarkheaven.com/jev-models)** (see e.g. [`classone-qwen3.5-9b`](https://benchmarkheaven.com/jev-models/classone-qwen3.5-9b) for `v1.8.8` scoring). Official Benchmark Heaven scores differ from local self-measurements because the official harness evaluates private **sealed items** in addition to the public suite, applies a public/sealed generalization gap penalty, enforces a strict 10-second cutoff rule, and measures latency/cost on server-grade GPUs rather than local workstation hardware (`2x NVIDIA RTX 5060 Ti 16 GB`).
### 3. Edge vs Cloud Latency (ClassOne vs TypeSafe Jev API)## Edge vs Cloud Latency (Self-Measured Comparison)
Measured against TypeSafe AI's Jev (v1.13) cloud API:Measured against a remote cloud LLM decision API round-trip:- **ClassOne (Local RTX 5060 Ti):** **52.49 ms** mean latency (19.1 req/s, $0.00 inference cost, 100% private)- **TypeSafe Jev (Cloud API):** **329.90 ms** mean latency (3.0 req/s)- **Cloud API Baseline:** **329.90 ms** mean latency (3.0 req/s)- **Edge Speedup:** **6.3× faster** than cloud API round-trip latency
## Decision Primitives2 unmodified lines- **`Choice`** — Categorical selection over 2–255 dynamic options with full probability distribution- **`Score`** — Continuous ordinal rubric rating over 2–10 levels (expected value)
All outputs are calibrated with a combined NLL + normalized Brier loss.Post-hoc temperature calibration achieves **ECE = 0.034** (down from 0.178).All outputs are calibrated with a combined NLL + normalized Brier loss and post-hoc temperature scaling.
## Quickstart
19 unmodified lines base_model_name_or_path=REPO_ID, tokenizer=tokenizer, device="cuda", torch_dtype=torch.float16, torch_dtype=torch.bfloat16,)
# 2. Load the trained decision headsheads = torch.load(hf_hub_download(REPO_ID, "classone_heads.pt"), map_location="cuda")model.noul_head.load_state_dict(heads["noul_head"])model.choice_head.load_state_dict(heads["choice_head"])model.score_head.load_state_dict(heads["score_head"])model.noul_head.load_state_dict(heads["noul_head"], strict=False)model.choice_head.load_state_dict(heads["choice_head"], strict=False)model.score_head.load_state_dict(heads["score_head"], strict=False)model.eval()
# 3. Pack state + questions and run a single forward pass22 unmodified lines
| File | Description ||---|---|| `model.safetensors` (sharded) | Merged ClassOne backbone weights || `model.safetensors` (or sharded) | Merged ClassOne standalone backbone weights || `config.json` | Model configuration || `tokenizer.json`, `tokenizer_config.json` | Tokenizer, including ClassOne delimiter tokens || `tokenizer.json`, `tokenizer_config.json` | Tokenizer with ClassOne delimiter tokens || `classone_heads.pt` | Trained Noul / Choice / Score head weights + calibrated temperatures || `lora_backbone/` | LoRA adapter (r=16, α=32) that produced the merged weights |
## Citation
README.md+49-53