W-ISA lets you change a model’s weights for an experiment without writing the snapshot and cleanup code each time. Apply a rank-one update or ablate an attention head, run inference, then restore the original parameters. Restoration copies back saved values rather than trying to reverse the edit. Projection and zeroing discard information, so an inverse wouldn’t recover the original weights. Programs check shapes and specify execution order. Request scopes handle restoration when a request finishes, fails or gets cancelled. The repo includes experiments on SmolLM-135M and Qwen2.5-1.5B. A 45-request comparison puts materialized rank-one updates alongside equivalent PyTorch hooks, with timings, memory measurements and numerical differences recorded. NCP uses this runtime to generate candidate rules, evaluate them against task and perplexity criteria, and record admission decisions. Accepted rules stay in the policy; their changes to the weights remain temporary. There’s a small matrix demo you can run without downloading a model. The README links to the pretrained experiments, tests and both arXiv papers. The code is MIT licensed.
Repository
eax/w-isa
W-ISA
eax/w-isa
W-ISA
A compiler and runtime for reversible, gradient-free LLM weight edits with activation-based triggers and automatic rollback.
Visit project- First shared
- Nov 11, 2026
- HN activity
- 21
Show HN@eaxitectNov 11, 2026
Show HN: W-ISA – An instruction set for programming LLM weights
Community