Skip to main content

Kryo Python SDK

Python helper for Kryo checkpoint signaling. It is optional: other languages send SIGUSR1 / wait for SIGUSR2, or use kryo snapshot create --wait.

kryo.checkpoint() does not snapshot by itself. The Kryo CLI freezes the process after it receives that signal.

Installation

pip install kryo

You still need the Kryo CLI, CRIU, and cuda-checkpoint on Linux. kryo snapshot create and kryo run must be run as root (sudo).

Usage

import kryo

# Setup (runs once, gets checkpointed)
model = load_model()
model.to("cuda")

kryo.checkpoint()  # Freeze here

# Inference (runs after restore)
result = model(input)

Then:

sudo kryo snapshot create --name mymodel -- python app.py
sudo kryo run --snapshot mymodel

checkpoint() is idempotent. Recreate the snapshot when the code, model, CUDA toolkit, or NVIDIA driver changes.

Requirements

  • Linux (CRIU is Linux-only)
  • Kryo CLI on PATH
  • NVIDIA driver 550+ for GPU checkpointing
  • CRIU and cuda-checkpoint

Download files

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

Source Distribution

kryo-0.3.0.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

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

kryo-0.3.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file kryo-0.3.0.tar.gz.

File metadata

  • Download URL: kryo-0.3.0.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kryo-0.3.0.tar.gz
Algorithm Hash digest
SHA256 958bf230faa1d02cfbef98dd1dc01962142cb0d4cd29c8a0414bad66524c3f3a
MD5 67a80de6dce86129a27333ab25410fd2
BLAKE2b-256 b55c1506117642a23f3b2e20ef0a7965fab757b7fb3e675bfa448cc62ef22bbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for kryo-0.3.0.tar.gz:

Publisher: release.yml on akhileshsharma99/kryo

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

File details

Details for the file kryo-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: kryo-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kryo-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a295bd3541cb2a8b20cf87495e341e8c18cbe00cc4872c9e35649e3954950cd4
MD5 a6e06bcb192f26bdd1862ab5dfa99b51
BLAKE2b-256 eef80a9e0015ea46cd7c739ac18ea6db0f3ad7d2e049cdca513cc7bb028897a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for kryo-0.3.0-py3-none-any.whl:

Publisher: release.yml on akhileshsharma99/kryo

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

Release history Release notifications | RSS feed

0.4.1

2 files

0.4.0

2 files

This release

0.3.0 This release

2 files

0.2.0

2 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