Skip to main content

Build Tests Nightly Tests

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 (Auto-installed)
ClusterToolkit Provisioning GPU clusters (Auto-installed)
Kueue Scheduling workloads (Auto-installed)
JobSet Workload creation (Auto-installed)
Crane Building workload container (Auto-installed)
CoreDNS Cluster set up (Auto-installed)

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

Release files for xpk 1.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xpk 1.16.0
File Size Uploaded
xpk-1.16.0.tar.gz 330.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xpk 1.16.0
File Interpreter ABI Platform
xpk-1.16.0-py3-none-any.whl Python 3 none any Details

Total release size: 647.3 kB

Release files / xpk-1.16.0.tar.gz

Download URL xpk-1.16.0.tar.gz
Size 330.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3d46795c48904ac3ccbad495fc94c367836e4aa06cb4e459296da3e92b90988e
BLAKE2b-256 checksum
How to use checksums
8495ab791535c1bd9487bb421e27f243599bf2469ddd3205cb3e2a3256ea2104
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 Aug 4, 2026.

Transparency log

Release files / xpk-1.16.0-py3-none-any.whl

Download URL xpk-1.16.0-py3-none-any.whl
Size 317.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28aaa77721007885e51f4fcb10a52d917c81716f41e8d58d925a0847a0b9a386
BLAKE2b-256 checksum
How to use checksums
0d7fddae9181e9c8097e6e56151aef79d042f8aa964321b705061d6a644f4c94
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 Aug 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.16.0 This release

2 release files

1.15.0

2 release files

1.14.0

2 release files

1.13.1

2 release files

1.13.0

2 release files

1.12.0

2 release files

1.11.0

2 release files

1.10.0

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.17.3

2 release files

0.17.2

2 release files

0.17.1

2 release files

0.16.1

2 release files

0.15.0

2 release files

0.14.4

2 release files

0.14.2

2 release files

0.14.1

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page