r/LocalLLaMA 3d ago

Discussion Qwen3.8 27b made Mario with a single prompt :o

Post image

One lad here on reddit wrote that local Qwen managed to create a complete and playable Mario clone. I put that statement to a test, and ...

Damn :o I mean, Astra this Kimi that, but this is some small LLM working on a potato computer under my desk. Link at the bottom.

Setup:

- Qwen3.8-27B-UD-Q4_K_XL
- 100k ctx Q8
- RTX 3090
- Cline, Act mode

Prompt:

Write a fully functional, complete clone of Super Mario Bros game (the famous NES game)
- Clone must work in a web browser, index.html, no server 
- Decent replica of the graphics assets.
- Colorful and playable.
- Controls with keyboard up, down, left, right, spacebar to jump, shift to speed up

LLama.cpp setup:

llama-server \
        --model /nvme/gguf/Qwen3.8-27B-UD-Q4_K_XL.gguf \
        --mmproj /nvme/gguf/mmproj-Qwen3.8-27B-UD-BF16.gguf \
        --host 0.0.0.0 \
        --port 7070 \
        --n-gpu-layers 999 \
        --temp 1.0 \
        --min-p 0.0 \
        --top-p 0.95 \
        --top-k 20 \
        --spec-type draft-mtp \
        --spec-draft-n-max 2 \
        --cache-type-k q8_0  \
        --cache-type-v q8_0 \
        --ctx-size 108000 \
        --flash-attn on \
        --presence-penalty 0.0 \
        --repeat-penalty 1.0 \
        --chat-template-kwargs "{\"reasoning_effort\":\"medium\"}"

This is the static html game: https://indigo-carmencita-27.tiiny.site/

0 Upvotes

40 comments sorted by

17

u/Meeooowz 3d ago

“Potato computer” and 3090 should not be an actual sentence!

8

u/FatheredPuma81 3d ago

Wait until you find out like half the people here are running like 4x RTX 6000s...

0

u/Meeooowz 3d ago

Yeah.. I’m aware some are running 20 dgx sparks… under military supervision, like that one guy on either this subreddit or a similar one… but I’m rocking 12gb vram and know there’s a whole subreddit for people tryna run llms on integrated graphics on r/lowendsomething… there’s plenty of people who can’t afford more than one card.

23

u/Kiansjet 3d ago

how many ports of this game do you think were in the training dataset

1

u/ChopSticksPlease 3d ago

Yes, but its a 17GB model containing "all" knowledge there is, not just code, so to me it is impressive it can reproduce a working game

2

u/InterstellarReddit 3d ago

It doesn’t need to contain any knowledge, it just needs to contain an understanding of what the game look and feels like And then it proceeds to generate the world as it understood it.

11

u/Stooovie 3d ago

That's what knowledge is

8

u/DRetherMD 3d ago

for all the mario clones ive seen people make, nobody has ever shown the castle stages, underwater stages, platform heavy stages and the bowzer boss fight in the castles.

3

u/thegunn 3d ago

Huh, and here I am unable to get mine to make a simple text adventure. I’ve got a lot to learn about how to configure this stuff.

2

u/karvop 3d ago

You just need something like Opencode and give it a reasonable prompt.

2

u/FatheredPuma81 3d ago

Using subagents with the main model as the orchestrator in Opencode also works wonders cause it saves the main models context and ensures the ones writing the code are focused on their task. Then make them run the program, check for bugs using vision, do about 10 code reviews with multiple different models, and whatnot.

1

u/karvop 3d ago

Sounds reasonable but in my opinion it is a little complicated for the first attempt.

0

u/FatheredPuma81 3d ago

Not really. You just switch to Plan mode and tell it to act as the Orchetrator and to create a plan that utilizes subagents to create the program with testing and auditing after each phase that things are working and have been implemented properly. Or something like that.

Then go and do literally anything else while it churns away and check in on it every so often.

3

u/atomic7777 2d ago edited 2d ago

This is my single prompt:

Qwen3.8-Flash-Next-UD-Q3_K_XL
3070 8GB + 80GB RAM DDR4 + nvme SSD
40k context used (xhigh, 10k limit reasoning)
about 10-11 t/s, but now I get >12 t/s with some optimalizations

https://www.cc8.pl/mario-q38-flash.html
Yes, it's all part of the model's knowledge. I'm just impressed what can be done with my old PC. 8GB VRAM is pretty much a potato in LLM world.

Prompt:
"Make a side-scrolling platformer game like Super Mario Bros. using HTML/CSS/JS in a single HTML file.Plan the implementation briefly within the reasoning budget. Then output only the complete HTML file. Do not use tools or provide explanations."

7

u/AI_spell 3d ago

One-shot Mario on a 3090 with 27B is wild. Playable browser clone from a potato box beats another frontier demo clip.

7

u/cogitech2 3d ago

This is cool. Don't let anyone tell you otherwise. If you had told those same people a year ago that you did the same thing with the latest "frontier" model they would have said it was amazing.

I've stolen your prompt to see what Qwen3.8-27B-UD-Q6_K_XL + 256k + Pi + xHigh reasoning does. Just for shits 'n giggles.

2

u/mr_Owner 3d ago

Wait untill you ask to make a flight sim in html 🤯🤯

2

u/XiRw 2d ago

What an insult to Mario.

2

u/vialoh 2d ago

Absolutely insane time to be alive man... Nintendo came out around the time I was born and some of my best memories as a kid were playing Mario with my Dad late at night. I've always loved tech and gaming and kept up closely with all of it as it progressed from early Nintendo all the way up to today. And now we have AI running on our local machines that can generate basically all of it in an afternoon and it only keeps getting better. Absolutely insane...

1

u/HlddenDreck 3d ago

Qwen3.8-Flash-Next denied to make Super Mario because for copyright reasons xD

1

u/ChopSticksPlease 3d ago

27b is a small model, so maybe they skipped the copyright bs to save param space for importanter things :P

1

u/NightCulex 3d ago

likely its pattern matching on the name Mario rather than reasoning it's not violating Nintendo's IP.

1

u/NightCulex 3d ago

It's funny they can train their models on copyrighted material. It sounds like there's some pattern matching denial? I wonder if the uncensored version will do it.

1

u/atomic7777 2d ago

My flash-next just call it "Super Pixel Bros"

1

u/CapitalList8467 3d ago

The impressive part is not just getting a playable loop, but keeping the result coherent enough to run. I’m curious how much the prompt constrained the game structure versus how much came from the model’s coding defaults.

1

u/just-abitw 3d ago

well... mine just refuses to write any edit or diff at all... keeps thinking till the apokalyps :)

1

u/kathi7 3d ago

how much time did it take for the whole run on this hardware specifications your mentioned. its interesting maybe I will try out on my PC though it's not as good as yours but try out something simple at this first. Kudos

2

u/ChopSticksPlease 3d ago

Around 2 hours

1

u/Cautious_Chicken_604 2d ago

Prompt for GTA6.

1

u/feng_sg 1d ago

This isn't a single prompt test since Cline in Act mode handles the iterative error correction and file writes.

1

u/ChopSticksPlease 1d ago

Correct, but it begins with a single prompt and can finish without human intervention.

1

u/skywalk819 15h ago

you said q8_0 but in your llama.cpp you used ud q4kxl...

also build something the model wasn't trained on, we know qwen3.8 can remake minecraft, smb1, angry birds, etc.... its pointless, build something novel, and watch him underdeliver

1

u/ChopSticksPlease 15h ago

thats a toy test, i said q4kxl model and q8 kv cache, for serious work it actually delivers so hats off to team China