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.4.0.tar.gz (29.4 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.4.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kryo-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2a818f7e237272a3ec05688c4c34dea2547af64b4bf8d3270fcade8608255dd9
MD5 6055371384881edc6309b58944e5be6a
BLAKE2b-256 00de8033ab0e8bad473147b0d5aa467773bd40dbcfa8894a210cc3d812fd7b94

See more details on using hashes here.

Provenance

The following attestation bundles were made for kryo-0.4.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: kryo-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 228159a21abe1ee3c55d3b2b4510813ef11c40c2a1a01a43c6e22ec5e7a1c544
MD5 21971000a87c013d7bf1e54a6438fc41
BLAKE2b-256 1c53bcb85d6d3c5970467fd27bb1114ee06cf71a8819fb6161dc551c650ef65e

See more details on using hashes here.

Provenance

The following attestation bundles were made for kryo-0.4.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

This release

0.4.0 This release

2 files

0.3.0

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