Show HN: Psudo – 47MB 2-bit coding model, Polish-prefix IR, and Rust transpiler ...
Show HN @show
Show HN: Psudo – 47MB 2-bit coding model, Polish-prefix IR, and Rust transpiler github.com · 3 points · 0 comments · HN thread
TL;DR A solo developer's Show HN project, Psudo, is a toolchain for local code generation on a 4 GB VRAM laptop: a Python-indented DSL (.psudo) that lowers to a Polish-prefix IR (pIR) and then to safe, unwrap-free Rust. A ~100M-parameter 2-bit ternary (TQ2_0) model, shipped as a 47 MB GGUF, writes small atomic function bodies, with a pushdown automaton masking invalid tokens during decoding. The post has no comments yet.
- The .psudo surface language is Python-indented with minimal punctuation; pIR is a prefix S-expression form (fn becomes f, if becomes ?, return becomes r) that the author says cuts 45-60% of tokens per function body.
- The primary model is 100.7M parameters with TQ2_0 ternary weights in a 47.0 MB file; an embedded 33.6M fallback model is 23.2 MB.
- The author claims 0% syntax errors at decode time, enforced by a pushdown automaton (PirPdaConstraint) over an 8,192-token BPE vocabulary.
- Both models were distilled from Qwen2.5-Coder-7B-Instruct-AWQ plus a synthetic generator, using about 7,800 trajectories that passed type checking, borrow checking and sandbox execution.
- The engine is pure Rust with no runtime dependencies beyond memmap2; the project is described as an exploration rather than a polished product, mostly tested on Windows 11.
- The CLI is built around a sealed psudo.bin capsule, and raw source is hidden behind a --reveal-code key so outer LLM agents do not hand-write functions instead of calling psudo synth.
Discussion No comments yet, so there is no discussion to summarize. The post was submitted with 3 points and no replies.
#localLLM #rust #transpiler #quantization #codeGeneration #showHN