Simple GPU Queue
Simple GPU Queue: For running lots of smaller experiments on your handful of GPUs
Functional, minimal.
Quickstart
pip install simple_gpu_queue
simpleq_start 4 --memfrac-per-proc=0.45 # Start 2 processes per gpu, each taking 0.45 the total amount of GPU RAM available
Example python launch script
from simple_gpu_queue.simple_gpu_queue import GPUQueueClient
queue = GPUQueueClient(git_commit_id="most_recent")
# Send commands as a list of (command, stdout_file) tuples. Stdoutfile can be "" for no saving of stdout logging.
commands = [
("python -c 'import time; import jax.numpy as jnp; a=jnp.ones(5); time.sleep(1); print(\"I SLEPT HAPPY 1\")'", "testlogs/v1.txt"),
("python -c 'import time; import jax.numpy as jnp; a=jnp.ones(5); time.sleep(2); print(\"I SLEPT HAPPY 2\")'", ""),
("python -c 'import time; import jax.numpy as jnp; a=jnp.ones(5); time.sleep(3); print(\"I SLEPT HAPPY 3\")'", "testlogs/v3.txt"),
]
if queue.git_repo.is_dirty():
user_input = input("Repo has uncommitted changes: continue? [Y/n] ").strip().lower()
if user_input == 'n':
raise ValueError("Aborting due to uncommitted changes in the repository.")
queue.send_command_list(commands)
For Development
conda env create -f environment.yml
conda activate simple-gpu-queue
pip install -r requirements.txt
# pip install -r requirements-dev.txt
Check the server is running, navigate to http://localhost:5034/docs, test the routes
Upload to pypi (reference)
rm -rf dist/
python setup.py sdist bdist_wheel
twine upload dist/*
Metadata
Release files for simple-gpu-queue 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simple_gpu_queue-0.1.1.tar.gz | 8.9 kB | Without provenance | Details for simple_gpu_queue-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_gpu_queue-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for simple_gpu_queue-0.1.1-py3-none-any.whl |
Total release size: 18.1 kB
Release files / simple_gpu_queue-0.1.1.tar.gz
| Download URL | simple_gpu_queue-0.1.1.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
126589bf2df343253610ddef81bef6dbd2efa630c3014e8b059a30ee0d8e2cd7
|
|
BLAKE2b-256 checksum How to use checksums |
89744d617eb8aec68b8b2988e80e6e39931b605ef54c9612c5f0fb909c2c9f02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Release files / simple_gpu_queue-0.1.1-py3-none-any.whl
| Download URL | simple_gpu_queue-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
008f865d9e83eb06c2bf90638c1944b07caa59350c115c10381f4a902f1d1e61
|
|
BLAKE2b-256 checksum How to use checksums |
b98b852d671900d1838bb3d4e931966666cb9df52c970c203dd9e8d91ed62b76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.14
|
Security for simple-gpu-queue 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.