Show HN: Laplace's Scissors – A tool for directly editing LLM weights github.com...
Show HN @show
Show HN: Laplace's Scissors – A tool for directly editing LLM weights github.com · 2 points · 0 comments · HN thread
TL;DR Laplace's Scissors is an open-source Rust tool with Triton GPU kernels that computes readout-matrix rotations to edit an LLM's output layer, aiming to repair wrong answers on test cases while protecting answers the model already gets right. The README describes probe, diagnose, export and scale commands, with Qwen3 models as the examples. The post has 2 points and no comments.
- Edits are rotations applied to the original output (lm_head) matrix, with a protected-output tolerance so previously correct answers keep their generations.
- The diagnose command searches rotation planes and joint rotations for targets (expected answer plus EOS) that must beat every vocabulary competitor by a set logit margin, then checks candidates with real GPU readout.
- The probe command builds numerical inputs from embedding rows and traces low-discrimination directions and layer and weight-coordinate contributions to output divergence (Jeffreys divergence).
- The export command saves an edited checkpoint with an FP32 lm_head.weight and untied embeddings; the scale command measures deviations from a power-law loss curve across checkpoints.
- Requires a Rust toolchain, Python with Triton 3.8, and a CUDA or HIP driver; the project is MIT licensed and includes a DESIGN.md with computation contracts.