Search the guide

Start with a guide

GitHub

program-as-weights-github (independent reimplementation)

NatBrian

NatBrian reimplements Program-as-Weights for tasks on GitHub issues and pull requests.

How it works

Construction
A frozen compiler reads a task description and a text program. A learned mapper turns its hidden states into LoRA weights.
Preparation and training
Training updates the compiler’s prefix, the mapper and its shared LoRA bases. Both language models stay frozen.
Execution
A .pawgh directory stores the text program and adapter. Qwen3-0.6B loads them to process new inputs offline.

Cite this work

BibTeX
@misc{paw-github-functions,
  title = {{program-as-weights-github (independent reimplementation)}},
  author = {{NatBrian}},
  year = {2026},
  date = {2026-07-13},
  url = {https://github.com/NatBrian/program-as-weights-github}
}

Related reading