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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
562a3e8a5e99b93e386ccc95f679253b8ff759d723fff16b2eeb70270349928b
|
|
| MD5 |
2581ce3bae3041854333e033f584b993
|
|
| BLAKE2b-256 |
79c653145cfdedc8109433493b7630f692ef9c8a786ce27111213d36d52da474
|
Provenance
The following attestation bundles were made for kryo-0.4.1.tar.gz:
Publisher:
release.yml on akhileshsharma99/kryo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kryo-0.4.1.tar.gz -
Subject digest:
562a3e8a5e99b93e386ccc95f679253b8ff759d723fff16b2eeb70270349928b - Sigstore transparency entry: 2664311607
- Sigstore integration time:
-
Permalink:
akhileshsharma99/kryo@4913e96d7bd73c3e90fc50bdba08215bf98f9c8e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/akhileshsharma99
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4913e96d7bd73c3e90fc50bdba08215bf98f9c8e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1bdb514525158204c24cf9e701783ba329d41bd69c1b2d04edf69fd434c051e
|
|
| MD5 |
236077283d655d41a643b7a15ef04026
|
|
| BLAKE2b-256 |
77aeed631c2c55c0a6056b485562979cb1062d5a6ed14dd6d52ccda9110e187d
|
Provenance
The following attestation bundles were made for kryo-0.4.1-py3-none-any.whl:
Publisher:
release.yml on akhileshsharma99/kryo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kryo-0.4.1-py3-none-any.whl -
Subject digest:
a1bdb514525158204c24cf9e701783ba329d41bd69c1b2d04edf69fd434c051e - Sigstore transparency entry: 2664311634
- Sigstore integration time:
-
Permalink:
akhileshsharma99/kryo@4913e96d7bd73c3e90fc50bdba08215bf98f9c8e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/akhileshsharma99
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4913e96d7bd73c3e90fc50bdba08215bf98f9c8e -
Trigger Event:
push
-
Statement type: