xpk helps Cloud developers to orchestrate training jobs on accelerators on GKE.
Project description
Overview
XPK (Accelerated Processing Kit, pronounced x-p-k) is a command line interface that simplifies cluster creation and workload execution on Google Kubernetes Engine (GKE). XPK generates preconfigured, training-optimized clusters and allows easy workload scheduling without any Kubernetes expertise.
XPK is recommended for quick creation of GKE clusters for proofs of concepts and testing.
XPK decouples provisioning capacity from running jobs. There are two structures: clusters (provisioned VMs) and workloads (training jobs). Clusters represent the physical resources you have available. Workloads represent training jobs -- at any time some of these will be completed, others will be running and some will be queued, waiting for cluster resources to become available.
The ideal workflow starts by provisioning the clusters for all of the ML hardware you have reserved. Then, without re-provisioning, submit jobs as needed. By eliminating the need for re-provisioning between jobs, using Docker containers with pre-installed dependencies and cross-ahead of time compilation, these queued jobs run with minimal start times. Further, because workloads return the hardware back to the shared pool when they complete, developers can achieve better use of finite hardware resources. And automated tests can run overnight while resources tend to be underutilized.
XPK supports a variety of hardware accelerators.
| Accelerator | Type | Recipes |
|---|---|---|
| Ironwood | tpu7x | Run training workload with Ironwood and regular/gSC/DWS Calendar reservations using GCS Bucket storage Run training workload with Ironwood with flex-start using Filestore storage Run training workload with Ironwood and flex-start using Lustre storage |
| Trillium | v6e | Create Cluster Create Workload |
| TPU v5p | v5p | Create Cluster Create Workload |
| TPU v5e | v5e | Create Cluster Create Workload |
| TPU v4 | v4 | Create Cluster Create Workload |
| GPU A4X | gb200 | Create Cluster Create Workload |
| GPU A4 | b200 | Create Cluster Create Workload |
| GPU A3 Ultra | h200 | Create Cluster Create Workload |
| GPU A3 Mega | h100-mega | Create Cluster Create Workload |
| GPU A3 High | h100 | Create Cluster Create Workload |
| GPU A100 | A100 | Create Cluster Create Workload |
| CPU | n2-standard-32 | Create Cluster Create Workload |
XPK also supports the following Google Cloud Storage solutions:
| Storage Type | Documentation |
|---|---|
| Cloud Storage FUSE | docs |
| Filestore | docs |
| Parallelstore | docs |
| Block storage (Persistent Disk, Hyperdisk) | docs |
Documentation
Dependencies
| Dependency | When used |
|---|---|
| Google Cloud SDK (gcloud) | always |
| kubectl | always |
| ClusterToolkit | Provisioning GPU clusters |
| Kueue | Scheduling workloads |
| JobSet | Workload creation |
| Docker | Building workload container |
| CoreDNS | Cluster set up |
| PathwaysJob | Running Pathways workloads |
Privacy notice
To help improve XPK, feature usage statistics are collected and sent to Google. You can opt-out at any time by executing the following shell command:
xpk config set send-telemetry <true/false>
XPK telemetry overall is handled in accordance with the Google Privacy Policy. When you use XPK to interact with or utilize GCP Services, your information is handled in accordance with the Google Cloud Privacy Notice.
Contributing
Please read contributing.md for details on our code of conduct, and the process for submitting pull requests to us.
Get involved
We'd love to hear from you! If you have questions or want to discuss ideas, join us on GitHub Discussions. Found a bug or have a feature request? Please let us know on GitHub Issues.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xpk-1.3.0.tar.gz.
File metadata
- Download URL: xpk-1.3.0.tar.gz
- Upload date:
- Size: 286.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df48c00c4084c0731d7fcb7ff5710242d30a89b1ed0720493fcecac774dfc69
|
|
| MD5 |
4e119f15aaab8c27d3061f4782fc6611
|
|
| BLAKE2b-256 |
67d6d79ae0c6048bd5b8ca061621fe095c591fa0b88a452f466417fbfa3303ca
|
Provenance
The following attestation bundles were made for xpk-1.3.0.tar.gz:
Publisher:
build_wheels.yaml on AI-Hypercomputer/xpk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpk-1.3.0.tar.gz -
Subject digest:
7df48c00c4084c0731d7fcb7ff5710242d30a89b1ed0720493fcecac774dfc69 - Sigstore transparency entry: 930036883
- Sigstore integration time:
-
Permalink:
AI-Hypercomputer/xpk@c32f9b067a1caa76f736cfc30324d923887bbb8e -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/AI-Hypercomputer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yaml@c32f9b067a1caa76f736cfc30324d923887bbb8e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file xpk-1.3.0-py3-none-any.whl.
File metadata
- Download URL: xpk-1.3.0-py3-none-any.whl
- Upload date:
- Size: 268.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abbd78f605fa3048f16d31db3530265833f4d6ba1b60e38efab920574e1bc958
|
|
| MD5 |
0581b7e3b1cd1926986b96bf3ae4de34
|
|
| BLAKE2b-256 |
64c9b9f63bdb304855e846f165e108b359a08c947109968aaddc8f54c6753470
|
Provenance
The following attestation bundles were made for xpk-1.3.0-py3-none-any.whl:
Publisher:
build_wheels.yaml on AI-Hypercomputer/xpk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xpk-1.3.0-py3-none-any.whl -
Subject digest:
abbd78f605fa3048f16d31db3530265833f4d6ba1b60e38efab920574e1bc958 - Sigstore transparency entry: 930036892
- Sigstore integration time:
-
Permalink:
AI-Hypercomputer/xpk@c32f9b067a1caa76f736cfc30324d923887bbb8e -
Branch / Tag:
refs/tags/v1.3.0 - Owner: https://github.com/AI-Hypercomputer
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_wheels.yaml@c32f9b067a1caa76f736cfc30324d923887bbb8e -
Trigger Event:
workflow_dispatch
-
Statement type: