Skip to main content

CLI for Middleman GPU compute platform

Project description

Middleman CLI

Command-line interface for the Middleman GPU compute platform.

Installation

pip install middleman-cli

Quick Start

# Authenticate with your API key
middleman login

# Submit a training job
middleman run train.py --gpu a100

# Check job status
middleman jobs list
middleman jobs status <job-id>

# View logs
middleman jobs logs <job-id> --follow

# Check credit balance
middleman credits

Commands

Authentication

# Login with API key
middleman login

# Show current user
middleman whoami

# Logout
middleman logout

Running Jobs

# Basic job submission
middleman run train.py --gpu t4

# Advanced options
middleman run train.py \
  --gpu a100 \
  --name "my-experiment" \
  --framework pytorch \
  --max-runtime 8 \
  --env WANDB_API_KEY=xxx \
  --requirements requirements.txt \
  --wait

# GPU options: t4, v100, a100, a100-80gb, h100
# Framework options: pytorch, tensorflow, jax, custom

Managing Jobs

# List jobs
middleman jobs list
middleman jobs list --status running
middleman jobs list --all

# Get job status
middleman jobs status <job-id>
middleman jobs status <job-id> --watch

# View logs
middleman jobs logs <job-id>
middleman jobs logs <job-id> --tail 200
middleman jobs logs <job-id> --follow

# Cancel job
middleman jobs cancel <job-id>

Credits

# Show credit balance
middleman credits

Configuration

# Show config
middleman configure --show

# Set custom API URL
middleman configure --api-url https://custom.api.url

# Reset config
middleman configure --reset

Configuration

Configuration is stored in ~/.middleman/config.yaml:

api_key: mdlm_xxxxx
api_url: https://api.middleman.run/api/v1

Environment Variables

  • MIDDLEMAN_API_KEY - API key (overrides config file)
  • MIDDLEMAN_API_URL - API URL (overrides config file)

Get Your API Key

  1. Sign up at https://middleman.run
  2. Go to https://app.middleman.run/dashboard/api-keys
  3. Create a new API key
  4. Run middleman login

Support

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

middleman_cli-0.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

middleman_cli-0.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: middleman_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for middleman_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e7b4151bc7d438b8884bbd9d440c8346eed524208d9fdece8cb0dd585575b379
MD5 0f19356eae5ecef31c9085bbf6c3e524
BLAKE2b-256 304f1eaa96ed2ee1f3e3acbfc45a27d1b4fbfbc048b86cba8d3b7a334c409eba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: middleman_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for middleman_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e89703313f4cb0cd0af552806e3ca03d99a8d9a42939f4466d21fbf18fc99995
MD5 7dd55db778641aadc1a8baab5cf15ea8
BLAKE2b-256 187ed8ff45cd77e96acad9832d54016d5bfdcadc43cc9e6f26b1a46834610371

See more details on using hashes here.

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