Reddit User Pushes Local Qwen 27B Model to Build 3D Game via Agent Workflow
A developer demonstrated running a local quantized Qwen 27B model using the Pi coding agent framework to build a 3D game based on a massive 267 KB design document. The 12-hour continuous execution processed 11 million prompt tokens and generated 3.2 million completion tokens on local consumer hardware. The experiment demonstrates the practical viability of consumer hardware for executing complex, multi-hour software engineering tasks using open-weights models. It highlights how combining minimal agent frameworks with context efficiency allows developers to build large-scale projects locally without relying on commercial cloud APIs. The user ran a Q4_X_L quantization of Qwen 27B via llama-server with a 120k context window, vision offloaded to the CPU, and Multi-Token Prediction (MTP) enabled to maximize generation speed. The workflow processed a 26,000-line specification file (DESIGN.md) to generate the complete codebase for the 3D graphics game.
## BACKGROUND
Pi is a lightweight, terminal-based AI coding agent designed to minimize system prompt token usage while offering core file operation and bash capabilities. Multi-Token Prediction (MTP) is an inference optimization technique that allows large language models to predict multiple subsequent tokens simultaneously per step instead of just a single token.