← All projects
Project record1 mention
Originally shared on Hacker News

W-ISA

W-ISA is an instruction set and runtime for programming LLM weights: it applies temporary weight changes such as rank-one updates or attention-head ablations, runs inference, and restores the original parameters via request scopes. The MIT-licensed repo includes experiments on SmolLM-135M and Qwen2.5-1.5B comparing materialized updates with PyTorch hooks.

Last shared
01 / The problem

What it addresses

Having to write snapshot and cleanup code each time you change a model’s weights for an experiment.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. W-ISA

    W-ISA is an instruction set and runtime for programming LLM weights: it applies temporary weight changes such as rank-one updates or attention-head ablations, runs inference, and restores the original parameters via request scopes. The MIT-licensed repo includes experiments on SmolLM-135M and Qwen2.5-1.5B comparing materialized updates with PyTorch hooks.

    Problem: Having to write snapshot and cleanup code each time you change a model’s weights for an experiment.

    Posted by @eaxitect · Original source ↗

    Story title · @eaxitect · · Source ↗

    Show HN: W-ISA – An instruction set for programming LLM weights

    Submitted URL · @eaxitect · · Source ↗

    https://github.com/eax/w-isa

    Source text · @eaxitect · · Source ↗

    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.

    Source text · @eaxitect · · Source ↗

    Programs check shapes and specify execution order. Request scopes handle restoration when a request finishes, fails or gets cancelled.

    Source text · @eaxitect · · Source ↗

    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.

    Source text · @eaxitect · · Source ↗

    The README links to the pretrained experiments, tests and both arXiv papers. The code is MIT licensed.