Lab GPU scheduler — in-task Python SDK
Project description
runq Python SDK
In-task SDK for the runq GPU scheduler.
Install
From the repo root:
pip install -e ./sdk/python
Optional extras:
pip install -e "./sdk/python[wandb]" # auto wandb integration
pip install -e "./sdk/python[dev]" # for pytest
Quick start
import runq
ctx = runq.context()
runq.log_metric("loss", 0.42, step=epoch)
See demo/l2c/stage2_sdk_design.md for the full API design.
Three modes
Detected automatically at runq.context():
daemon— running under a runq daemon (RUNQ_TASK_ID+RUNQ_SOCKET_PATHset)no_daemon— running on HPC compute node (RUNQ_TASK_IDset, no socket /RUNQ_NO_DAEMON=1)manual— running outside runq (noRUNQ_TASK_ID); useful for local debugging
ctx.mode exposes which mode is active.
Stage 2 status
This is incremental — Tier A first, Tier B/C as we go.
- Step 1: package skeleton +
context()+ tri-mode +log_metric - Step 2:
transport.py(unix socket HTTP client) - Step 3:
safe_savecore (path resolution + TOCTOU + freeze) - Step 4:
safe_savedecorator + size walker - Step 5:
safe_savemanifest + keep_last_n / keep_best - Step 6:
report+Decision+@early_stop - Step 7: YAML early_stop policies
- Step 8:
loop+@epoch+@log_group - Step 9: wandb integration (L3)
- Step 10: daemon-side preflight (Go side, parallel track)
Project details
Release history Release notifications | RSS feed
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 runq_sdk-0.5.0rc1.tar.gz.
File metadata
- Download URL: runq_sdk-0.5.0rc1.tar.gz
- Upload date:
- Size: 66.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6db2e814a1deb9eb5a9754e9be07d25bf1f6d213ef4f8bee3542ed2dccbfcddc
|
|
| MD5 |
b13c374228bf9a4cbe58cc6c513a266e
|
|
| BLAKE2b-256 |
1cfc0ce5620ed6ba5613b5e19a396053549f4844c768aa9f4ffaf6740bc83208
|
Provenance
The following attestation bundles were made for runq_sdk-0.5.0rc1.tar.gz:
Publisher:
release.yml on Gliese129/runq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runq_sdk-0.5.0rc1.tar.gz -
Subject digest:
6db2e814a1deb9eb5a9754e9be07d25bf1f6d213ef4f8bee3542ed2dccbfcddc - Sigstore transparency entry: 2171958614
- Sigstore integration time:
-
Permalink:
Gliese129/runq@4fc2a721869a769dad213b9014c4dc35d9eb1b6f -
Branch / Tag:
refs/tags/v0.5.0rc1 - Owner: https://github.com/Gliese129
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4fc2a721869a769dad213b9014c4dc35d9eb1b6f -
Trigger Event:
push
-
Statement type:
File details
Details for the file runq_sdk-0.5.0rc1-py3-none-any.whl.
File metadata
- Download URL: runq_sdk-0.5.0rc1-py3-none-any.whl
- Upload date:
- Size: 43.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
349356134122fe7ce3758f331cdc44661df3c489a878242b9a4189298dae1cb9
|
|
| MD5 |
41fe76a7042a7549dd379168232362f8
|
|
| BLAKE2b-256 |
1730b9f6db58c6bccb2078a4fd5a775735fc909c385953216d4ce2646130c6cb
|
Provenance
The following attestation bundles were made for runq_sdk-0.5.0rc1-py3-none-any.whl:
Publisher:
release.yml on Gliese129/runq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runq_sdk-0.5.0rc1-py3-none-any.whl -
Subject digest:
349356134122fe7ce3758f331cdc44661df3c489a878242b9a4189298dae1cb9 - Sigstore transparency entry: 2171958644
- Sigstore integration time:
-
Permalink:
Gliese129/runq@4fc2a721869a769dad213b9014c4dc35d9eb1b6f -
Branch / Tag:
refs/tags/v0.5.0rc1 - Owner: https://github.com/Gliese129
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4fc2a721869a769dad213b9014c4dc35d9eb1b6f -
Trigger Event:
push
-
Statement type: