Skip to main content

astro-weights

Agent-driven weight-space edits for open LLMs. An agent proposes small, targeted edits to a model's weights, the edits are judged against paired statistical tests on held-out data, and the ones that hold up are exported as standard PEFT LoRA adapters (and GGUF) that existing tools already load.

Status: pre-alpha. Nothing is released yet and the API will change without notice until 1.0.

Install

pip install astro-weights

Quick look

import numpy as np
from astro_weights.edits import Edit, masked_rank1
from astro_weights.export import save_peft

W0 = np.random.default_rng(0).standard_normal((16, 48), dtype=np.float32)
u = np.eye(16, dtype=np.float32)[0]
mask = np.ones(48, dtype=np.float32)
delta = masked_rank1("model.layers.1.mlp.down_proj", W0, u, mask, alpha=0.5)
save_peft(Edit(deltas=(delta,), base_model="org/name"), "my-edit")
astro-weights inspect my-edit

To apply a saved edit to a transformers model:

pip install "astro-weights[hf]"
from astro_weights.export import load_peft
from astro_weights.runners.hf import apply

peft_model = apply(model, load_peft("my-edit"))  # model: a transformers causal LM

Development

git clone https://github.com/astro-weights/astro-weights
cd astro-weights
uv run pytest

See CONTRIBUTING.md.

License

Apache-2.0.

Metadata

Release files for astro-weights 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for astro-weights 0.0.1
File Size Uploaded Provenance Actions
astro_weights-0.0.1.tar.gz 12.2 kB With provenance Details for astro_weights-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for astro-weights 0.0.1
File Interpreter ABI Platform Actions
astro_weights-0.0.1-py3-none-any.whl Python 3 none any Details for astro_weights-0.0.1-py3-none-any.whl

Total release size: 26.9 kB

Release files / astro_weights-0.0.1.tar.gz

Download URL astro_weights-0.0.1.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c086ff76c7ad4ef94109c5c2c5fd3d40610624136f6a9d4d93f7fa84ca3c02a6
BLAKE2b-256 checksum
How to use checksums
fae9d4a0fd095a3c7f44f2a7a7250be6862804fd45c39c8c6d9a29a50f49077c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / astro_weights-0.0.1-py3-none-any.whl

Download URL astro_weights-0.0.1-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b36537dc7f5aeb12729698d5d140dc14c88098bbadd416df1d1b94f679b3644c
BLAKE2b-256 checksum
How to use checksums
1989d49d11e69087dd3cef9de9e8dca779fa92094bb5d1be677bbcdf715b3c17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for astro-weights 0.0.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for astro_weights-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page