w-isa
A tool that modifies local language model weights with JSON commands and restores them after a request.
What does it do?
Write and compile a small JSON program, then bind it to parameter names in a loaded PyTorch model. The runtime keeps the model frozen while modifying weights in memory and supports request-scoped patches and snapshot restoration. From the command line, you can inspect parameters and compare responses to a prompt before modification, after modification, and after restoration. The default loader targets Qwen models and also accepts local checkpoints or other Transformers causal language models.
Key features
- Compiles JSON commands and binds them to model parameter names.
- Keeps the model frozen and modifies weights in memory without gradient computation.
- Reverses modifications through request-scoped patches and snapshot restoration.
- Loads local checkpoints and can be set to use only locally cached model files.
Why did it stand out?
This experimental tool lets you reverse model weight changes within the scope of a request. Comparing outputs before and after modification and after restoration helps examine the effects of specific parameters.