Checkpoint PyTorch training runs into PostgreSQL database.
Project description
PyTorchDBCheckpoint
Checkpoint PyTorch training runs into PostgreSQL database.
Save model weights, optimizer state and metrics at any time. This library allows you to save your model and not worry about .pt files scattered across your file system.
Quickstart
- Set up database schema (DDL available in
src/ddlfolder) - Import
PostgresHandlerfrom the package - Instantiate
PostgresHandlerclass with a path to config file - Use available methods to save or load model and optim state
Config file example - database.ini
[postgresql]
host=your_host
database=your_database
user=your_user
password=your_password
port=your_port
Roadmap
- Support for MongoDB
- Add option for users to write own classes for data manipulation
- Add decorators to abstract use of connections and cursors
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
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 pytorchdbcheckpoint-0.0.1.tar.gz.
File metadata
- Download URL: pytorchdbcheckpoint-0.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ced343e28eb8cb83247306026c4cca39bad93174173578b62102737b95563cf
|
|
| MD5 |
86c265bb7d2d7a1da9d569531d289d70
|
|
| BLAKE2b-256 |
582e79882fde0d53c01cb99ab7cd88052e8e4095e1978ee8c8756c7b8f2f0525
|
File details
Details for the file pytorchdbcheckpoint-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pytorchdbcheckpoint-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fd8c9a8e942880a5d9990f535ecea6e553723bab6f649c7f50d7b6291fdd31e
|
|
| MD5 |
b760b53400343a79e62a9adac6f96593
|
|
| BLAKE2b-256 |
87d65a6d3ff3e26e509cb0d3a9f4b83ede6f6340a14cedc9e4f3e4a08c87072c
|