Skip to main content

Python SDK for anycloud — submit jobs, run workloads on any cloud

Project description

anycloud Python SDK

Submit jobs, run workloads on any cloud.

Install

pip install anycloud-sdk

For the latest pre-release version:

pip install --pre anycloud-sdk

Quick start

import anycloud

ac = anycloud.Client()

job = ac.submit("my-training:latest", gpu="h100:8", env={"LR": "0.01"})
job.wait()
print(job.logs())

Chaining jobs

prep = ac.submit("prep:latest")
prep.wait()

train = ac.submit("train:latest", gpu="h100:8", env={"LR": "0.01"})
train.wait()

eval_job = ac.submit("eval:latest")
eval_job.wait()

Fan-out / fan-in

from anycloud import JobGroup

split = ac.submit("split:latest")
split.wait()

shards = JobGroup([ac.submit("worker:latest", env={"LR": lr}) for lr in ["0.1", "0.01", "0.001"]])
shards.wait_all()

merge = ac.submit("merge:latest")
merge.wait()

Buckets

Chain data between jobs using bucket handles. Output buckets are auto-created by the server; upload() auto-creates input buckets.

data  = ac.bucket("training-data")
model = ac.bucket("model-output")

data.upload("~/datasets/imagenet")  # auto-creates bucket

prep  = ac.submit("prep:latest", input=data, output=model)
prep.wait()

train = ac.submit("train:latest", input=model, output=model, gpu="h100:8")
train.wait()

model.download("~/checkpoints/")

Install with the cloud extra for your provider: pip install anycloud-sdk[aws] (or [gcp], [azure], [all]).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anycloud_sdk-0.1.3.tar.gz (32.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anycloud_sdk-0.1.3-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file anycloud_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: anycloud_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 32.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for anycloud_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 172c9efdda73987aeb247dba3b9832cc94ac294b22c2e632376d025e68175283
MD5 67aa99ab26d47978df513401d98e1f60
BLAKE2b-256 a8d0c22fd8ecc654cc039c1c029cf477b14c9a6bad37eb957159f6743472acb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for anycloud_sdk-0.1.3.tar.gz:

Publisher: promote.yml on anycloud-sh/anycloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file anycloud_sdk-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: anycloud_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for anycloud_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3112b36791332d87db820f5cb32b49623fb7624558c85c26fd661ab1c366eeac
MD5 9bfe2e721077cb1cef6cce5dd3227480
BLAKE2b-256 c6b0b8b81d10c29e0eff073aa462945f059d9d76a09162aa0e168401833ef61b

See more details on using hashes here.

Provenance

The following attestation bundles were made for anycloud_sdk-0.1.3-py3-none-any.whl:

Publisher: promote.yml on anycloud-sh/anycloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page