Hypha Space Logo

hypha-worker CLI Reference

This document contains the help content for the hypha-worker command-line program.

Command Overview:

hypha-worker

The Hypha Worker executes training and inference jobs assigned by schedulers via the Hypha network.

Usage: hypha-worker <COMMAND>

Subcommands:

hypha-worker init

Generate a default configuration file

Creates a TOML configuration file with sensible defaults for job execution, including certificate paths, network addresses, gateway connections, and resource/executor settings.

IMPORTANT: If the output file exists, it will be overwritten without warning.

Usage: hypha-worker init [OPTIONS]

Options:

hypha-worker probe

Check if a remote peer is healthy and reachable

Connects to the specified multiaddr, sends a health check request, and exits with code 0 if the peer is healthy, or non-zero otherwise.

Useful for:

NOTE: It's not possible to self-probe using the same certificate used to run the worker.

Usage: hypha-worker probe [OPTIONS] <ADDRESS>

Arguments:
Options:

hypha-worker run

Start the worker and begin accepting jobs

Loads configuration, connects to gateways, advertises resources, and executes assigned jobs. Runs until interrupted (SIGINT/SIGTERM) with a graceful shutdown.

Usage: hypha-worker run [OPTIONS]

Options: