Commercial demo · model guide
One model.
Four decisions.
Your deployment.
Stage18 answers English typed questions in one encoder pass. The same bundle runs in PyTorch, NumPy, PHP, JavaScript and Rust. This deployment serves it from PHP, so the browser gets an answer, not the weights; client-side and embedded modes remain available.
English model
Stage18
| parameters | 14 239 236 |
|---|---|
| layers / hidden / FF | 12 / 256 / 1 024 |
| state | 383 input tokens |
| question | 192 tokens |
| span | 32 tokens |
| heads | choice, noul, score, span |
| tokenizer | WordPiece 30 531 |
| language | English |
choice picks an option. noul scores a statement.
score ranks an ordered level. span extracts a fragment.
Questions are isolated by a block mask, so their order does not change an answer.
State beyond the limit is silently truncated; an overlong question is rejected.
This deployment
Decidora Demo
| runtime | PHP 8.1+, pure PHP |
|---|---|
| C kernel | off (DECIDORA_KERNEL=none) |
| BLAS | off (DECIDORA_BLAS=none) |
| bundle | ../models/decidora-13.8m-stage18/int8, outside public/ |
| web root | public/; no nginx rewrite needed |
| API | POST api/answer.php, JSON in and out |
| limits | read-only: 13 fixed cases; 30 requests/minute/IP |
| latency | 0.44-0.76 s per question, 1.21 s for four questions |
The UI is the same test bench as the browser demo. Only the inference source changed:
app.js calls api/answer.php instead of loading
model.bin. The visual design is unchanged.
Flexibility
One bundle, several deployment modes
Browser / client-side
Load the int8 bundle in JavaScript and answer locally. Zero server cost and instant interaction; the weights are downloadable by design.
PHP server / this demo
Keep the bundle on the server, call api/answer.php and return typed
answers. Pure PHP, no native build; this is the mode used here.
Python / GPU service
PyTorch or NumPy for throughput, batching and GPU. The reference implementation and the fastest path for larger traffic.
Embedded / native
PHP with the C kernel reaches about 5.4 ms; the Rust int8 port covers
noul for small native deployments.
Multilingual model
Guard
| parameters | 2 097 153 |
|---|---|
| features | hashed char n-grams and message features |
| window | 1 536 characters; chunk 1 536 / 768 |
| language | 22 languages |
| heads | noul spam/ham only |
| runtime | PHP backend here; PyTorch, NumPy, JS and Rust available |
Guard is not a multilingual Decidora. It does not do intent, sentiment, or span
extraction. English antispam goes to Decidora; non-English antispam goes to Guard.
This demo scores Guard in pure PHP; the 8 MB weights stay in models/.
Threat model
What this deployment protects
Protected
Casual download of model.bin, copying the bundle from a public page,
and running the model offline after visiting the demo. The browser has no weights
to cache.
Not protected
A compromised server, a hosting administrator, or someone with filesystem access. The API also returns probabilities, which makes output distillation easier. Remove them from the response if you publish the demo widely.
Operational limits
This public demo rate-limits requests and answers one PHP process at a time. Use php-fpm, a web-server rate limit and a cache in front for commercial traffic.
Test