Cloud accelerators with a single decorator
Skyward is a Python library for ephemeral accelerator compute. Spin up cloud accelerators, run your code, and tear them down automatically. No infrastructure to manage, no idle costs.
Quick Example
import skyward as sky
@sky.function
def train(epochs: int) -> dict:
import torch
model = torch.nn.Linear(100, 10).cuda()
optimizer = torch.optim.Adam(model.parameters())
for epoch in range(epochs):
loss = model(torch.randn(32, 100, device="cuda")).sum()
loss.backward()
optimizer.step()
return { "final_loss": loss.item() }
with sky.Compute(
provider=sky.AWS(),
accelerator=sky.accelerators.T4(),
image=sky.Image(pip=["torch"])
) as compute:
result = train(epochs=100) >> compute
print(result)
Features
- A single API, any cloud — A unified declarative API to run functions on AWS, GCP, Hyperstack, RunPod, TensorDock, VastAI, Verda, and more.
- Operators, not boilerplate —
>>executes on one node,@broadcasts to all,&runs in parallel. No job configs, no YAML. - Ephemeral by default — Instances provision on demand and terminate automatically. Context managers guarantee cleanup.
- Multi-provider support — AWS, GCP, Hyperstack, RunPod, TensorDock, VastAI, Verda with automatic fallback and cost optimization.
- Distributed training — PyTorch DDP, Keras 3, JAX, TensorFlow, and HuggingFace integration decorators.
- Distributed collections — Dict, set, counter, queue, barrier, and lock replicated across the cluster.
- Spot-aware — Automatic spot instance selection, preemption detection, and replacement. Save 60-90% on compute costs.
Install
uv add skyward
Requirements
- Python 3.12+
- Cloud provider credentials (setup guide)
Documentation
Full documentation at gabfssilva.github.io/skyward.
License
MIT
Metadata
Release files for skyward 0.11.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| skyward-0.11.1.tar.gz | 11.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| skyward-0.11.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 MB
Release files / skyward-0.11.1.tar.gz
| Download URL | skyward-0.11.1.tar.gz |
|---|---|
| Size | 11.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8033e4392e35ab0f26a7bb6720d22636d98725d989a1ecb9610227261e43289
|
|
BLAKE2b-256 checksum How to use checksums |
4892822f51cbdfc47577518053aa180bd80b25c9c6e10b6cdf2402ab25a955d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 27, 2026.
Transparency logRelease files / skyward-0.11.1-py3-none-any.whl
| Download URL | skyward-0.11.1-py3-none-any.whl |
|---|---|
| Size | 382.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7941d4886f7da85290b112c00abf435cd34478d25c8270f99f3f2cd00a2dbe1
|
|
BLAKE2b-256 checksum How to use checksums |
140b6a48502c61d4ece4acccb1f1642b95abb300fa3d3fb2e3883e5cae49da55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 27, 2026.
Transparency log