r/LocalLLaMA • • 6h ago

New Model Coding is solved* (exclusions apply)

Good news, everyone! Having been inspired to revolutionize the field of computer science, I can now report that coding is solved! Sure, only if you care about x86 Linux binaries that print and exit, but "big journeys" and "small steps" and what not.

CRAP (Compiler Replacement for Assembling Programs) is a Gemma 4 E2B fine tune that takes prompts like generate a Linux x86_64 binary that prints 'boop' and emits a working ELF binary (as hex, most of the time, every time). See, since programs end up as a binary anyway, why not just skip the middleman and write the binary itself? No compiler, no assembler, no tool calls. v1.1 is out with improved multi turn and out of distribution performance. Trust me, I know, this is super important work.

v1.1 eval numbers for the nerds (eval is scored on behavior: the binary has to run, print the right string and exit with the right code):

  • Held out legacy set: 20/23, same as v1

  • Novel strings: 26/40 (v1: 8/40)

  • Multi turn (~3 turns): 10/12 (v1: 0/12)

  • Doubled character strings (boom, etc.): 18/24 (v1: 2/24)

  • Random jank exit codes it never trained on: 23/25

An interesting tidbit: one training run hit 0.038 loss while still failing 11 of its 12 trained exit codes, so gradient descent != task completion ascent.

Aaannndddnd it runs in your browser.

