AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
OSS library for ephemeral computing using Python
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
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.README 전문 보기 ↗# 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
uv add "skyward[all]"
all includes every optional extra. For a smaller installation, combine only what you need, e.g. uv add "skyward[client,server,cli,aws]". See available extras.
Full documentation at gabfssilva.github.io/skyward.