Skip to main content

Keep GPU is a simple CLI app that keeps your GPUs running

Project description

Keep GPU

PyPI Version Docs Status

Keep GPU is a simple CLI app that keeps your GPUs running.


Features

  • Simple command-line interface
  • Uses PyTorch and nvidia-smi to monitor and load GPUs
  • Easy to extend for your own keep-alive logic

TODO ✅

  • Add more CLI args (e.g. --gpu-id, --gpu-ids, --gpu-keep-threshold, --gpu-keep-time, --gpu-keep-vram-usage)
  • Add documentation
  • Add importable Python functions

Installation

pip install keep-gpu

Usage

keep-gpu

Specify the interval in microseconds between GPU usage checks (default is 300 seconds):

keep-gpu --interval 100

Specify GPU IDs to run on (default is all available GPUs):

keep-gpu --gpu-ids 0,1,2

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

keep_gpu-0.2.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

keep_gpu-0.2.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file keep_gpu-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for keep_gpu-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cae051f948ffac93fa8100a287f94afaec6a501072e6481cf83ed98c94371cba
MD5 e73d454d10cec9f4fde261e9e49d2f1c
BLAKE2b-256 d31dfbad3e9d53953d86beecd835a672a041c73724b32477f322367b28605ddc

See more details on using hashes here.

File details

Details for the file keep_gpu-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: keep_gpu-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for keep_gpu-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9345594d3f9215731eebbbe2170cb9d76c52c2c6903c89964be8402aa2418806
MD5 c59a67d463f76a391d4ec138b78b9f9e
BLAKE2b-256 59da558e2a1ca48b923f6b1dacfdf88416fd07e5cf28409a344a8a5b5f5a96e7

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