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
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 gpusitter-2.0.0.tar.gz.
File metadata
- Download URL: gpusitter-2.0.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ead00ef85867604602b7ef2d064ff3d30b03e3d296e81f765059ad75b84d5ed
|
|
| MD5 |
62e5aac1591a61b9e0ace5831aa1b734
|
|
| BLAKE2b-256 |
eef4fc44c5884d5a916a9527c9d884e050fed0d2a1871726f1328bef54988238
|
File details
Details for the file gpusitter-2.0.0-py3-none-any.whl.
File metadata
- Download URL: gpusitter-2.0.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8396d4733a2720a024a1cd9b89b5092708d2268220e0b6b2baec9c47f1c110f
|
|
| MD5 |
0703c98029622a7a9b55cf07c0a8e96a
|
|
| BLAKE2b-256 |
d06bed4341209c1b59d9a7ca5780d49e511717d5d93930692ddeccfd75c5607c
|