Skip to main content

Launcher for hypha services

Project description

hypha-launcher

Run triton server on HPC

Install with PyPi MIT license

Work In Progress

Features

  • CLI/API for:
    • downloading model from s3 and pulling docker image of triton server
    • launch s3 server
    • launch triton server
    • ...
  • Support different container engines
    • Docker
    • Apptainer
  • Support different compute environments
    • Local
    • Slurm

Installation

pip install hypha-launcher

CLI Usage

$ hypha-launcher --help

Launch the bioimage.io backend

Download all models from s3 and launch triton server.

$ python -m hypha_launcher launch_bioimageio_backend --service-id my-triton

Launch on slurm cluster.

# Please replace the slurm settings with your own settings
$ export SLURM_ACCOUNT=Your-Slurm-Account
$ export SLURM_TIME=03:00:00
$ export SLURM_GPUS_PER_NODE=A100:1
$ python -m hypha_launcher launch_bioimageio_backend --service-id my-triton

Download model from s3

$ python -m hypha-launcher - download_models_from_s3 bioengine-model-runner.* --n_parallel=5

Pull docker image of triton server

$ python -m hypha-launcher - pull_image

TODO

  • Download model from s3
  • Pull docker image of triton server
  • Run triton server
  • Register service on hypha
  • Conmmunicate with triton server
  • Test on HPC
  • Support run on local machine without GPU
  • Support launch containers inside a container (For support run inside the podman-desktop)
  • Job management(Auto stop and restart)
  • Load balancing
  • Documentation

Development

Install the package in editable mode with the following command:

pip install -e .
pip install -r requirements-dev.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypha_launcher-0.1.1.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

hypha_launcher-0.1.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file hypha_launcher-0.1.1.tar.gz.

File metadata

  • Download URL: hypha_launcher-0.1.1.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for hypha_launcher-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4a77a0f6f87a945c72b4027d1d89c473c2620fb2cb46e1c9d35aecf332e225b9
MD5 55685103c2be90cd2266429569455f33
BLAKE2b-256 330c62270c97bd90153508f4f9f92ccc41bdbf7e7d03577088407f61785f3acb

See more details on using hashes here.

File details

Details for the file hypha_launcher-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for hypha_launcher-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e17b2f29a5644561aa61c7a3cf5d005e2d9b7b6a7be81e48aae6a9148e16b523
MD5 6f2648c6a629bc7d2b6705dbc2018454
BLAKE2b-256 705cb7632424fbafc701a1e8ac914336ec02aed78e56a0e12ca45054a4854af2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page