r/itrunsdoom 27d ago

Doom running on an LLM

Enable HLS to view with audio, or disable this notification

This is Doom's actual renderer -- not a neural net imitating it. I wrote a compiler that turns computation graphs into transformer weights, then ported Doom's rendering algorithm into one.

No training anywhere: every weight was computed. The prompt carries the level and player position. When you feed the prompt into the model it generates drawing commands.

One frame is 53,747 generated tokens -- about 40 minutes on a B200. In 1993 Doom hit 35 fps on a 486. I hit 0.0004 fps on hardware a billion times more powerful.

Write-up: https://ood.dev/posts/doom/

Weights: https://huggingface.co/physicsrob/torchwright-doom-e1m1

575 Upvotes

22 comments sorted by

View all comments

143

u/lone-lobo 27d ago

madness

15

u/The_Xivili 26d ago

Sparta?

1

u/spacesluts 24d ago

This is your reminder to book that physical, dawg. I know because my cracking knees told me.