Skip to main content

Checkpoint PyTorch training runs into PostgreSQL database.

Project description

PyTorchDBCheckpoint

Checkpoint PyTorch training runs into your 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 DefaultCheckpointer from the package
  • Configure DefaultCheckpointer class by specifying a handler and path to a 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
  • Better error handling
  • Toggle for SSL mode

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.1.0.tar.gz (5.2 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.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file pytorchdbcheckpoint-0.1.0.tar.gz.

File metadata

  • Download URL: pytorchdbcheckpoint-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytorchdbcheckpoint-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4689befdac0ff7984709cc474439c58621d64170d97ca1c2af122c1882218dde
MD5 8261789c0b656f4fddadc5b01a6ee12c
BLAKE2b-256 5c4274804732a3b589921ab271c3235688b32f129267955c8189322ba7e81417

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytorchdbcheckpoint-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba844fc6c99e43dd5f0402147e46c10b8dded8fc5c232731c862ba406f82c1c9
MD5 0d09b24897e6f3fa2e52508127fc6555
BLAKE2b-256 0f468bfe22c2063e0b51a8998e63aec0f6af67207767268c25f1d9ce972bc5f7

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