Skip to main content

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/ddl folder)
  • Import PostgresHandler from the package
  • Instantiate PostgresHandler class 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytorchdbcheckpoint-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytorchdbcheckpoint-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for pytorchdbcheckpoint-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9ced343e28eb8cb83247306026c4cca39bad93174173578b62102737b95563cf
MD5 86c265bb7d2d7a1da9d569531d289d70
BLAKE2b-256 582e79882fde0d53c01cb99ab7cd88052e8e4095e1978ee8c8756c7b8f2f0525

See more details on using hashes here.

File details

Details for the file pytorchdbcheckpoint-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytorchdbcheckpoint-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9fd8c9a8e942880a5d9990f535ecea6e553723bab6f649c7f50d7b6291fdd31e
MD5 b760b53400343a79e62a9adac6f96593
BLAKE2b-256 87d65a6d3ff3e26e509cb0d3a9f4b83ede6f6340a14cedc9e4f3e4a08c87072c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page