Instructions to use maxgfr/s5-lite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use maxgfr/s5-lite with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf maxgfr/s5-lite # Run inference directly in the terminal: llama cli -hf maxgfr/s5-lite
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf maxgfr/s5-lite # Run inference directly in the terminal: llama cli -hf maxgfr/s5-lite
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf maxgfr/s5-lite # Run inference directly in the terminal: ./build/bin/llama cli -hf maxgfr/s5-lite
Use Docker
docker model run hf.co/maxgfr/s5-lite
- Llama new
- LM Studio
- Jan
- Ollama
How to use maxgfr/s5-lite with Ollama:
ollama run hf.co/maxgfr/s5-lite
- Unsloth Desktop
- Docker Model Runner
How to use maxgfr/s5-lite with Docker Model Runner:
docker model run hf.co/maxgfr/s5-lite
- Lemonade
How to use maxgfr/s5-lite with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull maxgfr/s5-lite
Run and chat with the model
lemonade run user.s5-lite-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf maxgfr/s5-lite# Run inference directly in the terminal:
llama cli -hf maxgfr/s5-liteBuild from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf maxgfr/s5-lite# Run inference directly in the terminal:
./build/bin/llama cli -hf maxgfr/s5-liteUse Docker
docker model run hf.co/maxgfr/s5-lites5-lite
Published without a gate. This checkpoint is a longer run (8,000 steps) added for the demo outside the three pre-registered s5 bets, which all failed; the s5-lite gates were read on the model those rules named (Aβ², seed 0) and failed too. Read against the same gates, this file reaches 0.696 on the bench (bar 0.65) but answers 21 of the 30 English demo cases (bar 90 %) and stays below the majority class on four test sets: its numbers below are reported, not claimed.
What it is good for: a playground for questions you write yourself, not a product: 26 % of its answers flip when the definitions are paraphrased, and four test sets fall below their majority class. For the models that fit a real project (end of turn, tool routing), see Use it for real.
A 17M-parameter decision model whose options cannot see each other. You give it a state, a question and options (each with a one-line definition); one forward pass returns calibrated probabilities over the options. It ships as a single 20.7 MB GGUF file (q8_0) and runs in the browser through WebAssembly, in about 20 ms per decision.
- Demo: huggingface.co/spaces/maxgfr/s5-lite (everything runs in your browser)
- Code: github.com/maxgfr/skycmd, 100 % Rust (training with mlx-rs, inference engine compiled to wasm32)
- All results, failures included: results page
- Technical report: maxgfr.github.io/skycmd/paper
- Pre-registration: docs/s5-prereg.md (the s5 bets, which failed; this checkpoint was added outside them (amendment 3) and published without a gate)
- Data: tested on skycmd-decisions, skycmd-evals; its training build (
sky-data s5-build) is not republished; its sources are pinned in DATA_LICENSES.md - Every demo, with its verdict: the skycmd Space
What is different: the "iso" architecture
The encoder is Ettin-17M (ModernBERT), fine-tuned in full. Unlike the usual format, where every option attends to every other option and to its own key, s5-lite isolates them:
state β attends to the state
question β attends to the state and the question
option i β attends to the state, the question and option i only (shared positions)
Each option is read through its definition only: the key you give it (billing, yes, A)
never reaches the model. Two properties follow by construction and are checked by exact tests
(to 1e-6, natively and in WASM), not measured:
- reordering the options cannot change any probability;
- renaming the keys, including swapping yes and no, cannot change any probability.
The state is encoded once and reused for every question asked about it.
Results
All numbers come from the pre-registered evaluation of the project. This checkpoint (long-b-s0)
is a longer run (8,000 steps) of the iso configuration, added for the demo outside the
pre-registered bets and chosen by validation NLL; its numbers are reported, not claimed.
| set | accuracy [95% CI] | note |
|---|---|---|
| typed-decisions test (2,000 questions) | 0.696 [0.675, 0.716] | oscar-1-17m scores 0.682 on the same records |
| amazonpolarity (zero-shot) | 0.771 | majority class 0.523 |
| wikitoxic toxicaggregated (zero-shot) | 0.674 | majority class 0.509 |
| hwu64 (zero-shot, 8 options) | 0.763 | contamination through the teacher not excluded |
| sib200 en (zero-shot, 7 options) | 0.549 | majority class 0.250 |
| demo cases (English) | 21 / 30 |
Robustness and coherence (test sets held out of training):
- label reassignment (the yes/no swap of arXiv 2609.26758): 0 % flips, as guaranteed;
- paraphrased definitions: 26 % of answers flip (accuracy 0.696 β 0.602), so robustness to wording is learned, not guaranteed;
- distractors (JevOut-lite): 6.8 % flips under the worst distractor;
- 8-bit quantization (this file against its f32 weights): the ECE moves by β0.0045 to +0.0173 across the test sets, +0.0037 on the typed-decisions test (0.0883 β 0.0920).
Limitations
- Imbalanced yes/no tasks. On four test sets it does worse than always answering the majority class (biasframes intent and sex, wikitoxic insult and threat): it over-predicts the rare positive class. Do not use it as a guardrail without per-task thresholds.
- Calibration: the 2,000-step finalists of the same configuration were underconfident on typed decisions (mean confidence 0.59 for an accuracy of 0.71 on validation); the temperatures were fitted on a validation set dominated by other sources. Not measured on this checkpoint.
- No controlled escalation: with the pre-registered calibration data, Learn-then-Test certified no acceptance threshold at Ξ± β€ 10 %. With every English calibration question, which are not exchangeable with the bench, it would accept 11.5 % of the bench at Ξ± = 5 %, and the error of those answers is 7.0 %: the guarantee does not survive the shift.
- English only (there is no French version).
- It is a demo and research artifact, not a production classifier.
Usage
The file runs in the skycmd engine (browser, Node, Python, CLI, server), not in llama.cpp.
cargo install --git https://github.com/maxgfr/skycmd sky-serve # the `skycmd` binary
skycmd decide --model s5-lite.gguf --request req.json --pretty
{
"state": "Hi, I was charged twice for my March subscription, can you send the money back?",
"questions": {
"category": {
"type": "choice",
"instructions": "Which category does this customer message belong to?",
"criteria": {
"billing": "Invoices, charges, payments or refunds.",
"bug": "Something in the app is broken or crashes.",
"account": "Login, password or profile problems.",
"unsure": "None of the listed categories fits the message."
}
}
}
}
Python: pip install "skycmd @ git+https://github.com/maxgfr/skycmd#subdirectory=crates/sky-py",
then skycmd.Model("s5-lite.gguf").decide({...}). In the browser, see the
install guide.
Training
- Recipe: AdamW (head learning rate Γ 20), warmup then linear decay, EMA of the weights, soft cross-entropy + Brier + RPS on ordered questions, symmetric KL between paraphrase and distractor pairs; 8,000 steps of batch 32, bf16, on an Apple M5; temperatures per question type and option count fitted on a validation split.
- Data (English): gold labels of permissively licensed datasets (typed-decisions train split, BoolQ, MNLI, ARC, CommonsenseQA, Banking77, Open-Jev CC0 traces, tasksource sets and others), soft labels from laya-typed-decisions (Apache-2.0) run locally and kept only where they agree with the gold, and data generators written in code (rules, tone, buried facts, paraphrase and distractor pairs, coherence families). No data generated by GLM is used. Evaluation and demo states were removed from training (13-gram coverage and MinHash near-duplicates).
- Full list and licenses: DATA_LICENSES.md.
Files
s5-lite.gguf: q8_0 encoder, f32 readout, calibrated temperatures, tokenizer (general.architecture = skycmd-iso). 20,684,640 bytes, sha256545070d1aa7873440d34ba42b9081f72aae6b8eb42f2fa0a5a63300c717c6c0e.
- Downloads last month
- 81
We're not able to determine the quantization variants.
Model tree for maxgfr/s5-lite
Base model
jhu-clsp/ettin-encoder-17m
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf maxgfr/s5-lite# Run inference directly in the terminal: llama cli -hf maxgfr/s5-lite