2 points · by eaxitect · 2w ago · 1 comment
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.