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.1.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.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kryo-0.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 562a3e8a5e99b93e386ccc95f679253b8ff759d723fff16b2eeb70270349928b
MD5 2581ce3bae3041854333e033f584b993
BLAKE2b-256 79c653145cfdedc8109433493b7630f692ef9c8a786ce27111213d36d52da474

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: kryo-0.4.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1bdb514525158204c24cf9e701783ba329d41bd69c1b2d04edf69fd434c051e
MD5 236077283d655d41a643b7a15ef04026
BLAKE2b-256 77aeed631c2c55c0a6056b485562979cb1062d5a6ed14dd6d52ccda9110e187d

See more details on using hashes here.

Provenance

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

This release

0.4.1 This release

2 files

0.4.0

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