Skip to content

Add Flappy Bird local model comparison demo - #10

Open
Alex-Wengg wants to merge 3 commits into
mainfrom
feat/flappy-model-comparison
Open

Alex-Wengg wants to merge 3 commits into
mainfrom
feat/flappy-model-comparison

Conversation

@Alex-Wengg

@Alex-Wengg Alex-Wengg commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Native macOS Flappy Bird demo + headless checker for comparing local decision models as real-time controllers. Covers every model on main, including the #9 runtimes; more can be slotted in as they land.

  • GLiClassFlappyDemo: 60 Hz game, model picks flap/coast every 6 frames while physics keeps running. Controllers: GLiClass, Laya, GLiNER 2.5 small/base/multilingual, Verdict, bridged Kev 0.5B/0.6B, Kai, Lex, LFM2.5-350M-RLCD, Jeff, NanoJev (local weights only), manual, heuristic. Optional safety guard (override count shown) and delay slider.
  • FlappyBirdCheck: bounded headless runs by seed, raw vs guarded (--raw-only --seeds=1,2,3,4).
  • FlappyBird / FlappyBirdPolicy targets + tests.

Raw policy, seeds 1–4, M5 Pro (bridged times include the Python worker round trip):

Model Pipes Combined survival Median call
GLiNER 2.5 multilingual W8 1 10.98 s 5.4–9.6 ms
Kev 0.6B (bridge) 0 9.03 s 11.8–23.8 ms
Lex (bridge) 0 9.03 s 5.9–6.0 ms
Kev 0.5B (bridge) 0 8.70 s 9.7–13.4 ms
Kai (bridge) 0 8.60 s 5.5–6.1 ms
GLiNER 2.5 small W8 0 8.53 s 11.0–13.7 ms
LFM2.5-350M-RLCD (bridge) 0 7.13 s 147–167 ms
Jeff (bridge) 0 6.65 s 12.8–23.0 ms
Laya multilingual E8 0 5.93 s 3.9–4.1 ms
GLiClass Edge Apps v2 LUT8 0 5.83 s 1.5–1.8 ms
NanoJev (local, bridge) 0 5.82 s 75.2–81.5 ms
Verdict L128 0 5.60 s 7.4–7.6 ms
GLiNER 2.5 base W8 0 5.40 s 10.4–13.7 ms
Heuristic 40 80 s (caps) —

No model plays reliably yet. LFM always picks the second-listed option, which suggests position bias. Guarded scores mostly reflect the deterministic guard. Details are in Sources/GLiClassFlappyDemo/README.md.

🤖 Generated with Claude Code

Alex-Wengg and others added 3 commits September 22, 2026 21:29
Native macOS Flappy Bird (60 Hz fixed step) where a Core ML decision
model picks flap/coast every six frames. Selectable backends: GLiClass
Edge Apps v2 LUT8, Laya multilingual E8, GLiNER 2.5 base W8, GLiNER 2.5
multilingual W8, plus manual and heuristic control. Physics keeps
running while inference is in flight, so late replies are visible.

The prompt is a compact text state with a 300 ms physics forecast per
label; option order alternates. An optional safety guard overrides a
choice when its forecast collides and the other action is safer; the
app counts overrides so guarded play is not mistaken for model skill.

FlappyBirdCheck runs a bounded headless comparison (seeds, raw vs
guarded) at the 10 Hz decision cadence. On seeds 1-4 (M5 Pro), raw
policies: GLiNER 2.5 multilingual 1 pipe / 10.98 s combined survival;
Laya, GLiClass, GLiNER base 0 pipes / ~5.4-5.9 s; heuristic 40 pipes.
No model is a reliable controller yet; this is the harness for
comparing further models as they are integrated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Wires the models merged in #9 into FlappyBirdPolicy: GLiNER 2.5 small,
Verdict (native, L128, abstention dropped so one action is always
chosen), and the PublishedCoreML bridge (Kev 0.5B/0.6B and Kai/Lex via
System One choice, LFM2.5-350M-RLCD via a constrained enum field with
the forecasts in context, Jeff via label classification, NanoJev from a
local conversion via NANOJEV_MODEL_DIR/NANOJEV_PYTHON).

Raw policy, seeds 1-4 (M5 Pro): none of the nine passes a pipe; combined
survival 5.6-9.0 s vs GLiNER multilingual's 1 pipe / 10.98 s. LFM picks
the second-listed option on every call (position bias) and, with NanoJev,
exceeds the 100 ms decision period.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Alex-Wengg added a commit that referenced this pull request Sep 23, 2026
Flappy Bird was built and run in #10 against all 13 integrated decision
models. None is a usable controller (best: GLiNER 2.5 multilingual, 1
pipe over seeds 1-4; heuristic 40). Moves it from "next demo" to tried
in the ranking and demo tables and adds a results section.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Alex-Wengg added a commit that referenced this pull request Sep 23, 2026
The Flappy Bird trial (#10) showed per-tick control is a poor fit for
label-choosing models. Removes Mario, the Subway Surfers-style runner,
Frogger, Pac-Man, Space Invaders, Breakout/Pong, and Racer from the
ranking, demo list, and reuse sources (runner repos and paragraph), and
lists them under "Ruled out: real-time games" with reasons.

Re-ranks the remaining turn-based games toward setups where each legal
move can be described with its consequence (the Tetris harness
pattern): Connect Four, chess position challenge, Codenames first.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant