Run this model with HF Jobs
Run DavidHatley/system-one-mini 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/DavidHatley/system-one-mini. 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/DavidHatley/system-one-mini 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.
Instructions to use DavidHatley/system-one-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DavidHatley/system-one-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="DavidHatley/system-one-mini", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DavidHatley/system-one-mini", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
System One Mini
A 69.3M-parameter DistilBERT encoder with five classification heads that makes five fixed, typed decisions about a software-diagnosis summary: is the task complete, should the failed action be retried, where did the failure come from, what to do next, and is the evidence sufficient. It never generates text. Fine-tuned on one NVIDIA RTX 3060.
Headline: 86.25% macro accuracy (95% interval [85.48, 86.97]) on a final test set whose wording style was written and frozen after the model was chosen. On an earlier wording-shift split used to choose between candidates, the same model scored 59.27%. The project's first model scored 100% on familiar wording and 44.51% on unseen wording while reporting 97% mean confidence; that gap is what the later rounds set out to measure and narrow.
Code, data generator, every evaluation file and the full research log: github.com/davidghatley/system-one-mini. Author: David Hatley (GitHub).
This is an independent experiment. It is not a reproduction of Jev or RLCD, not a chat model, and it cannot answer arbitrary questions.
What it decides
| Decision | Options |
|---|---|
task_complete |
false, true |
should_retry |
false, true |
failure_source |
code, environment, test, dependency, unknown |
next_action |
inspect_code, rerun_tests, inspect_environment, revert_change, escalate |
evidence_sufficient |
false, true |
Input is a complete diagnosis summary in the style of the synthetic data, up to 256 tokens. Do not use it for arbitrary logs, general coding help, real production incidents, causal claims, safety-critical decisions or autonomous agent control.
Training data
DavidHatley/system-one-mini-data:
deterministic synthetic states written by the project's own generator (spec renderer-diversity-v2,
seed 1729). No model-generated text, no external teacher, no paid API and no real user traces.
| Split | States | Wording families |
|---|---|---|
| train | 20,000 | 12: ticket, terminal, conversation, incident, JSON log, XML report, Slack thread, GitHub issue, Jira ticket, stack trace, commit message, PR review |
| validation | 2,000 | same 12 |
| calibration | 2,000 | a separate calibration family |
| development test | 2,000 | a held-out "sealed" family |
final test (release-final-v1, seed 314159) |
2,000 | case_review, written after model selection and excluding the training source manifest |
Training
- Base:
distilbert/distilbert-base-uncasedat revision12040accade4e8a0f71eabdb258fecc2e7e948be. - Shared encoder, then five independent
Linear -> GELU -> Dropout -> Linearheads (rundeep_heads_v2). - Full fine-tuning, 3 epochs, batch 16, learning rate 3e-5, BF16, seed 1729, on one NVIDIA RTX 3060.
- Checkpoint chosen by validation mean NLL. Per-head temperatures fitted on the calibration split only.
Evaluation
All numbers below are copied from provenance/evaluation_summary.json in this repository and from
experiments/ in the GitHub repository. Intervals are 95% bootstrap intervals over states.
Final test (2,000 states, evaluated once)
| Variant | Macro accuracy | NLL | Brier | ECE | Mean confidence |
|---|---|---|---|---|---|
| Raw | 86.25% [85.48, 86.97] | 0.8479 | 0.2630 | 0.1273 | 98.89% |
| Temperature scaled | 86.25% | 0.7133 | 0.3940 | 0.2673 | 63.19% |
| Head (raw) | Accuracy | NLL | ECE | Mean confidence |
|---|---|---|---|---|
task_complete |
100.00% | 0.0004 | 0.0004 | 99.96% |
should_retry |
82.65% | 1.1987 | 0.1677 | 99.24% |
failure_source |
92.95% | 0.2982 | 0.0451 | 97.46% |
next_action |
62.80% | 2.4050 | 0.3641 | 99.17% |
evidence_sufficient |
92.85% | 0.3373 | 0.0593 | 98.63% |
Same final test, every candidate from the project (experiments/confirmatory_v1/evaluation.json, raw):
| Model | Macro accuracy |
|---|---|
| v0 (first model) | 75.32% |
| diversity-v1 | 61.13% |
| diversity-v2 | 62.77% |
| deep-heads-v2 (this model) | 86.25% |
| logistic regression baseline | 45.45% |
Development wording-shift split (used to choose the model, so not an unbiased test)
| Variant | Macro accuracy | NLL | ECE | Mean confidence |
|---|---|---|---|---|
| Raw | 59.27% [58.29, 60.28] | 2.4363 | 0.3740 | 96.58% |
| Temperature scaled | 59.27% | 0.7875 | 0.1476 | 62.39% |
Per head (raw): task_complete 98.05%, should_retry 86.25%, failure_source 19.75%, next_action
61.25%, evidence_sufficient 31.05%.
Where the project started: v0 on unseen wording
The first model (experiments/v0/evaluation.json on GitHub) scored 100.00% on a test set in the
wording it was trained on. On 2,000 states rewritten in wording it had never seen it scored
44.51% macro accuracy [43.44, 45.59] with 97.19% mean confidence; temperature scaling fitted on the
calibration split did not change accuracy and raised NLL from 3.50 to 29.31. The later runs
added wording variety to the training data; this model trains on 12 wording families and uses
depth-2 heads.
Loading
The repository contains custom Transformers code. Pin a revision, because trust_remote_code=True
executes that code.
from transformers import AutoModel, AutoTokenizer
repo = "DavidHatley/system-one-mini"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModel.from_pretrained(repo, trust_remote_code=True).eval()
state = "Latest verification: checks failed. Acceptance: not confirmed. ..."
tokens = tokenizer(state, truncation=True, max_length=model.config.max_length, return_tensors="pt")
outputs = model(**tokens)
print([logits.softmax(-1) for logits in outputs.logits])
For named, temperature-scaled outputs, use load_model and predict from inference.py in this
repository.
Limitations
- Training and evaluation data are entirely synthetic and come from one project-written generator. Accuracy on the final test measures transfer to a new wording style inside the same policy, not real-world diagnosis.
- One training seed and one final test renderer.
- Accuracy depends heavily on wording: 86.25% on the final renderer against 59.27% on the development
renderer, with
failure_sourcefalling to 19.75% andevidence_sufficientto 31.05% on the latter. - Raw predictions are overconfident under wording shift (96-99% mean confidence at 59-86% accuracy). Temperature scaling improved NLL on the final test but worsened ECE (0.1273 to 0.2673). Softmax probability is not a calibrated certainty.
- Fixed schema and option sets; it cannot take new questions.
- Inputs over 256 tokens are truncated.
Provenance
Derived from Apache-2.0 DistilBERT. All added training examples are deterministic, project-authored
synthetic data. Checkpoint, dataset, calibration and evaluation hashes are under provenance/.
Built with PyTorch and Hugging Face Transformers.
- Downloads last month
- 66
Model tree for DavidHatley/system-one-mini
Base model
distilbert/distilbert-base-uncased