WSM (Weight Space Mods)
WSM is a Python SDK for model weight editing. Access named tensors, change weights, evaluate the result, and save a standalone checkpoint.
Requires Python 3.12 or later. The core package has no third-party runtime dependencies.
pip install wsm
wsm --help
Install the model dependencies to load a local snapshot:
pip install 'wsm[editing]'
from wsm import WeightModel
model = WeightModel.load("/path/to/local/snapshot")
model.weights["model.norm.weight"][:16].mul_(0.95)
result = model.evaluate([{"prompt": "Say hello.", "target": "Hello!"}])
model.save("/path/to/new-checkpoint")
The supported Python API consists of WeightModel and execute_program. Read the project documentation for CLI usage, execution trust, and optional Modal and Spindle trials. Spindle requires a separate pinned source installation documented in the trial guide.
Metadata
Release files for wsm 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wsm-0.1.0.tar.gz | 52.9 kB | Without provenance | Details for wsm-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wsm-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for wsm-0.1.0-py3-none-any.whl |
Total release size: 96.3 kB
Release files / wsm-0.1.0.tar.gz
| Download URL | wsm-0.1.0.tar.gz |
|---|---|
| Size | 52.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f68beae477689f1a07c4f61246c04ed08bbc2485254248c9bc0d3596268f65e2
|
|
BLAKE2b-256 checksum How to use checksums |
8fb45c1ebb0e1dcee6b105530ed9001af239a1c6e5b6bfee385d6eec0599bb84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / wsm-0.1.0-py3-none-any.whl
| Download URL | wsm-0.1.0-py3-none-any.whl |
|---|---|
| Size | 43.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71b0ce2c9ecb947824859656778c64a81e485d70dcdb09191e7eb23317390b29
|
|
BLAKE2b-256 checksum How to use checksums |
c220cd875d899abb75b690e038c6c863dfd6b2aaf736bff3e3331e5e3b8b290a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for wsm 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.