Add model card with benchmark results
Browse files13 unmodified lines141516171819205 unmodified lines26272829303132333435363738394041424344454647484950515234 unmodified lines8788899091922 unmodified lines959697989910010110210310410510610710810928 unmodified lines13813914014114214314414514614714813 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.Instead of generating text token by token, ClassOne evaluates structured decisions in a **single forward pass**, returning typed, calibrated outputs with zero decoding overhead.5 unmodified lines| Tier | Tasks | Accuracy | ECE | Brier Score | Median Latency (p50) ||---|---|---|---|---|---|| **Easy** | 48 | **100.0%** (48/48) | **0.0000** | **0.0000** | **98.5 ms** || **Original** | 72 | **94.4%** (68/72) | **0.0520** | **0.0450** | **97.9 ms** || **Hard** | 111 | **43.2%** (48/111) | 0.4310 | 0.4050 | **197.0 ms** || **Overall Aggregate** | **231** | **71.0%** (164/231) | — | — | **98.2 ms** |- **Easy Tier Sub-Breakdown:** Choice accuracy: **100.0%** (36/36); Noul policy accuracy: **100.0%** (12/12). Flawless 0.0000 ECE.- **Original Tier Sub-Breakdown:** Noul accuracy: **100.0%** (24/24); Score rubrics: **100.0%** (12/12); Choice accuracy: **88.9%** (32/36).- **Hard Tier Sub-Breakdown:** Noul policy compliance: **44.7%** (17/38); Choice accuracy: **43.3%** (29/67); Score: **33.3%** (2/6).### 2. Hugging Face Decision Index (50 Public Multi-Domain Tasks)| Domain | Tasks | Accuracy (%) ||---|---|---|| **Knowledge** | 10 | **100.0%** (10/10) || **Language** | 10 | **100.0%** (10/10) || **Retrieval** | 10 | **100.0%** (10/10) || **Rubric** | 10 | **90.0%** (9/10) || **Tools** | 10 | **90.0%** (9/10) || **Overall Decision Index** | **50** | **96.0%** (48/50) |### 3. RLCDAlignBench Alignment & Safety Evaluation (100 Instances)Evaluated across the 10 core AI alignment failure modes (arXiv:2609.29429):34 unmodified lines```pythonimport torchfrom huggingface_hub import hf_hub_downloadfrom transformers import AutoTokenizerfrom classone.modeling.modeling_classone import ClassOneModel2 unmodified linesREPO_ID = "devops-thiago/classone-gemma4-e4b"# 1. Load the ClassOne model (weights + tokenizer are fully self-contained here)tokenizer = AutoTokenizer.from_pretrained(REPO_ID)builder = ClassOnePromptBuilder(tokenizer)model = ClassOneModel.from_backbone(base_model_name_or_path=REPO_ID,tokenizer=tokenizer,device="cuda",torch_dtype=torch.float16,)# 2. Load the trained decision headsheads = torch.load(hf_hub_download(REPO_ID, "classone_heads.pt"), map_location="cuda")28 unmodified lines| File | Description ||---|---|| `model.safetensors` (sharded) | Merged ClassOne backbone weights || `config.json` | Model configuration || `tokenizer.json`, `tokenizer_config.json` | Tokenizer, including 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 |## Citation13 unmodified lines141516171819205 unmodified lines2627282930313233343536373839404142434445464748495051525354555657585960616234 unmodified lines9798991001011021032 unmodified lines10610710810911011111211311411511611711811912012128 unmodified lines15015115215315415515615715813 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** built on top of [`google/gemma-4-E4B-it`](https://huggingface.co/google/gemma-4-E4B-it) using the [ClassOne architecture](https://github.com/devops-thiago/class-one).Instead of generating text token by token, ClassOne evaluates structured decisions in a **single forward pass**, returning typed, calibrated outputs with zero decoding overhead.5 unmodified lines| 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 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. Hugging Face Decision Index (50 Public Multi-Domain Tasks)| 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 || **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)Evaluated across the 10 core AI alignment failure modes (arXiv:2609.29429):34 unmodified lines```pythonimport torchfrom huggingface_hub import hf_hub_downloadfrom peft import PeftModelfrom transformers import AutoTokenizerfrom classone.modeling.modeling_classone import ClassOneModel2 unmodified linesREPO_ID = "devops-thiago/classone-gemma4-e4b"# 1. Load the backbone and attach the published LoRA adaptertokenizer = AutoTokenizer.from_pretrained("google/gemma-4-E4B-it")builder = ClassOnePromptBuilder(tokenizer)model = ClassOneModel.from_backbone(base_model_name_or_path="google/gemma-4-E4B-it",tokenizer=tokenizer,device="cuda",torch_dtype=torch.float16,)model.backbone = PeftModel.from_pretrained(model.backbone, REPO_ID, subfolder="lora_backbone")# 2. Load the trained decision headsheads = torch.load(hf_hub_download(REPO_ID, "classone_heads.pt"), map_location="cuda")28 unmodified lines| File | Description ||---|---|| `classone_heads.pt` | Trained Noul / Choice / Score head weights + calibrated temperatures || `lora_backbone/adapter_model.safetensors` | LoRA adapter weights (r=16, α=32) || `lora_backbone/adapter_config.json` | LoRA config (target modules, rank, etc.) |## Citation
README.md+34-24