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
# pi.py
import skyward as sky
@sky.app(
provider=sky.RunPod(),
accelerator=sky.accelerators.RTX_3090(),
image=sky.Image(pip=["torch", "numpy"]),
)
def estimate_pi(n: int = 100_000_000) -> dict[str, str | float]:
"""Estimate pi from N random points, on a GPU."""
import torch
points = torch.rand(2, n, device="cuda")
inside = (points[0] ** 2 + points[1] ** 2 <= 1).sum().item()
return {"gpu": torch.cuda.get_device_name(), "pi": 4 * inside / n}
sky server start
sky run -f pi.py --n 500000000
sky.app declares the machines a function runs on. sky run -f provisions them, parses the command line against the function's signature, runs the function there, prints what it returned as JSON, and tears the machines down. Without -f it returns as soon as the run is queued, the daemon tears the machines down once it ends, and sky compute result prints what it returned.
Inside a program
sky.Compute is the same compute as a context manager, for a program that dispatches functions itself:
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[all]"
The base package is what a node installs. The SDK, the daemon, the sky command and each provider SDK are extras; getting started lists them.
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.12.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 | Provenance | Actions |
|---|---|---|---|---|
| skyward-0.12.1.tar.gz | 26.3 MB | With provenance | Details for skyward-0.12.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| skyward-0.12.1-py3-none-any.whl | Python 3 | none | any | Details for skyward-0.12.1-py3-none-any.whl |
Total release size: 27.1 MB
Release files / skyward-0.12.1.tar.gz
| Download URL | skyward-0.12.1.tar.gz |
|---|---|
| Size | 26.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3d548c65ef162e1efc8de9de45c312a8479a3f06798080b3ccc07d11e247f1f
|
|
BLAKE2b-256 checksum How to use checksums |
e5ad008092ed44dcf4af06ad9e9a01901b5ef2b3bdf24b678fced4f3354b2354
|
| 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 Oct 17, 2026.
Transparency logRelease files / skyward-0.12.1-py3-none-any.whl
| Download URL | skyward-0.12.1-py3-none-any.whl |
|---|---|
| Size | 846.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44f99bcc69f1b517190087eb0b2abc8ac6459b7df2b3fd75807df06c554c2c03
|
|
BLAKE2b-256 checksum How to use checksums |
c4e961f2cc012f642756fcc6de16047dbf3d12a6af23bd4a12f495976182e4b8
|
| 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 Oct 17, 2026.
Transparency logSecurity for skyward 0.12.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.
Attestation for skyward-0.12.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 Oct 17, 2026.
Transparency logA 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.