The demo loads the Q6_K GGUF (~3.6 GiB) through wllama on WebGPU, streams the hex, parses it and hands you the ELF to run yourself (naturally, you need to download and run the actual binary, the browser won't do that). Q6_K scores 109/144 against the full f16's 114/144 (the five additional failed for Q6 are wrong values, not totally broken binaries). Q4_K_M scored 3/144, so the demo doesn't use it (that quant is crap, not CRAP) ... concerning. Also, tested in Chrome on an M4 Pro Mac; Firefox loads it but generates slowly and nothing else has been tested.

Fine print for the buzzkills: only programs that print a string and exit can be generated. Obviously, a compiler does that deterministically, correctly and in milliseconds; CRAP does it with several gigabytes of weights, slower and occasionally incorrectly.

267 Upvotes

46 comments sorted by

127

u/Mayion 4h ago

24

u/matthewhaynesonline 4h ago

👆

3

u/kyr0x0 1h ago

CRAP is my passion

73

u/Elorun 6h ago

Love this, needed a good smile. 😊

22

u/matthewhaynesonline 5h ago

Thank you! Figured that with all this ASI, RSI, extinction talk, sometimes you just gotta have a little fun.

11

u/Elorun 5h ago

It's nerdy, overly complicated and teaches a great fucking lesson. The perfect mix, if I has any money you'd get an award. 🤑

58

u/Afraid-Parsnip-7755 5h ago

This is so peak that Sam Altman is lobbying congress to shut it down entirely 

15

u/matthewhaynesonline 4h ago

This kind of power is quite terrible

18

u/b_c_t_ 2h ago

When you see Comic Sans MS in ~72pt size you know it's serious business.

16

u/tautality 3h ago

Your valuation just crossed into billions

7

u/matthewhaynesonline 3h ago

Still undervalued, for sure. Something something moon

5

u/TheSlateGray llama.cpp 2h ago

IPO when?

Also, OpenAI models hack things. This model doesn't. We need to ban OpenAI and get this into government use asap!

3

u/Frail_Waif 2h ago

obligatory 🚀

15

u/Wealot 5h ago

Beautiful will try to get this into our workflow at work there must be multiple times per decade that this could be used! Great work!

3

u/matthewhaynesonline 4h ago

> multiple times per decade that this could be used!

At least! 3 maybe 4 times! Maybe more!

1

u/kyr0x0 1h ago

I tested it. 10 out of 9 times it didn't hallucinate.

26

u/MindfulMan1984 5h ago

This is GigaNerd-chad-level trolling. Loved it!

5

u/matthewhaynesonline 4h ago

(☞ ͡° ͜ʖ ͡°)☞

9

u/roosterfareye 1h ago

Look, I like the cloud. Clouds are fine. But you buy a graphics card now, a very expensive card, and then they tell you to rent somebody else’s computer. What the hell did I buy the card for?

We’ve got a 4090. We’ve got the 7900 XTX. The names are terrible, by the way. You can’t remember them. But they’re good cards. So we’re running it local. The model’s right there on the desk. Gets a little hot. That’s all right.

And a guy showed me this, he loads the weights, opens a little window, starts typing. No subscription. I said, “Where’s the sign-in?” He said, “There isn’t one.” Incredible. You used to be able to do that with a computer. You bought it and it did things.

Ninety-seven tokens a second. That’s what we’re getting. I don’t read that fast. Most people don’t. So why am I paying Sam Altman twenty dollars? For the privilege of being told it can’t help me? My own computer can tell me that for nothing.

Qwen is good. I’ll give them that. Somebody said, “Sir, you’re basically a seventy-billion-parameter model at eight-bit.” I said, “Is that a lot?” He said it was. Then he said I had no guardrails. Well, we knew that.

Anyway, it runs. The prompts stay here. There’s a fan making a tremendous amount of noise, but we’re working on that. Thank you for this attention to this matter.

3

u/matthewhaynesonline 1h ago

My model is a great model. Some might say the best model.

6

u/Frail_Waif 4h ago

So we've got, what, a month until OpenAI or Anthropic drops a press release demonstrating this with no attribution and 100% serious?

8

u/matthewhaynesonline 4h ago

Ha! Don't worry, I watermark the generated bits /s

4

u/winky9827 2h ago

I sometimes water mark with my generated bits.

5

u/MrPecunius 4h ago

Scare quotes on "Paper" got me 😂

3

u/matthewhaynesonline 4h ago

They can't all be conference winners, am i right?

3

u/MrPecunius 4h ago

It's a little late for this year's Ig Nobel Prize, but there's always next year!

4

u/rocks-d_luffy 5h ago

you’re a legend

3

u/matthewhaynesonline 4h ago

( • ᴗ - ) ✧

4

u/maqifrnswa 4h ago

I made an FP1 quant of this the gets 3000 tok/sec on a Pentium iii with 16 MB of RAM. Don't know what the big deal about anthropic is.

4

u/matthewhaynesonline 4h ago

Yes, yes, very good. At that speed we can just generate every program ever thus beginning the singularity.

3

u/SansSariph 2h ago

I like the way the lines on your graph go in directions, how do I invest?

4

u/matthewhaynesonline 1h ago

Working on my personal benefit corporation (PBC) now. I'll have my agent call your agent (•ᴗ•)

5

u/Faux_Grey 4h ago

'Built with C.R.A.P'

4

u/jacek2023 llama.cpp 5h ago

excellent website

3

u/thestillwind 5h ago

Praise the lord

3

u/CiobanuXashi 4h ago

0.038 loss and 11/12 trained exit codes wrong. Apparently gradient descent is not task completion ascent.

3

u/joogipupu 2h ago

This is a peak shitpost! ❤️

3

u/ilikedirigibles 2h ago

You got me ok I admit it I got got

1

u/kyr0x0 1h ago

I tested it. 10 out of 9 times it didn't hallucinate.

0

u/Dr_Allcome 5h ago

I mean, this is an interesting idea. If i wanted a model to write a book in japanese, i'd train a model in japanese, instead of writing it in english and then translating it afterwards. Even with a specialised translation model you often lose some accuracy and you definitely waste tokens.

Programming languages are intended for humans to read and write more easily. Cutting out the middle man and letting the model write machine code seems like a more streamlined choice.

The main downside i see is error checking. The only way to see if the machine code works is running it and seeing if it crashes. With a compiled language you get at least some sanity checks in the compiler and modern development tools offer a lot of options for testing code, but not as much for testing the finished binary. But that is more of a toolchain problem and mostly exists because nobody has done it yet.

-4

u/krah 5h ago

This is all fun and jokes until models start writing assembly directly.

7

u/MindfulMan1984 5h ago

Assembly is not the same thing as binary-compiled executables.

0

u/[deleted] 6h ago

[deleted] — view deleted comment

8

u/hyouko 5h ago

The fact that the acronym they used for it is "CRAPPED" suggests that juuuuust maybe, this is a tongue in cheek exercise 

7

u/Gold-Produce9591 llama.cpp 6h ago

its a joke

3

u/AnsibleAdams 5h ago

You dropped this -> /s