Skip to main content

Watch for idle GPUs and run your jobs: launches jobs in tmux, keeps logs/status and sends start/finish emails..

Project description

GPUSitter

Watch for idle GPUs and run your jobs: launches jobs in tmux, keeps logs/status and sends start/finish emails..

Features

  • Real-time GPU usage monitoring
  • Command-line interface, easy to integrate into workflows
  • Email notifications
  • Scheduled automatic job running

Installation

pip install gpusitter

Usage

gpust --job="python train.py"  # with 1 gpu

gpust --job="python train.py:4"  # with 4 gpus

Parameter description:

class ConfigData:
    """Configuration data for GPU Snatcher."""

    gpu_free_memory_ratio_threshold: float
    friendly_min: float
    email_host: str
    email_user: str
    email_pwd: str
    email_sender: str
    email_receivers: list[str]
  • gpu_free_memory_ratio_threshold: The minimum free GPU memory ratio required to consider a GPU available. Only GPUs with free memory above this threshold will be used.
  • friendly_min: Waiting time (in seconds) before allocating GPUs. Helps prevent OOM from previous jobs.
  • email_host: Email server, e.g., smtp.qq.com
  • email_user: Email address
  • email_pwd: SMTP authorization code
  • email_sender: Sender
  • email_receivers: Recipients

Contribution

Issues and pull requests are welcome. Please follow the project's code style guidelines.

License

This project is licensed under the MIT License.

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

gpusitter-2.0.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

gpusitter-2.0.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file gpusitter-2.0.2.tar.gz.

File metadata

  • Download URL: gpusitter-2.0.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for gpusitter-2.0.2.tar.gz
Algorithm Hash digest
SHA256 b907de7f3c775f4c8aff7e262fc9d0ba1d6fb60de3cb0327b97abf79d972bba8
MD5 b3de99a7f87dcc2dbf7712e84019062e
BLAKE2b-256 ba70841b13ae8cc65fc853efce817e6e4cc46c6c33b3e31b688dcd066dfb7f7d

See more details on using hashes here.

File details

Details for the file gpusitter-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: gpusitter-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for gpusitter-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9d12aaab1cf72a6eae60c8efd6759da071fed9c4c3587dbf764e3ed779e5e4e2
MD5 5471f97e1419405e65ab6be249083259
BLAKE2b-256 d788d07899eba5bcbcf9135ead04fa1dc2a3fc7ebddb4e8bfce96f82197ed7a5

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