Skip to main content

A CLI tool to run steerable models on the Chapman cluster with SSH port forwarding

Project description

Chapman-Sip CLI

A pip-installable Python command-line utility to connect to the Chapman cluster (dgx0.chapman.edu), pull the steerable-model-runner repository, find an open port, launch the model server, and tunnel the port back to your local machine.

Features

  • Automated Host Setup: Checks if the remote repository is cloned at ~/.steerable-models on the cluster, cloning or pulling changes automatically.
  • Dynamic Port Hunting: Generates a random port and verifies it is not currently bound on the cluster before initiating.
  • SSH Port Forwarding: Automatically forwards the selected remote port to localhost:[PORT] locally.
  • Interactive Log Streaming: Streams stderr and stdout from the model serving script in real-time.
  • Safe Shutdown: Automatically cleans up the remote process, closes the port-forwarding server, and closes SSH channels on Ctrl+C.

Installation

Install in editable mode for development or directly from the source directory:

pip install -e .

Usage

Simply run:

sip

You will be prompted for:

  • SSH username
  • SSH password
  • Hugging Face API token (for model download)
  • Hugging Face repository name (e.g., the model repository to run)

Once connected, the utility will output the endpoint URL, e.g.:

https://localhost:[PORT]/v1/

Keep the CLI running while you query the endpoint. Press Ctrl+C to terminate the model server and close the tunnel.

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

chapman_sip-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chapman_sip-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file chapman_sip-0.1.0.tar.gz.

File metadata

  • Download URL: chapman_sip-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chapman_sip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a4ed762652de79c40a0fd59503a64994807233449903c6105b1bb99a2acbbda9
MD5 6bed529a5f65f3e36f66e76ad7715528
BLAKE2b-256 40d372510c7face9a89842db8eb6d1d45e04cd422efbb77f8173a834f44e319a

See more details on using hashes here.

Provenance

The following attestation bundles were made for chapman_sip-0.1.0.tar.gz:

Publisher: publish.yml on Alignment-Faking-Chapman/sip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chapman_sip-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chapman_sip-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chapman_sip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b806eb1f51216e56d83c2637340bded3aa9b1490d3e13f3556891d024bd271d6
MD5 7ea96544ea646a65adb64b19b3cefd3c
BLAKE2b-256 205e558e35eb1a36c16a7825040883895da25386d39a01c899b9b1ec66391abb

See more details on using hashes here.

Provenance

The following attestation bundles were made for chapman_sip-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Alignment-Faking-Chapman/sip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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