Run this model with HF Jobs

Run okonomi-inc/Oko-Erabu-400M-v0.1 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/okonomi-inc/Oko-Erabu-400M-v0.1. 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/okonomi-inc/Oko-Erabu-400M-v0.1 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.

Oko-Erabu-400M-v0.1

Oko-Erabu is an English System 1 decision model built on ModernBERT-large.

It answers each question independently and returns probabilities for choices, yes/no decisions and ordered scores. It also ranks candidates by relevance. Decisions require no text generation.

400M parameters · 8,192-token context · 795 MB download.

Use

Run these commands with Python 3.11 on macOS or Linux.

python3.11 -m venv .venv
source .venv/bin/activate
python -m pip install "huggingface_hub>=1,<2"
hf download okonomi-inc/Oko-Erabu-400M-v0.1 --local-dir erabu
cd erabu
python -m pip install -r requirements.txt

Run this example from the downloaded erabu directory. The included loader applies the decision head to the encoder output.

from erabu import Erabu

model = Erabu.from_pretrained(".", device="cpu")  # "mps" or "cuda" also work
result = model.decide(
    state={"order_status": "shipped"},
    questions={"shipped": {
        "type": "noul",
        "instructions": "Has the order shipped?"
    }}
)
print(result["answers"]["shipped"]["probabilities"])
model.close()

CPU output (rounded): {"false": 0.0028, "true": 0.9972}.

Keep the model loaded across requests. For choices, supply a criteria dictionary of option IDs and descriptions. For scores, supply an ordered list of descriptions. Use model.rerank(query, candidates) to rank candidates by relevance.

Training

We fine-tuned the full encoder and its decision head on typed questions, including science questions from OpenBookQA and QASC. The release averages two checkpoints equally. It stores the encoder in BF16 and the decision head in FP32.

Evaluation

Evaluation Result
LocalLLaMA/typed-decisions accuracy 78.35%
Typed-decisions Brier ↓ 0.05231
Decision Index 0.3, public score 30.77
Decision Index 0.3, raw score 49.00

We measured these results on CUDA with BF16 using the included runtime. On the 2,000 Typed Decisions test questions, accuracy was 84.33% for yes/no, 76.00% for choices and 75.63% for ordered scores. Reversing the options preserved the winning answer on all 600 choice questions. Training covers several task families in these benchmarks.

Limits

Probabilities describe the options you supply. If every option is a poor fit, one still ranks first. Include an insufficient-evidence option when the task allows it, and check thresholds on examples from your application.

Credits

Developed by Okonomi. Based on ModernBERT-large, by Answer.AI, LightOn and collaborators.

Downloads last month
44
Safetensors
Model size
0.4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for okonomi-inc/Oko-Erabu-400M-v0.1

Finetuned
(445)
this model

Datasets used to train okonomi-inc/Oko-Erabu-400M-v0.1

Space using okonomi-inc/Oko-Erabu-400M-v0.1 1

Evaluation results

  • LocalLLaMA/typed-decisions leaderboard
  • Accuracy View evaluation results
    Specialist. Fine-tuned with train-split examples. CUDA BF16, single candidate head. All 400 test cases (2,000 decisions). Questions scored independently in batches and regrouped by case. ECE uses 10 bins of top-option confidence.
    0.78 *
  • Kl From Gold View evaluation results
    Specialist. Fine-tuned with train-split examples. CUDA BF16, single candidate head. All 400 test cases (2,000 decisions). Questions scored independently in batches and regrouped by case. ECE uses 10 bins of top-option confidence.
    0.1 *
  • Brier View evaluation results
    Specialist. Fine-tuned with train-split examples. CUDA BF16, single candidate head. All 400 test cases (2,000 decisions). Questions scored independently in batches and regrouped by case. ECE uses 10 bins of top-option confidence.
    0.05 *