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.1.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.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chapman_sip-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ffc5cf25c3e7faf0fe9b91502c42830c6a3410c40ca460de353b4dfa7ba1f97d
MD5 9cb8abf44c897a30849132e9ea35fd1a
BLAKE2b-256 cd27d3dd8a0d0b5ebbe2917cac37699c5583c7a44e19a0cce096887614343cb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for chapman_sip-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: chapman_sip-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 819b467a778bb75ac7338c0419e58a0292dfb37848921711ff67ff261449fb85
MD5 80624136e6310677b5898fe99a34741d
BLAKE2b-256 ed69d0366bd5b0cb3a96d75bcd3a875f1fecedeb7c347f063336877c76ebe53a

See more details on using hashes here.

Provenance

The following attestation bundles were made for chapman_sip-0.1.1-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