neuron-explorer
Steering-first neuron explorer for Qwen3.5-4B: push every MLP neuron, keep every rollout, browse the results
翻譯準備中
OSS 軟體庫 用於 使用 Python 的暫時運算
AI 翻譯
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.