GitHub

ggufun

hand-written GGUFs as state machines

These are games whose engine is a GGUF file, served by a standard ollama server. Those GGUFs have been hand crafted to be the backend of simple games, with a deterministic output: the constraint was to build something that can interact with the frontend only using the ollama runtime. Attention heads read the current game state (ollama is stateless), MLPs implement the rules, and the decoding/unembedder makes the whole system deterministic. It all started from a minuscule GGUF that always returned the same sentence, the only possible future is, of course, Doom on ollama.

All the frontend does is send inputs and draw the game according to what it receives from ollama. The game state itself is always computed from the whole conversation.

Snake: the classic game

6×6 grid (GGUF 22MB)

Wolf: a first person raycaster

16×16 maze (GGUF 191MB)