Fine-tuned Qwen2.5-1.5B into a text-free decision model, plays Snake at 26ms locally

Cod3Conjurer · reddit · 2026-11-30

Developer AnkitNayak fine-tuned Qwen2.5-1.5B-Instruct twice (decision head + model weights) on 700K examples to create QJev-1.5B—a model that doesn't generate text at all. Training took 20 hours on an RTX 5060 Laptop GPU (8GB VRAM).

Key idea: instead of generating tokens, QJev scores LEFT/RIGHT/UP/DOWN confidence and picks the best action in a single forward pass.

Pipeline: OpenCV handles game-state detection, feeding directly into QJev for real-time action selection—no heavy vision-language model.

Performance:

It trades some decision accuracy for fast, lightweight local inference. Code and model are open-sourced on GitHub and Hugging Face with reproducible setup commands; Super Mario Bros is the next target.

Original post →

More from coding & agent

coding & agent channel →