Skip to main content

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. hyperun is a client. Somebody has to run the gateway and the PACSrun operator; see docs/ 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.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hyperun 0.2.6
File Size Uploaded Provenance
hyperun-0.2.6.tar.gz 68.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hyperun 0.2.6
File Interpreter ABI Platform
hyperun-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 113.4 kB

Release files / hyperun-0.2.6.tar.gz

Download URL hyperun-0.2.6.tar.gz
Size 68.5 kB
Tags Source
SHA-256 checksum
How to use checksums
955533f5ea4bd7d26b5fb7f3938ae80f170e5105c1b14da3ba2214f81ebbc4ad
BLAKE2b-256 checksum
How to use checksums
7900cbb4e5dc5138416f0570bef74e25a47a2a40f40003f794dced34f14fe009
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 28, 2026.

Transparency log

Release files / hyperun-0.2.6-py3-none-any.whl

Download URL hyperun-0.2.6-py3-none-any.whl
Size 45.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96a43f029e52dcaa0858477929abe6d4320875032fae82d5007f3d5e37a8d839
BLAKE2b-256 checksum
How to use checksums
a2d4ec2b7ed0a02f016e27568ef99583ffda716ac11f75692b2118b40b36cd95
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 28, 2026.

Transparency log

Security for hyperun 0.2.6

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.

Select from 2 files

Attestation for hyperun-0.2.6.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 28, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page