An Asteroids-style dogfight for Android where the enemy fighter is flown by Laya, the open-source Jev-style "System One" decision model, running entirely on the phone.
Several times a second the game writes a short battle report ("the player is aiming right at you, two bullets incoming, your hull 1 of 3…") and asks Laya one typed question: which maneuver next? (attack, flank, evade, retreat, take cover). Laya answers with calibrated probabilities in one forward pass, generating no text, and the enemy samples its tactic from them. A reflex layer flies the chosen tactic every frame: steering, lead aiming, trigger and dodging rocks. The HUD shows Laya's live probabilities and latency. Without the model you can practise against a rule-based pilot.
Three pilot modes (menu → "Quem pilota o inimigo"):
- Laya piloto (default): every control is a Laya answer. The game only describes what the ship sees,
then asks two questions per decision: yes/no "Are bullets about to hit you?" and "Where is the player
compared with your nose?" (left, straight or right). Straight means fire. There are no rules and no aim assist.
FlightEvalTest: 80/80 sensible controls on seeded random situations, ~260 ms per decision on a 2-core CI runner. - Laya tático: Laya picks a tactic and an autopilot flies it. Zero-shot, Laya reads the full battle
report poorly here: 5/14 on
PilotEvalTest, where hand-written rules get 11/14. - Laya + regras: Laya's tactic reading reweights a rule-based prior.
What made the difference: zero-shot Laya ignores negations. "No bullets are coming" still got ~0.9 on "bullets?". A description that states only what is true, plus plain yes/no and left/straight/right questions, fixed it.
- Open Releases → latest on this repo from the phone and download
Laya.apk. - Allow installing from your browser when Android asks, then open Laya.
- Tap Baixar modelo (652 MB, Wi-Fi only by default). The system download manager handles it, so you can leave the app and the download resumes if the connection drops.
- After the SHA-256 check, pick a difficulty and tap Jogar contra o Laya. Drag on the left half to fly and hold the right half to fire. First to 5 kills wins.
| Checkpoint | convaiinnovations/laya-multilingual (mmBERT-base, 100+ languages) |
| Phone build | int8 weight-only ONNX from ti3x-m/laya-multilingual-onnx, 100% argmax agreement with PyTorch on 34 reference cases |
| Files | model.onnx + model.onnx_data (615 MB), tokenizer.json (34 MB), laya_config.json; all pinned by SHA-256 |
| Licence | Apache-2.0 |
| Runtime | ONNX Runtime Android (CPU), Hugging Face tokenizers via DJL |
CI runs three jobs on every push:
- Model parity (JVM): a Java port of
laya.common.build_sequenceis checked against 60 randomized golden cases from the Python reference (seelaya-core/src/test/resources). Then the real tokenizer and int8 model run on the publisher's reference cases, and CI comparesinput_ids, markers and probabilities. - APK: builds and publishes
Laya.apkto thelatestrelease. - On-device: an Android emulator runs the full path: the in-app download from Hugging Face, the checksum check, model loading, a decision compared with a reference case, and 40 simulated seconds of a match with Laya flying the enemy.
Job logs are pushed to ci-log-* branches.
The signing key in app/ is a personal sideload key, committed so each build installs as an update.