Skejja
Small, local, multilingual typed decisions for AI agents, fast enough for a Raspberry Pi.
Skejja is a System One decision model: it does not generate text. It reads a state (text or JSON) and one or more typed questions, and returns probabilities in a single forward pass:
- Choice: a probability distribution over closed options;
- Noul: the probability of a yes/no answer;
- Score: a position on an ordinal scale (a Choice over the levels, with an expected value).
It has 57M parameters, runs on onnxruntime without PyTorch, works in English, Italian, Spanish, German and French,
and speaks the same POST /v1/systemone API as cloud System One services, so their clients work by changing only
the URL. The name comes from Italian scheggia, a splinter: small and fast.
Status: v0.1.0. Model on Hugging Face, try it in your browser, package on PyPI.
At a glance
| edge32k-ft6 (int8) | Where it was measured | |
|---|---|---|
| Choice accuracy, 8 options, 5 languages | 0.873 (intents never seen in training: 0.741) | MASSIVE benchmark, PyTorch fp32 |
| Yes/no AUROC | 0.961 | same |
| Choice latency, 1 / 4 threads | 380 / 182 ms | Raspberry Pi 4, dynamic int8 |
| Yes/no latency, 1 / 4 threads | 126 / 81 ms | same |
| Peak RAM | 216–227 MB | same |
| Choice latency, 1 / 4 threads | 34.5 / 14.8 ms | Mac (Apple Silicon), an approximation only |
Sources: metrics_edge32k-ft6.csv, pi4_20261014-185806.json, latenza_julia-1_ft6_mac.json. The Pi 4 had no heatsink and throttled, so its latencies are upper bounds. No Raspberry Pi 5 numbers yet.
Install
pip install "skejja[server]" # add [mcp] for the MCP server
skejja --version
The model is an archive of about 208 MB. Without a path, skejja downloads the default model
(edge32k-ft6-int8) on first use, checks its SHA-256 and caches it ($SKEJJA_HOME, else ~/.cache/skejja).
To use an archive you downloaded yourself (release page or Hugging Face), pass its folder:
tar xzf skejja-edge32k-ft6_onnx-int8.tar.gz
skejja serve skejja-edge32k-ft6_onnx-int8 --port 8080
Use
HTTP server (listens on 127.0.0.1 by default; set SKEJJA_API_KEY before exposing it):
skejja serve --port 8080
curl -s localhost:8080/v1/systemone -H 'Content-Type: application/json' -d '{
"state": "puoi spegnere le luci della cucina?",
"questions": {
"action": {"type": "choice", "criteria": {
"lights_on": "turn on the lights", "lights_off": "turn off the lights", "music": "play music"}},
"off": {"type": "noul", "instructions": "Does the user want to turn off the lights?"}}}'
Python, without a server:
from skejja import Skejja, SystemOne
from skejja.models import resolve_bundle
engine = SystemOne(Skejja(str(resolve_bundle())), name="skejja-edge32k-ft6")
engine.run({"state": "turn the music down", "questions": {"q": {"type": "choice",
"criteria": {"vol_down": "lower the volume", "vol_up": "raise the volume"}}}})
Also available: an MCP server for agents (skejja mcp, stdio) with a skill file that
tells an agent when and how to use it, a one-shot command (skejja run request.json), a Dockerfile and
a demo that runs in the browser (onnxruntime-web, nothing sent to a server). The full contract, the extras (per-question calibration, input truncation) and
the differences from cloud services are in docs/api.md.
Tips. Write options as concrete actions in English; the state can be in any of the five languages. Phrase
yes/no questions as in training, "Does the user want to ?": other phrasings can give answers near
0.5. Prefer one yes/no per action to a catch-all "something else" option. For the questions that matter, give a few dozen labelled
examples, in their real proportions, to POST /v1/skejja/calibrations: on unseen yes/no questions this takes the
calibration error from 0.150 to 0.041 with 64 examples (metrics_fewshot.csv).
Compared with other open models
Same benchmark and protocol, run by us; the other models are used as released (zero-shot), with only a temperature or Platt calibration fitted on the calibration files. "Unseen" means the four MASSIVE scenarios held out from Skejja's training.
| Parameters | Choice, all / unseen | Yes/no AUROC | |
|---|---|---|---|
| Skejja edge32k-ft6 | 57M | 0.873 / 0.741 | 0.961 |
| Laya multilingual | 322M | 0.600 / 0.610 | 0.744 |
| GLiClass multilang edge (Skejja's base) | 143M | 0.547 / 0.597 | 0.697 |
| Julia 1 | 144M | 0.514 / 0.514 | 0.503 |
Sources: metrics_baseline.csv (PyTorch fp32), metrics_julia-1.csv, method in docs/fase3_julia.md. MASSIVE intents are close to Skejja's training data, so this table shows what Skejja was built for, not general ability. Julia 1 may have seen MASSIVE during training; its published results are on easier, broader tasks.
Limitations
- Short inputs. Trained on inputs up to 192 tokens. On a real task with long contexts (deciding whether a voice assistant should hand a turn to a larger model, inputs over 512 tokens) it reached AUROC 0.79 and was not good enough (real_requests.md).
- Real requests are harder than benchmarks. On real requests to the author's voice assistant, routing to 5 destinations reached 0.589 (124 requests with an unambiguous label); yes/no questions on concrete actions (mail, web search) reached AUROC about 0.86 (167 requests). Catch-all options and user jargon are the main failure modes (same document).
- Not a general System One. Reasoning, entailment between two texts and Choice with many options are near chance on S1MB english-v1 (fase2_ampiezza.md).
- New yes/no questions without examples are not calibrated: AUROC 0.840, ECE 0.150 on unseen intents.
- Options in the language of the sentence score 2.4 points below English options (0.849 vs 0.873), German the weakest.
- Noisy unseen split: about 31% of the MASSIVE labels of the unseen sentences are questionable (bench/data/annotations/).
How it was built
A GLiClass multilang edge encoder with its vocabulary trimmed to 32,768 tokens for five languages, fine-tuned on MASSIVE (four scenarios held out), multilingual yes/no data, agent-action checks and breadth data labelled by a teacher model, then exported to ONNX and quantized to int8. Every candidate was accepted or rejected by rules fixed before training (paired bootstrap, Holm correction); two later rounds were rejected that way (fase2_giro_G.md). Model card: docs/model_card.md.
| Folder | Contents |
|---|---|
runtime/ |
skejja_infer.py (inference without PyTorch) and the skejja package: API, server, MCP, CLI |
bench/ |
benchmark builder (reproduces the data byte for byte), shared metrics, evaluation scripts, data |
training/ |
vocabulary trimming, fine-tuning, ONNX export |
baselines/ |
measurements of other models |
kit/ |
Raspberry Pi benchmark kit |
skills/, web/ |
skill file for agents, browser demo |
results/ |
every number in the documents comes from a CSV or JSON here |
docs/ |
phase reports and methods (mostly in Italian) |
License
Code and model: Apache License 2.0 (LICENSE); attributions for the base model and the data in NOTICE. Benchmark data derives from MASSIVE (CC BY 4.0). "Jev", "System One" and "TypeSafe" belong to their owners; Skejja is not affiliated with them and uses none of their code.
Metadata
Release files for skejja 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skejja-0.1.0.tar.gz | 35.1 kB | With provenance | Details for skejja-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skejja-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for skejja-0.1.0-py3-none-any.whl |
Total release size: 63.3 kB
Release files / skejja-0.1.0.tar.gz
| Download URL | skejja-0.1.0.tar.gz |
|---|---|
| Size | 35.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
764c635fe4d47c886f1b8da9f8b079750f907b21e3365eb992f7115ffc9c4865
|
|
BLAKE2b-256 checksum How to use checksums |
d871005479e09beecfbd807b49050aaab086b30f742fa9b5979e438ed08694d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / skejja-0.1.0-py3-none-any.whl
| Download URL | skejja-0.1.0-py3-none-any.whl |
|---|---|
| Size | 28.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3fec1f9d11a7729e078d0a3b47410dfa273e6e58a2e1ffe0508f56b65739b04
|
|
BLAKE2b-256 checksum How to use checksums |
388b9effafa21865737e5827ae68497852a54e64ff87aba2618dbeed9e118f42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for skejja 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for skejja-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.