HyperGAN logo HyperGAN v2.2.0
Auto-Generated From hypergan.cli._parser()

CLI Reference

Complete command-line interface for hypergan covering project scaffolding, static validation, training, run lifecycle management, sampling, evaluation, export, job queues, and the local Web Observatory.

52 commands & subcommands 6 workflow groups

Global Flags

Flag Description
--json output results as JSON
-q, --quiet suppress non-essential output, banners, and progress
No CLI commands match your search query.

Project & Config

10 commands

Scaffold new projects, inspect packaged recipes, validate model files, check datasets, and query schema or HNDL ops.

cmd

hypergan new

#

Create a starter project or model .toml configuration (does not start training)

hypergan new [-h] [-l] [-t {dcgan,tiny-transformer,resnet,transgan,colorization,paired-image,conditional,gaussian-grid}] [-r {32,64,128,256,512,1024}] [--conditional] [-o OUTPUT] [-p PROJECT] [--device DEVICE] [--dataset DATASET] [--json] [-q] [path]
Positional Arguments
Argument Required Description
PATH optional destination .toml file, project directory, or dataset directory (when -o is given)
Options
Flag Default / Choices Description
-l, --list false list available starter templates and examples
-t, --template TEMPLATE
dcgantiny-transformerresnettransgancolorizationpaired-imageconditionalgaussian-grid
starter architecture template (default: dcgan with --dataset/--resolution, else gaussian-grid)
-r, --resolution RESOLUTION
32641282565121024
target image resolution (32, 64, 128, 256, 512, 1024)
--conditional false generate conditional architecture template with condition input
-o, --output OUTPUT output .toml file path
-p, --project PROJECT initialize a full HyperGAN project directory with hypergan.toml, runs/, and configs/
--device DEVICE cuda training device: cuda (default), cuda:N, or explicit cpu
--dataset DATASET directory of images to size and generate recipe for
cmd

hypergan validate

#

Validate a project without loading training dependencies

hypergan validate [-h] [--runtime] [--profile PROFILE] [--data] [--output OUTPUT] [-s KEY=VALUE] [--json] [-q] path
Positional Arguments
Argument Required Description
PATH required
Options
Flag Default / Choices Description
--runtime false also construct the recipe in bounded CPU/CUDA workers (requires train extra)
--profile PROFILE execution-profile TOML file for --runtime preflight
--data false verify dataset directory and emit data inventory manifest
--output OUTPUT write the data manifest to a new file (when --data is passed)
-s, --set KEY=VALUE [] override configuration value before validation (e.g. --set train.steps=500; VALUE null removes the key)
cmd

hypergan preflight

#

Check a configuration against an execution profile before training

hypergan preflight [-h] [--profile PROFILE] [--runtime] [--json] [-q] config
Positional Arguments
Argument Required Description
CONFIG required
Options
Flag Default / Choices Description
--profile PROFILE execution-profile TOML file; omitted uses the configured native device
--runtime false also construct the recipe in bounded CPU/CUDA workers (requires train extra)
cmd

hypergan data-check

#

Verify a configuration's image dataset and write its inventory manifest

hypergan data-check [-h] [--output OUTPUT] [--json] [-q] config
Positional Arguments
Argument Required Description
CONFIG required
Options
Flag Default / Choices Description
--output OUTPUT write the data manifest to a new file
cmd

hypergan download-data

#

Opt-in acquisition, checksum verification, and manifest preparation for qualified datasets

hypergan download-data [-h] [-o OUTPUT] [--cache-dir CACHE_DIR] [--info] [--list] [--verify-only] [--source-archive SOURCE_ARCHIVE] [--url URL] [--timeout TIMEOUT] [--json] [-q] [dataset]
Positional Arguments
Argument Required Description
DATASET optional qualified dataset identifier (default: cifar10)
Options
Flag Default / Choices Description
-o, --output OUTPUT destination directory for extracted dataset and dataset-manifest.json
--cache-dir CACHE_DIR archive download cache directory (default: <output>/.cache)
--info false show source URL, version, expected bytes, checksums, and usage notice without downloading
--list false list qualified datasets available for download
--verify-only false verify existing archive/extracted files without downloading
--source-archive SOURCE_ARCHIVE verify and extract an already-downloaded local archive file
--url URL override download URL (archive must still pass pinned size and SHA256 verification)
--timeout TIMEOUT 60.0 network timeout in seconds (default: 60)
cmd

