Skip to main content

tigerflow-ml

CI PyPI Docs

ML tasks for TigerFlow — private cloud ML APIs on HPC infrastructure.

Installation

pip install tigerflow-ml

If using a task that relies on vllm (chat, OCR, or translation), install with:

pip install tigerflow-ml[vllm]

Tasks

Task Description Entry Point
OCR Extract text from images and PDFs ocr / ocr-local
Translation Translate text documents translate / translate-local
Chat Apply a chat prompt to images or text chat / chat-local
Transcription Transcribe audio to text transcribe / transcribe-local
Object Detection Detect objects in images and videos detect / detect-local

Each task provides both a Slurm variant (for HPC) and a Local variant (for development).

Usage

After installation, tasks are automatically discoverable via:

tigerflow tasks list

Run a task directly:

python -m tigerflow_ml.text.ocr.slurm --help
python -m tigerflow_ml.text.translate.slurm --help
python -m tigerflow_ml.text.chat.slurm --help
python -m tigerflow_ml.audio.transcribe.slurm --help
python -m tigerflow_ml.image.detect.slurm --help

Container

A GPU image with all tasks (including the vllm extra) is published to GHCR on each release:

docker pull ghcr.io/princeton-ddss/tigerflow-ml:latest

The image bundles its own CUDA libraries, so only the host NVIDIA driver is needed at runtime — pass --gpus all (Docker) or --nv (Apptainer). Models are fetched on first use; mount a cache at /cache to persist them.

The entrypoint is tigerflow, so arguments are passed straight to the CLI:

# Run a pipeline (config file + input/output directories)
docker run --gpus all -v "$PWD/cache:/cache" -v "$PWD:/data" \
  ghcr.io/princeton-ddss/tigerflow-ml:latest \
  run /data/pipeline.yaml /data/input /data/output

# List available tasks
docker run ghcr.io/princeton-ddss/tigerflow-ml:latest tasks list

# Run a single task module directly (override the entrypoint)
docker run --gpus all -v "$PWD/cache:/cache" -v "$PWD:/data" \
  --entrypoint python ghcr.io/princeton-ddss/tigerflow-ml:latest \
  -m tigerflow_ml.audio.transcribe.local --help

On HPC, convert to a Singularity/Apptainer image:

apptainer build tigerflow-ml.sif docker://ghcr.io/princeton-ddss/tigerflow-ml:latest
apptainer run --nv -B ./cache:/cache tigerflow-ml.sif run pipeline.yaml input output
apptainer exec --nv tigerflow-ml.sif python -m tigerflow_ml.audio.transcribe.local --help

Development

uv sync --group dev
uv run pre-commit run --all-files
uv run pytest tests

Download files

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

Source Distribution

tigerflow_ml-0.1.1.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

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

tigerflow_ml-0.1.1-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigerflow_ml-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tigerflow_ml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9eeccdb60681d1e7e6fbba70778f5b9a9ac0d51e22190fa2f2ff836960d13806
MD5 fec286a1eefb96243a38beed4d660089
BLAKE2b-256 439956b4c328a95d1c5099de2d57e0ffa6cd6d11fc6f74ba74da8d1aef480387

See more details on using hashes here.

Provenance

The following attestation bundles were made for tigerflow_ml-0.1.1.tar.gz:

Publisher: cd.yml on princeton-ddss/tigerflow-ml

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

File details

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

File metadata

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

File hashes

Hashes for tigerflow_ml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3db3684dcaa55f755f8bb399f94a19664f908a227492043ef2522e31d6e3fdb4
MD5 c6eebe53ec47e8668cdafeafef33c70a
BLAKE2b-256 97662f89668c35439e46e51531fe8d18d7c9bc785e9f2425fba4953ca40d7a9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for tigerflow_ml-0.1.1-py3-none-any.whl:

Publisher: cd.yml on princeton-ddss/tigerflow-ml

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

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