ProgramAsWeights: describe an AI function in English, compile it once, and run it locally on CPU
Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.
| With the recent interest in Jev, especially in open-source and locally executable alternatives, I wanted to share a related project we've been building at the University of Waterloo: ProgramAsWeights (PAW). The idea is simple: describe a function in English, compile it once, then call it from Python. The resulting function runs on your own CPU, without sending each input to an API. For example: How it works We trained a larger model to generate a LoRA adapter from an English function description. That adapter specializes a shared Qwen3 0.6B interpreter for the task. You can keep multiple compiled functions and reuse the same base model. The SDK uses our hosted compiler by default. Once the compiled program and base model are downloaded, inference runs locally and works offline. The compiler weights are also public for people who want to run compilation themselves. I've used this to build a course website helper with ~30 small neural programs connected by ordinary decision-tree code. One function decides which answerer should handle a question, and the surrounding code controls what happens next. Here's my course website helper in case you are curious: https://yuntiandeng.com/teaching/spring2026/cs486-introduction-to-artificial-intelligence/#ask Some of you may remember an earlier version posted here (https://www.reddit.com/r/LocalLLaMA/comments/1sm9fmw/compile_english_function_descriptions_into_22mb/). At the time, people asked for the compiler itself to be released. Its weights are now public, along with the paper explaining how it works. Python SDK: https://github.com/programasweights/programasweights-python You can try the browser playground before installing anything: [link] [comments] |
More from r/LocalLLaMA
-
NVIDIA shipped OpenShell, an open source sandbox that gives local and open agents real runtime limits instead of prompt rules. Over 100 firms joined the safety stack. OpenAI did not.
Sep 28
-
3090 for $1500???
Sep 28
-
modified qwen 3.8 27b modifies windows credential dumper to bypass EDR detection
Sep 28
-
Minisforum MS-S1 MAX-P495 @ €7.799,00
Sep 28
Discussion (0)
Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.
Sign in →No comments yet. Sign in and be the first to say something.