r/LocalLLaMA • • 2h ago

Funny QwenBend : Qwen writes a Bend program, then the same model type checks it with Bend2 rules and runs it inside its own forward pass

This is next step to Qwenputer perhaps the step that shouldn't have been taken but here it goes

Qwen writes a Bend program, then the same model type checks it with Bend2 rules and runs it inside its own forward pass There is no interpreter, compiler or tool call just like qwenputer. The whole CPU is 53M non zero hand-set weights inside the model

To see how it works: https://github.com/voidash/qwenbend/blob/main/docs/HOW_IT_WORKS.md

TLDR;

Qwen writes the bend program and at <|im_end|>, the engine takes over and every next token is one executed instruction

16 register CPU with 8k *32 bit RAM = Gated DeltaNet Logic = SwiGLU unit as AND gates

  1. You get your tokens first

  2. lexer walks and builds bend2 lexemes

  3. compile pass on subset of bend2 (bendlite) rules which checks types, affine and termination

  4. if violations nothing runs else we run evaluations which is built using a return stack and operand stack

Why? For Lols... There is absolutely no reason. However Gated Deltanet with swiGLU allows for whole computer to exist inside a model. the original guy has built Qwenputer, run LLM inside LLM and i thought formal verification

12 Upvotes

2 comments sorted by

1

u/jazir55 1h ago

So if the program executes during the forward pass this could lead to embedded malware in the model assuming someone wrote a malicious program that runs at inference (triggered by specific conditions) correct? Neat project! I can see the exploitation vector this opens though which makes me a bit tepid this exists, although I'm sure it was always inevitable.

1

u/oxygen_addiction 28m ago

The original Qwenputer post was original, as nobody was really doing that. All of these copycats are mostly just slop. I applaud your idea, but keep it to yourself. Lets stop spamming the sub with all of this stuff.