hyperun
Submit a GPU job. Get results back. No kubectl, no cloud account, no VM to babysit.
hyperun is the front door to PACSrun, a Kubernetes-native batch job system that rents GPUs from
whichever vendor is cheapest for the shape you asked for — AWS, GCP or RunPod — runs your code
there, and puts the results in object storage. You describe the job; you never see the machine.
$ hyperun login <token>
$ hyperun estimate -f job.yaml
$ hyperun submit -f job.yaml
$ hyperun logs <job-id> --follow
Why it exists
A researcher who wants a GPU for two hours has three bad options today: get a cloud account and
learn its console, get kubectl access to somebody's cluster, or ask a person. Each of those
teaches infrastructure to somebody whose job is not infrastructure.
The alternative here is that a batch job is the unit. You hand over a job description and a program. The platform decides which machine to rent, rents it, runs your code, brings the output home, and hands the machine back. When it goes wrong you get an exit code and a sentence, not a half-configured VM.
Install
pip install hyperun
Two dependencies, requests and PyYAML, and that is deliberate: this package installs next to
your research code, so every extra dependency is one that can fight with something you have
pinned. No click, no rich, no pydantic.
Python 3.9 or newer.
Configure
hyperun needs a server URL and a token. Ask whoever runs your deployment for both.
$ export HYPERUN_SERVER=https://<your-gateway-url>
$ hyperun login <token>
login writes them to ~/.config/hyperun/config.json with mode 0600, or to
$XDG_CONFIG_HOME/hyperun when that is set. A config left behind by the old ddpsrun
command is still read, so a rename logs nobody out. For CI, where a file is the wrong shape, set
HYPERUN_TOKEN in the environment and skip login entirely.
The commands
login / logout |
store and remove the server URL and token |
explain |
what this deployment can do, in prose — run it first |
schema |
the job description's fields and their types |
estimate |
what a job would cost and how long it would take, before you spend anything |
validate |
check a job description without submitting it |
submit |
submit it |
status / watch |
where a job is now; watch follows until it ends |
logs |
your program's own output, --follow to stream |
stats |
GPU utilisation, memory, temperature and power while the job runs |
cancel |
stop a job and hand its machine back |
Exit codes are contractual: 0 it worked, 1 the server refused or a validate finding would
stop the job, 2 the command was wrong or there are no credentials.
Writing a job
A job description is YAML:
image: nvcr.io/nvidia/pytorch:24.10-py3
command: ["/bin/bash", "-c"]
args:
- |
python train.py --epochs 3
resources:
gpus:
name: L4
count: 1
resultPath: s3://<your-bucket>/runs/my-experiment/
Run hyperun schema for every field and hyperun explain for what your deployment allows.
Do not guess the GPU or the runtime. hyperun estimate answers both from measured data, and
guessing is how a job ends up on a card several times more expensive than it needed.
Using it from an AI coding agent
This repository ships a Claude Code plugin. It teaches an agent five steps: read what the deployment allows, read your repository against the script contract, estimate rather than assume, validate and stop on a finding, and submit only after you approve.
/plugin marketplace add ddps-lab/pacsrun-gw
/plugin install hyperun
The plugin's reference documents are in agent/references/. The one worth
reading yourself is script-contract.md: a list of the ways
a long training run dies in its last minute, each one taken from a run that did.
What this is not
- Not an interactive machine. There is no SSH and no shell into a running job. You submit a program and read its output. If you need to poke at a live container, this is the wrong tool today.
- Not a scheduler you host.
hyperunis a client. Somebody has to run the gateway and the PACSrun operator; seedocs/if that somebody is you. - Not free of limits. A job's credentials for writing results last twelve hours, which is AWS's hard maximum for a role session and not a setting anyone can raise. A run longer than that must checkpoint and resume, and the driver warns half an hour before the deadline.
Repository layout
cli/ |
the hyperun package published to PyPI |
server/ |
the gateway: authenticates users, talks to Kubernetes |
agent/ |
the Claude Code plugin — one skill, four reference documents |
ui/ |
a small static web front end (index.html, app.js, style.css) |
terraform/ |
the deployment: Lambda, Cognito, S3, CloudFront |
docs/ |
seventeen design documents, numbered in reading order |
Development
$ pip install -e 'cli/[dev]' # the client
$ pip install -e 'server/[dev]' # the gateway
$ pytest cli/tests server/tests
Both halves live in one repository so the two sides of an API change land in one commit. They share nothing else: the client never imports the Kubernetes libraries, and the server never imports the browser login flow.
No account identifiers in this repository. Documents and code use placeholders —
<ACCOUNT_ID>, <RESULT_BUCKET> — and CI checks every push for AWS account numbers, access keys,
GitHub and RunPod tokens, private keys, and Google OAuth secrets.
License
Apache-2.0. See LICENSE.
Metadata
Release files for hyperun 0.2.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 | Provenance | |
|---|---|---|---|---|
| hyperun-0.2.0.tar.gz | 56.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hyperun-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.7 kB
Release files / hyperun-0.2.0.tar.gz
| Download URL | hyperun-0.2.0.tar.gz |
|---|---|
| Size | 56.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c67c703e7458e283e477ca4538ed4407a18372fdedfff8953eb4148d13886340
|
|
BLAKE2b-256 checksum How to use checksums |
1b73fe67af4eb135ef666acddaa31fd38d3b92bcb20e1d0bc3a73b7f4ff0b688
|
| 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 Sep 10, 2026.
Transparency logRelease files / hyperun-0.2.0-py3-none-any.whl
| Download URL | hyperun-0.2.0-py3-none-any.whl |
|---|---|
| Size | 38.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b90cb4208897b0e7fdf6c886c324a8d0bb02ac1886243bfc8918da5b0665276
|
|
BLAKE2b-256 checksum How to use checksums |
fc2a74233b40eb0a7915c3dd31c124b1a86d2bbf889c7b13624d0704687d5db6
|
| 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 Sep 10, 2026.
Transparency logSecurity for hyperun 0.2.0
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for hyperun-0.2.0.tar.gz
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 Sep 10, 2026.
Transparency logA 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.