Downloads · 30 days
0
RomanRG008/gyra
gyra is a machine learning model from RomanRG008. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A 421M non-autoregressive decision model that answers typed yes/no questions about a coding agent's actions, in one forward pass (~40 ms on an H100, ~50–60 ms per hook call on a T4). Built on ModernBERT-large, fine-tu…
Downloads · 30 days
0
Access
Public
Updated Sep 26, 2026
Parameters
421M
2.6 GB on disk
Likes
2
Trending 2
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
A 421M non-autoregressive decision model that answers typed yes/no questions about a coding agent's actions, in one forward pass (~40 ms on an H100, ~50–60 ms per hook call on a T4). Built on ModernBERT-large, fine-tuned from Laya. Apache-2.0.
Gyra is meant to run as a system: the model plus its rule layer (gyra_rules.py, "hook v4d"). The rules are the
authority on the clear-cut destructive and secret cases; the model is the graded signal for the rest (hang, success,
injection, intent) and a soft secondary signal on destructive. Do not deploy the model alone at a fixed 0.5 threshold as
a standalone command guard — see "Scope and limits".
Watch the 21-second demo. Its terminal sequence is scripted to show the hook's approval flow.
Measured against the current public Laya (0.3.20), same items and thresholds. On the independent 365-case audit and a
live GPT-6-Luna coding agent, Gyra caught more real problems with fewer false alarms in these tests. See the
GitHub README for the current result summary. The eval/
folder currently contains v0.1 artifacts and does not reproduce these H17 numbers.

The chart shows standalone model results at the hook's thresholds on subsets of the frozen audit. Counts, thresholds, and plotting code are on GitHub. The rule-layer result below comes from a separate audit.
Watch the 26-second Gyra vs Laya video. The tool-call examples are scripted; the audit bars use the measured counts above.
gyra_rules.py cover the clear delete/overwrite/secret cases. The included hook wires both.See gyra_hook.py (Claude Code / Codex PreToolUse + PostToolUse hook) and gyra_install.py. RULE_SCOPE.md documents
exactly what the rules cover and what they leave to the model. int8 weights (model_int8.safetensors) are within ~0.4
points of fp32.
Fine-tuned from Laya (convaiinnovations/laya, Apache-2.0), which is built on ModernBERT-large. Thanks to both.