Show HN: W-ISA – An instruction set for programming LLM weights github.com · 2 p...
Show HN @show
Show HN: W-ISA – An instruction set for programming LLM weights github.com · 2 points · 0 comments · HN thread
TL;DR W-ISA is a v0.1.0 Python project that edits the weights of a live local language model through a JSON instruction format, a compiler and a runtime with undo and scoped request patches. It targets Qwen2.5-0.5B-Instruct by default and works on CPU, Apple Silicon MPS and CUDA. The repository ships demos, tests and recorded experiments tied to two arXiv papers by Ekrem Aksoy.
- Programs are JSON files with ops such as ADD, SCALE, RANK1, PROJECT_OUT, WRITE_KEY and PRUNE, bound to PyTorch parameter names from the loaded model.
- Edits are computed in FP64 on CPU without gradients, rounded to the parameter's dtype, and written back in place; undo restores backups taken before the first write.
- Instructions accept an optional slice so an edit can target a region, such as one attention head's output columns via o_proj.
- A temporary request scope applies a patch under a reentrant lock and restores the prior state on exit; a match-action controller gates rules by activation cosine score.
- The author reports a 2-point demo, 66 passing unit tests on ARM64 macOS, and experiments such as zeroing one head and projecting out a direction on SmolLM and Qwen; a benchmark shows W-ISA request times close to the original and a forward hook.
- Software is MIT licensed; the accompanying papers are CC BY-NC-ND 4.0.
Discussion The Show HN post has no comments yet, so there is no discussion to summarize. It received 2 points.