hypergan convert

#

Convert a legacy recipe TOML into a model file

hypergan convert [-h] --output OUTPUT [--json] [-q] recipe
Positional Arguments
Argument Required Description
RECIPE required path to legacy recipe TOML
Options
Flag Default / Choices Description
--output OUTPUT output model.toml destination
cmd

hypergan recipes

#

List the packaged model recipes (JSON)

hypergan recipes [-h] [--json] [-q]
cmd

hypergan schema

#

Introspect hypergan-model/1 specification and section schemas

hypergan schema [-h] [--section SECTION] [--json] [-q]
Options
Flag Default / Choices Description
--section SECTION specific schema section to inspect (e.g. train, data, networks)
cmd

hypergan ops

#

Introspect HNDL neural network operators and signatures

hypergan ops [-h] [--json] [-q] [query]
Positional Arguments
Argument Required Description
QUERY optional search query filtering operator name, category, or summary
cmd

hypergan version

#

Print the HyperGAN version

hypergan version [-h] [--json] [-q]

Training & Lifecycle

7 commands

Launch, resume, checkpoint, tag, gracefully stop, and remove training runs.

cmd

hypergan train

#

Create a run or resume its latest checkpoint with the same configuration

hypergan train [-h] [-n NAME] [--run-dir RUN_DIR] [--config CONFIG_OPT] [-d DEVICES] [--checkpoint CHECKPOINT] [--steps STEPS] [-s KEY=VALUE] [--nodes NODES] [--node-rank NODE_RANK] [--rendezvous RENDEZVOUS] [--strategy {gradient_allreduce,pseudo_gradient,parameter_average}] [--sync-every SYNC_EVERY] [--profile PROFILE] [--server | --no-server] [--port SERVER_PORT] [-b SERVER_HOST] [--auth {none,token}] [--public-origin URL] [--open] [--dev] [--checkpoint-every CHECKPOINT_EVERY] [--max-seconds MAX_SECONDS] [--stop-after-steps STOP_AFTER_STEPS] [--progress-every PROGRESS_EVERY] [--progress-json] [--preview-every PREVIEW_EVERY | --no-previews] [--preview-keep N] [--preview-name PREVIEW_NAME] [--json] [-q] [config]
Positional Arguments
Argument Required Description
CONFIG optional configuration file or existing run directory/slug/ID to resume
Options
Flag Default / Choices Description
-n, --name NAME custom experiment name / slug for the run
--run-dir RUN_DIR new run directory, or an existing run to resume
--config CONFIG_OPT explicit configuration file override
-d, --devices DEVICES device(s) to train on: 0, 0,1, gpu0,gpu1, auto, cpu
--checkpoint CHECKPOINT target checkpoint: best, latest, step number, or path
--steps STEPS total target steps; may increase on resume when lr_floor=1 (constant learning rate)
-s, --set KEY=VALUE [] override configuration value (e.g. --set train.device=cuda:1 or --set losses.reconstruction.weight=0.5; VALUE null removes the key)
--nodes NODES number of distributed cluster nodes (default: 1, or auto-detected from cluster env)
--node-rank NODE_RANK rank index of this node from 0 to nodes-1 (default: 0, or auto-detected from cluster env)
--rendezvous RENDEZVOUS distributed rendezvous URI (e.g. tcp://<master_host>:<port>, or auto-detected)
--strategy STRATEGY
gradient_allreducepseudo_gradientparameter_average
distributed aggregation strategy (default: gradient_allreduce)
--sync-every SYNC_EVERY cadence in steps for replica synchronization in local-SGD strategies (default: 1)
--profile PROFILE execution profile name or TOML path; new runs default to native device, existing runs inherit (multi-node profiles and the parameter_average/pseudo_gradient aggregation strategies are experimental)
--server false require the local viewer before training starts
--no-server, --no-web false train without web imports or listening sockets
--port, --server-port SERVER_PORT require a specific viewer port (default: 8765; an occupied port is an error, never a search; 0 selects any free port)
-b, --bind, --host, --server-host SERVER_HOST listen address (default: 127.0.0.1; e.g. -b 0.0.0.0)
--auth AUTH
nonetoken
viewer authentication (default: none)
--public-origin URL absolute origin of a TLS proxy in front of the viewer, e.g. https://machine.tailnet.ts.net (scheme, host and optional port only)
--open false require the viewer and open its sign-in page
--dev, --viewer-dev false serve browser assets fresh from this checkout (same as HYPERGAN_VIEWER_DEV=1)
--checkpoint-every CHECKPOINT_EVERY save a complete checkpoint every N updates (default: 1000; existing runs inherit)
--max-seconds MAX_SECONDS stop at an update boundary after this attempt's wall-time budget
--stop-after-steps STOP_AFTER_STEPS stop this attempt after N updates, preserving the total learning-rate schedule
--progress-every PROGRESS_EVERY print routine progress every N updates (default: 100; saved UI setting inherits)
--progress-json false stream cadence-filtered JSONL progress, lifecycle events and a final result to stdout
--preview-every PREVIEW_EVERY publish an isolated EMA preview every N complete updates
--no-previews disable periodic previews for this attempt
--preview-keep N retain at most N periodic previews; when the run outgrows N the older samples are thinned by doubling their spacing, so the slider still spans the whole run (default: 128; pass 'all' to keep every sample; a resume inherits only a bound that was asked for explicitly)
--preview-name PREVIEW_NAME short stable name indexing this run's generated samples (default: g; the real batch is published as x)
cmd

hypergan resume

#

Continue a complete training checkpoint on its recorded device

hypergan resume [-h] [--run-dir RUN_DIR] [--config CONFIG] [-d DEVICES] [--checkpoint CHECKPOINT] [--steps STEPS] [-s KEY=VALUE] [--nodes NODES] [--node-rank NODE_RANK] [--rendezvous RENDEZVOUS] [--strategy {gradient_allreduce,pseudo_gradient,parameter_average}] [--sync-every SYNC_EVERY] [--profile PROFILE] [--server | --no-server] [--port SERVER_PORT] [-b SERVER_HOST] [--auth {none,token}] [--public-origin URL] [--open] [--dev] [--checkpoint-every CHECKPOINT_EVERY] [--max-seconds MAX_SECONDS] [--stop-after-steps STOP_AFTER_STEPS] [--progress-every PROGRESS_EVERY] [--progress-json] [--preview-every PREVIEW_EVERY | --no-previews] [--preview-keep N] [--preview-name PREVIEW_NAME] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional existing run directory, slug, short ID, or name to resume
Options
Flag Default / Choices Description
--run-dir RUN_DIR explicit run directory override
--config CONFIG verify exact compatibility with this configuration
-d, --devices DEVICES device(s) to train on: 0, 0,1, gpu0,gpu1, auto, cpu
--checkpoint CHECKPOINT target checkpoint: best, latest, step number, or path
--steps STEPS total target steps; may increase on resume when lr_floor=1 (constant learning rate)
-s, --set KEY=VALUE [] override configuration value (e.g. --set train.device=cuda:1 or --set losses.reconstruction.weight=0.5; VALUE null removes the key)
--nodes NODES number of distributed cluster nodes (default: 1, or auto-detected from cluster env)
--node-rank NODE_RANK rank index of this node from 0 to nodes-1 (default: 0, or auto-detected from cluster env)
--rendezvous RENDEZVOUS distributed rendezvous URI (e.g. tcp://<master_host>:<port>, or auto-detected)
--strategy STRATEGY
gradient_allreducepseudo_gradientparameter_average
distributed aggregation strategy (default: gradient_allreduce)
--sync-every SYNC_EVERY cadence in steps for replica synchronization in local-SGD strategies (default: 1)
--profile PROFILE execution profile name or TOML path; new runs default to native device, existing runs inherit (multi-node profiles and the parameter_average/pseudo_gradient aggregation strategies are experimental)
--server false require the local viewer before training starts
--no-server, --no-web false train without web imports or listening sockets
--port, --server-port SERVER_PORT require a specific viewer port (default: 8765; an occupied port is an error, never a search; 0 selects any free port)
-b, --bind, --host, --server-host SERVER_HOST listen address (default: 127.0.0.1; e.g. -b 0.0.0.0)
--auth AUTH
nonetoken
viewer authentication (default: none)
--public-origin URL absolute origin of a TLS proxy in front of the viewer, e.g. https://machine.tailnet.ts.net (scheme, host and optional port only)
--open false require the viewer and open its sign-in page
--dev, --viewer-dev false serve browser assets fresh from this checkout (same as HYPERGAN_VIEWER_DEV=1)
--checkpoint-every CHECKPOINT_EVERY save a complete checkpoint every N updates (default: 1000; existing runs inherit)
--max-seconds MAX_SECONDS stop at an update boundary after this attempt's wall-time budget
--stop-after-steps STOP_AFTER_STEPS stop this attempt after N updates, preserving the total learning-rate schedule
--progress-every PROGRESS_EVERY print routine progress every N updates (default: 100; saved UI setting inherits)
--progress-json false stream cadence-filtered JSONL progress, lifecycle events and a final result to stdout
--preview-every PREVIEW_EVERY publish an isolated EMA preview every N complete updates
--no-previews disable periodic previews for this attempt
--preview-keep N retain at most N periodic previews; when the run outgrows N the older samples are thinned by doubling their spacing, so the slider still spans the whole run (default: 128; pass 'all' to keep every sample; a resume inherits only a bound that was asked for explicitly)
--preview-name PREVIEW_NAME short stable name indexing this run's generated samples (default: g; the real batch is published as x)
cmd

hypergan stop

#

Gracefully stop an active training run (saves checkpoint and halts)

hypergan stop [-h] [--all] [--timeout TIMEOUT] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional active run: run ID, short ID, slug, tag, run directory name, or path (default: active run)
Options
Flag Default / Choices Description
--all false gracefully stop all active training runs
--timeout TIMEOUT 15.0 seconds to wait for graceful checkpoint shutdown (default: 15)
cmd

hypergan checkpoint

#

Request or inspect an on-demand checkpoint for an active run

hypergan checkpoint [-h] [--request-id REQUEST_ID | --status REQUEST_ID] [--attempt-id ATTEMPT_ID] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional run ID, short ID, slug, tag, run directory name, or path (default: active run)
Options
Flag Default / Choices Description
--request-id REQUEST_ID reuse this ID to retry the same request safely
--status REQUEST_ID read a request receipt without submitting
--attempt-id ATTEMPT_ID target this attempt (default: current manifest attempt)
cmd

hypergan checkpoints

#

Manage a run's saved checkpoints (prune)

hypergan checkpoints [-h] [--json] [-q] {prune} ...
Subcommands (1)
subcommand

hypergan checkpoints prune

#

Prune obsolete checkpoints under the retention policy

hypergan checkpoints prune [-h] [--dry-run] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional run ID, short ID, slug, tag, run directory name, or path
Options
Flag Default / Choices Description
--dry-run false evaluate retention without deleting any files
cmd

hypergan tag

#

Rename or tag a training run in its manifest and global registry

hypergan tag [-h] [--json] [-q] run_dir name
Positional Arguments
Argument Required Description
RUN_DIR required run ID, short ID, slug, tag, run directory name, or path
NAME required new name or tag for the run
cmd

hypergan rm

#

Remove a training run directory and its registry entry

hypergan rm [-h] [-f] [--json] [-q] run_dir
Positional Arguments
Argument Required Description
RUN_DIR required run to remove: run ID, short ID, slug, tag, run directory name, or path
Options
Flag Default / Choices Description
-f, --force false force removal (stops run first if active)

Inspection & Telemetry

14 commands

Monitor active runs, stream logs, compare experiments, explain networks, and query Foldlite DB event/metric views.

cmd

hypergan ps

#

List active training runs, GPU VRAM, and queued jobs (or -a for all runs)

hypergan ps [-h] [-a] [-q] [--json]
Options
Flag Default / Choices Description
-a, --all false show all runs (default shows only active runs)
cmd

hypergan status

#

Show a concise, human-friendly status summary of a run

hypergan status [-h] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional run ID, short ID, slug, tag, run directory name, or path (default: active or latest run)
cmd

hypergan logs

#

View or follow (-f) live formatted training logs for a run

hypergan logs [-h] [-f] [-n TAIL] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional run ID, short ID, slug, tag, run directory name, or path (default: active or latest run)
Options
Flag Default / Choices Description
-f, --follow false follow live log output (Ctrl+C detaches without stopping training)
-n, --tail TAIL 50 number of recent log lines to show (default: 50)
cmd

hypergan inspect

#

Inspect raw run manifest JSON

hypergan inspect [-h] [--json] [-q] [path]
Positional Arguments
Argument Required Description
PATH optional run directory, slug, short ID, or manifest path
cmd

hypergan runs

#

Inspect and compare experiment runs

hypergan runs [-h] [--sort {fid,best,step,updated,name}] [--status {running,stopped,completed,failed}] [--json] [-q] {ls,compare} ...
Options
Flag Default / Choices Description
--sort SORT updated
fidbeststepupdatedname
sort order
--status STATUS
runningstoppedcompletedfailed
filter by status
Subcommands (2)
subcommand

hypergan runs ls

#

List runs under root directory

hypergan runs ls [-h] [--sort {fid,best,step,updated,name}] [--status {running,stopped,completed,failed}] [--json] [-q] [root]
Positional Arguments
Argument Required Description
ROOT optional runs root directory
Options
Flag Default / Choices Description
--sort SORT updated
fidbeststepupdatedname
sort order
--status STATUS
runningstoppedcompletedfailed
filter by status
subcommand

hypergan runs compare

#

Compare multiple runs side-by-side

hypergan runs compare [-h] [--metric METRIC] [--at AT] [--csv] [--json] [-q] runs [runs ...]
Positional Arguments
Argument Required Description
RUNS required two or more run directories, slugs, or IDs
Options
Flag Default / Choices Description
--metric METRIC loss/g_total metric name to compare (default: loss/g_total, or e.g. fid50k_train, loss_g)
--at AT latest steps to compare at (default: latest, or e.g. 50k,100k,best,latest)
--csv false export comparison as CSV
cmd

hypergan compare

#

Compare multiple runs side-by-side (alias for runs compare)

hypergan compare [-h] [--metric METRIC] [--at AT] [--csv] [--json] [-q] runs [runs ...]
Positional Arguments
Argument Required Description
RUNS required two or more run directories, slugs, or IDs
Options
Flag Default / Choices Description
--metric METRIC loss/g_total metric name to compare (default: loss/g_total, or e.g. fid50k_train, loss_g)
--at AT latest steps to compare at (default: latest, or e.g. 50k,100k,best,latest)
--csv false export comparison as CSV
cmd

hypergan diff

#

Compare two recipes, runs, or checkpoints

hypergan diff [-h] [-s KEY=VALUE] [--json] [-q] target_a [target_b]
Positional Arguments
Argument Required Description
TARGET_A required first recipe TOML, run directory/slug/tag, or checkpoint
TARGET_B optional second recipe TOML, run directory/slug/tag, or checkpoint (optional when -s/--set is passed)
Options
Flag Default / Choices Description
-s, --set KEY=VALUE [] override configuration value on the target before comparing (VALUE null removes the key)
cmd

hypergan report

#

Generate Markdown or JSON summary table of run metrics and artifacts

hypergan report [-h] [--json] [-q] [runs ...]
Positional Arguments
Argument Required Description
RUNS optional run directories, slugs, or tags (default: all registered runs)
cmd

hypergan model

#

Describe a run's formulation, losses, optimizers and networks

hypergan model [-h] [--networks] [--write] [--json] [-q] [path]
Positional Arguments
Argument Required Description
PATH optional run directory, slug, short ID, manifest.json or project .toml
Options
Flag Default / Choices Description
--networks false also build each component on the meta device for per-layer detail (loads torch)
--write false record the per-layer detail as RUN/model.json for the viewer (implies --networks)
cmd

hypergan explain

#

Explain each network's role, inputs, optimizer group, and gradient sources

hypergan explain [-h] [-s KEY=VALUE] [--json] [-q] [path]
Positional Arguments
Argument Required Description
PATH optional model .toml, project directory, or run directory/slug/tag
Options
Flag Default / Choices Description
-s, --set KEY=VALUE [] override configuration value before explaining (e.g. --set train.lr=0.0005; VALUE null removes the key)
cmd

hypergan events

#

Page through a run's recorded events as JSON

hypergan events [-h] [--cursor CURSOR] [--limit LIMIT] [--max-bytes MAX_BYTES] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional
Options
Flag Default / Choices Description
--cursor CURSOR opaque cursor returned by the previous page
--limit LIMIT 100
--max-bytes MAX_BYTES 1048576
cmd

hypergan metrics

#

Show a run's published metrics catalog

hypergan metrics [-h] [--revision REVISION] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional
Options
Flag Default / Choices Description
--revision REVISION historical catalog SHA256 (default: active catalog)
cmd

hypergan project

#

Project a run's completed events into metric views

hypergan project [-h] [--map-spec MAP_SPEC] [--follow] [--limit LIMIT] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional
Options
Flag Default / Choices Description
--map-spec MAP_SPEC JSON MapSpec; default selects published scalar metrics
--follow false continue projecting newly completed events
--limit LIMIT 100 documents per bounded work page
cmd

hypergan contributions

#

Page through a run's projected metric contributions

hypergan contributions [-h] [--map-revision MAP_REVISION] [--cursor CURSOR] [--limit LIMIT] [--max-bytes MAX_BYTES] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional
Options
Flag Default / Choices Description
--map-revision MAP_REVISION map SHA256 (default: built-in scalar map)
--cursor CURSOR last applied projection cursor
--limit LIMIT 100
--max-bytes MAX_BYTES 1048576

Sampling, Evaluation & Export

3 commands

Sample images or tensors from EMA checkpoints, evaluate FID/metrics, and export standalone inference artifacts.

cmd

hypergan sample

#

Sample a saved reference model (requires the train extra)

hypergan sample [-h] [--count COUNT] [--seed SEED] [--output OUTPUT] [-d DEVICE] [--output-dir OUTPUT_DIR] [-i PATH_OR_KEY=PATH] [--sampler SAMPLER] [--checkpoint CHECKPOINT] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional run directory, slug, short ID, name, or standalone .pt bundle file (default: active or latest run)
Options
Flag Default / Choices Description
--count COUNT 16 number of samples to generate (default: 16)
--seed SEED random seed for sampling (default: [sampling].seed in config, or 42)
--output OUTPUT output file path for samples (e.g. sample.png or sample.json)
-d, --device DEVICE device for inference (e.g. cpu, cuda)
--output-dir OUTPUT_DIR directory for batch sample PNG outputs
-i, --input PATH_OR_KEY=PATH [] conditioning input image file path or KEY=PATH binding for conditional models
--sampler SAMPLER sampler name declared in [samplers], or module:function import path
--checkpoint CHECKPOINT target checkpoint: best, latest, step number, or path
cmd

hypergan evaluate

alias: eval
#

Evaluate a configured snapshot metric on an immutable EMA snapshot

hypergan evaluate [-h] [--metric METRIC] [--config CONFIG] [--bundle BUNDLE] [--checkpoint CHECKPOINT] [-d DEVICES] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional run directory, slug, short ID, or name (default: active or latest run)
Options
Flag Default / Choices Description
--metric METRIC enabled metrics.custom ID with mode=snapshot (default: sole enabled snapshot metric)
--config CONFIG recipe with evaluation settings; numerical recipe must match
--bundle BUNDLE older model.pt within this run attempts directory
--checkpoint CHECKPOINT target checkpoint: best, latest, step number, or path
-d, --devices DEVICES device assignment (e.g. 1, gpu1, cuda:1, cpu)
cmd

hypergan export

#

Export a standalone EMA inference model bundle from a run checkpoint

hypergan export [-h] [--checkpoint CHECKPOINT] [-o OUTPUT] [--format {bundle,safetensors,pt2,onnx}] [--include-example-inputs] [-d DEVICE] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional run directory, slug, short ID, or name
Options
Flag Default / Choices Description
--checkpoint CHECKPOINT latest target checkpoint: best, latest, step number, or path
-o, --output OUTPUT output file or directory (default: <run_dir>/model.pt)
--format FORMAT bundle
bundlesafetensorspt2onnx
export format: bundle (.pt), safetensors, pt2, or onnx (default: bundle)
--include-example-inputs false retain raw training images in example_inputs instead of privacy spec
-d, --device DEVICE cpu device for baking/tracing export (default: cpu)

Queue & Maintenance

2 commands

Orchestrate multi-GPU experiment queues, install user services, and compact finished run directories.

cmd

hypergan queue

#

Multi-GPU job queue scheduler, runner daemon, and service generator

hypergan queue [-h] [--json] [--queue-file QUEUE_FILE] [-q] {add,ls,status,stop,clear,run,install-service} ...
Options
Flag Default / Choices Description
--queue-file QUEUE_FILE override queue file destination
Subcommands (7)
subcommand

hypergan queue add

#

Enqueue a training experiment or wait directive

hypergan queue add [-h] [-d DEVICES] [--run-dir RUN_DIR] [-n NAME] [--steps STEPS] [-s KEY=VALUE] [--no-web] [--wait] [--json] [--queue-file QUEUE_FILE] [-q] model_file
Positional Arguments
Argument Required Description
MODEL_FILE required path to experiment model TOML (or run directory if --wait)
Options
Flag Default / Choices Description
-d, --devices DEVICES target devices (e.g. gpu0, gpu0,gpu1, 0, 0,1)
--run-dir RUN_DIR explicit run directory
-n, --name NAME optional custom job name
--steps STEPS override total training steps
-s, --set KEY=VALUE [] override configuration value (e.g. --set train.steps=1000)
--no-web, --no-server false train jobs without web server / dashboard
--wait false wait for target run directory to complete before proceeding
--queue-file QUEUE_FILE override queue file destination
subcommand

hypergan queue ls

#

List jobs from the queue

hypergan queue ls [-h] [--status {queued,running,completed,failed,cancelled,interrupted}] [--json] [--queue-file QUEUE_FILE] [-q]
Options
Flag Default / Choices Description
--status STATUS
queuedrunningcompletedfailedcancelledinterrupted
filter by status
--queue-file QUEUE_FILE override queue file destination
subcommand

hypergan queue status

#

Inspect job details, progress, and live log tail

hypergan queue status [-h] [--lines LINES] [--json] [--queue-file QUEUE_FILE] [-q] [job_id]
Positional Arguments
Argument Required Description
JOB_ID optional job ID to inspect (default: active/latest job)
Options
Flag Default / Choices Description
--lines LINES 20 number of log tail lines (default: 20)
--queue-file QUEUE_FILE override queue file destination
subcommand

hypergan queue stop

#

Cancel queued jobs or signal running job to halt

hypergan queue stop [-h] [--all] [--json] [--queue-file QUEUE_FILE] [-q] [job_id]
Positional Arguments
Argument Required Description
JOB_ID optional job ID to stop
Options
Flag Default / Choices Description
--all false cancel all queued jobs and halt queue runner
--queue-file QUEUE_FILE override queue file destination
subcommand

hypergan queue clear

#

Cancel all queued jobs and halt queue runner (alias for queue stop --all)

hypergan queue clear [-h] [--json] [--queue-file QUEUE_FILE] [-q]
Options
Flag Default / Choices Description
--queue-file QUEUE_FILE override queue file destination
subcommand

hypergan queue run

#

Start the sequential queue daemon runner

hypergan queue run [-h] [-d DEVICES] [--poll-interval POLL_INTERVAL] [--once] [--no-web] [--json] [--queue-file QUEUE_FILE] [-q]
Options
Flag Default / Choices Description
-d, --devices DEVICES restrict runner to specific device(s)
--poll-interval POLL_INTERVAL 5.0 seconds between queue checks (default: 5.0)
--once false execute available jobs and exit instead of continuous loop
--no-web, --no-server false execute jobs without web server / dashboard
--queue-file QUEUE_FILE override queue file destination
subcommand

hypergan queue install-service

#

Generate a systemd user service unit in ~/.config/systemd/user

hypergan queue install-service [-h] [-d DEVICES] [--name NAME] [--dry-run] [--json] [-q]
Options
Flag Default / Choices Description
-d, --devices DEVICES bind service runner to specific device(s)
--name NAME custom service name
--dry-run false print generated unit file without writing to disk
cmd

hypergan gc

#

Clean rebuildable views and compact events in finished runs

hypergan gc [-h] [--all] [--dry-run] [--stride STRIDE] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional run to clean: run ID, short ID, slug, tag, run directory name, or path
Options
Flag Default / Choices Description
--all false clean all runs in workspace runs root
--dry-run false calculate reclaimable space without modifying files
--stride STRIDE 10 compaction stride for routine train events (default: 10)

Web Observatory & Diagnostics

6 commands

Launch or manage the local Web Observatory dashboard and run hardware/CUDA/NCCL readiness diagnostics.

cmd

hypergan view

#

Start, inspect, or stop the root dashboard for a runs directory

hypergan view [-h] [--status | --stop] [--port PORT] [-b HOST] [--auth {none,token}] [--open | --no-browser] [--dev] [--public-origin URL] [--json] [-q] [root]
Positional Arguments
Argument Required Description
ROOT optional runs root directory (default: workspace runs_root or current directory)
Options
Flag Default / Choices Description
--status false report dashboard status, URL, version, and PID
--stop false cleanly stop the running dashboard
--port, --server-port PORT 8765 port to bind (default: 8765)
-b, --bind, --host, --server-host HOST 127.0.0.1 listen address (default: 127.0.0.1; e.g. -b 0.0.0.0)
--auth AUTH none
nonetoken
authentication mode (default: none)
--open false open the local viewer in a browser
--no-browser false do not open a browser window
--dev, --viewer-dev false serve browser assets fresh from this checkout (same as HYPERGAN_VIEWER_DEV=1)
--public-origin URL absolute origin of a TLS proxy in front of the viewer
cmd

hypergan serve

#

Start the foreground Web Observatory HTTP/SSE server for a run or runs root.

hypergan serve [-h] [--port PORT] [-b HOST] [--auth {none,token}] [--public-origin URL] [--session-file SESSION_FILE] [--open | --no-browser] [--dev] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional
Options
Flag Default / Choices Description
--port, --server-port PORT listen port (default: 8765; an occupied port is an error, never a search; 0 selects any free port)
-b, --bind, --host, --server-host HOST 127.0.0.1 listen address (default: 127.0.0.1; e.g. -b 0.0.0.0)
--auth AUTH none
nonetoken
authentication mode (default: none)
--public-origin URL absolute origin of a TLS proxy in front of the viewer, e.g. https://machine.tailnet.ts.net (scheme, host and optional port only)
--session-file SESSION_FILE new private credential file outside the run
--open false open the local viewer in a browser
--no-browser false do not open a browser window
--dev, --viewer-dev false serve browser assets fresh from this checkout (same as HYPERGAN_VIEWER_DEV=1)
cmd

hypergan server-status

#

Check the status, URL, and PID of the local Web Observatory server.

hypergan server-status [-h] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional
cmd

hypergan stop-server

#

Stop a running background Web Observatory server process.

hypergan stop-server [-h] [--all] [--json] [-q] [run_dir]
Positional Arguments
Argument Required Description
RUN_DIR optional run or root directory to stop
Options
Flag Default / Choices Description
--all false safely kill all legacy leaked viewers and projectors across the host
cmd

hypergan doctor

#

Inspect Python, PyTorch, CUDA devices, workspace, and runner health

hypergan doctor [-h] [--json] [-q]
cmd

hypergan qualify

#

Run hardware and distributed qualification smoke suite and emit JSON verification receipt

hypergan qualify [-h] [-o OUTPUT] [--dry-run] [--suite SUITE] [--cuda-world-size CUDA_WORLD_SIZE] [--timeout TIMEOUT] [-v] [--json] [-q]
Options
Flag Default / Choices Description
-o, --output OUTPUT destination path for JSON verification receipt (default: a per-run file under the HyperGAN state directory, qualification/)
--dry-run false emit a receipt whose suites report dry_run without running any of them
--suite SUITE filter to a specific qualification suite (e.g. single_device, cpu_replicated_gloo, cuda_replicated_nccl, aggregation, multinode, checkpoint_compatibility)
--cuda-world-size CUDA_WORLD_SIZE 2 number of GPUs to exercise in cuda_replicated_nccl (2–64; default: 2)
--timeout TIMEOUT 180.0 hard wall-clock execution timeout in seconds (maximum 180s; default: 180.0)
-v, --verbose false show real-time test progress and intermediate diagnostics