Intelligent Python Checkpointing
Project description
Intelligent checkpointing framework for Python-based machine learning and scientific computing. Under development as part of a research project at the University of Illinois at Urbana-Champaign.
Installation
Run the following command in a virtual environment.
python setup.py install
Jupyter Integration
Run Jupyter after installing kishu. In your notebook, you can enable kishu with the following command.
Basic Usage
from kishu import init_kishu
init_kishu()
Then, all the cell executions are recorded, and the result of each cell execution is checkpointed.
Working with Kishu
init_kishu()
adds a new variable _kishu
(of type KishuJupyterExecHistory) to Jupyter's namespace.
The special variable can be used for kishu-related operations, as follows.
Browse the execution log.
_kishu.log()
See the database file.
_kishu.checkpoint_file()
Restore a state.
_kishu.checkout(commit_id)
Checkpoint Backend
Deploy a restful server.
flask --app kishu/backend run
Deployment
The following command will upload this project to pypi (https://pypi.org/project/kishu/).
bash upload2pypi.sh
Project details
Release history Release notifications | RSS feed
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
Hashes for kishu-0.2.0-cp38-cp38-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | deccf865fd2810e3da35ff438e760ef95c6b6b9d30f968eadf0bfd1128ad1793 |
|
MD5 | ee28a815ec086490f19335c423b4d0bc |
|
BLAKE2b-256 | 448061909ad62599b7b1b9941476c4ce17909807682817bd60ff1c8ad25be13c |