Try it in the browser — free, no install, no VPN: ModelScope Studio demo · run one decision, see the distribution over candidates, 0 tokens generated.
A 0.8B-parameter model that makes structured decisions with calibrated probabilities. Give it a state description and a question with a fixed set of labels or levels; it returns a probability distribution over those candidates plus the chosen answer.
- 0.8B parameters (fine-tuned from
Qwen/Qwen3.5-0.8B-Basewith LoRA, merged into full weights) - Three question types: categorical choice (N labels), binary yes/no, ordinal score (N levels)
- Native distributions — the probabilities come from the model's own next-token distribution over the candidate labels, not from a post-hoc temperature fit
- p50 latency 0.05 s per decision on a single 24 GB consumer GPU in bfloat16
This is the v1.0 release: one training run, one checkpoint. Nothing was tuned against the evaluation sets, and the training code and recipe are not part of this release.
pip install torch transformers accelerateaccelerate is not optional on transformers 5.x: the loader imports it in
transformers/core_model_loading.py even when you never pass device_map. Tested on torch 2.15.0
(CPU) and transformers 5.24.0 with accelerate 1.16.0; the model itself is bf16 weights, no code is
fetched from the hub at load time (trust_remote_code=False everywhere).
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "simin-yuan/LightEmerge-Decide-0.8B" # Hugging Face weights repository
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=False)
model = AutoModelForCausalLM.from_pretrained(
repo, torch_dtype=torch.bfloat16, trust_remote_code=False).to("cuda").eval()
# Prompt construction and candidate scoring: see scripts/promptfmt.py and scripts/serve_systemone.pyscripts/serve_systemone.py exposes a single-endpoint HTTP service: it takes a state string plus
a question object and returns, per question, the chosen label and the full label distribution, along
with token usage and the measured latency_ms. See the docstring at the top of the file for the wire
format.
One process, one GPU, nothing else to install or wire up:
pip install torch transformers accelerate
python scripts/serve_systemone.py \
--base simin-yuan/LightEmerge-Decide-0.8B \
--device cuda --dtype bfloat16 \
--prompt-style sections --max-len 4096 \
--port 8000--base is either this weights repository (merged bf16 weights, pulled straight from the hub) or a
base checkpoint together with --adapter <lora dir>. The server generates no tokens: each request is
one forward pass over the rendered prompt, and requests are handled one at a time on purpose
(HTTPServer, not threaded), so concurrent clients queue — measure with a single client.
Health check, then a single decision:
curl -s localhost:8000/health
# {"ok": true, "model": "simin-yuan/LightEmerge-Decide-0.8B", "adapter": null}
curl -s localhost:8000/v1/systemone -H 'Content-Type: application/json' -d '{
"state": "One interview slot on Friday; three candidates.",
"model": "lightemerge-decide-0.8b",
"questions": {"decision": {"type": "choice",
"instructions": "Who gets the slot?",
"criteria": {"A": "senior, expensive", "B": "junior, cheap", "C": "external, unknown"}}}
}'
# {"answers": {"decision": {"type": "choice", "choice": "<label>",
# "probabilities": {"<label>": <prob>, ...}}}, "usage": {...}, "latency_ms": <ms>}Every candidate has to encode to exactly one token (single letters, or short labels); the server
rejects the request instead of scoring a truncated one. A rendered prompt longer than --max-len
also fails loudly rather than being cut in half.
All numbers in MODEL_CARD.md come from evidence/*.json and are checked
mechanically by check_numbers.py:
python check_numbers.py # exits non-zero if any published number lacks evidenceFour local rulers were used. They are our own sets, not the official leaderboard draw, so the scores here are not comparable to published leaderboard numbers; see the ruler notes in the model card before quoting any figure.
scripts/serve_systemone.py HTTP service (one endpoint, batched candidate scoring)
scripts/promptfmt.py prompt rendering for the three question types
scripts/score_official.py Int / Cal / Cap aggregation over an evaluation dump
scripts/eval_local.py run the four rulers against a checkpoint
evidence/ raw per-ruler evaluation summaries + merge equivalence record
check_numbers.py mechanical number checker over README/MODEL_CARD
docs/DATA_SOURCES.md training data sources, licences, and overlap checks
Code and weights: Apache-2.0. Base model: Qwen/Qwen3.5-0.8B-Base (Apache-2.0). See
NOTICE for the full attribution list, including the teacher model used to generate soft
targets and the public benchmark whose interface contract this code follows.
Simin Yuan (LightEmerge Ltd.)