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)
Metadata
Release files for runq-sdk 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| runq_sdk-0.5.0.tar.gz | 72.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| runq_sdk-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 119.7 kB
Release files / runq_sdk-0.5.0.tar.gz
| Download URL | runq_sdk-0.5.0.tar.gz |
|---|---|
| Size | 72.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31b6f297c1a249f34d5ab095e734c0725db00dc03cb1dbb70a0c93d839ebc6e0
|
|
BLAKE2b-256 checksum How to use checksums |
ac49a55dc45493a7de4ea0adf9eb81f6f045911a9ab8fb01c5faac07ca48e369
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logRelease files / runq_sdk-0.5.0-py3-none-any.whl
| Download URL | runq_sdk-0.5.0-py3-none-any.whl |
|---|---|
| Size | 47.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebc810d20ff7470244e6f8edee912cdc47bc6257c4c29d24ee37f0eadc236665
|
|
BLAKE2b-256 checksum How to use checksums |
134924f0f80c40ad406874376e84a17a18a700c45901b6b4eebb5327a8b115f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency log