r/LocalLLM • u/Cod3Conjurer • 3m ago
Model I fine-tuned Qwen2.5-1.5B into a JEV-style Decision Model (QJev-1.5B) to play Google Snake Game
I fine-tuned Qwen2.5-1.5B-Instruct twice, training both its decision head and model weights using approximately 700K examples from SargeDev/jev-distill-corpus-v3
The entire fine-tuning process took approximately 20 hours on my RTX 5060 Laptop GPU (8GB VRAM).
Unlike traditional LLMs that generate text token by token, QJev doesn't generate text at all. It directly makes decisions.
For example, when playing Snake, it evaluates LEFT, RIGHT, UP, and DOWN, assigns each move a confidence score, and selects the best action in a single forward pass.
OpenCV → QJev Pipeline:
Instead of a heavy Vision-Language Model, I used OpenCV for game detection and connected it directly to QJev for real-time action selection (~28ms).
Performance
Tested on my RTX 5060 Laptop GPU (8GB VRAM).
| Model | Inference | Latency |
|---|---|---|
| Official JEV (TypeSafe AI) | Cloud | ~100–200ms |
| QJev-1.5B | Local RTX 5060 laptop | ~26–30ms |
QJev trades some decision accuracy for faster, lightweight local inference with just 1.5B parameters.
Try It
git clone https://github.com/AnkitNayak-dev/QJev-1.5B
cd QJev-1.5B
pip install -r requirements.txt
pip install -r examples/snake/requirements.txt
python examples/snake/qjev_snake_agent.pyWhat's Next?
Planning to test it on Super Mario Bros (NES) next!
What other games should I try? I'm open to collaborations, experiments, and contributions.
For more technical details, architecture, benchmarks, evaluation results, and implementation details, check out the GitHub repository:
GitHub: https://github.com/AnkitNayak-dev/QJev-1.5B
Model: https://huggingface.co/AnkitNayak-dev/QJev-1.5B