Skip to main content

Elastic Models CLI

CLI tool for benchmarking and testing elastic AI model inference.

Installation

pip install thestage-elastic-models-cli

Commands

Client Inference

# Test single inference requests
elastic-models-client client llm --prompt "Hello" --url <endpoint> --model <name>
elastic-models-client client diffusion --prompt "A cat" --url <endpoint> --model <name>
elastic-models-client client vlm --prompt "Describe image" --image <path> --url <endpoint> --model <name>
elastic-models-client client stt --audio <path> --url <endpoint> --model <name>

Benchmarking

# Run load tests using Locust
elastic-models-client benchmark llm --url <endpoint> --model <name>
elastic-models-client benchmark diffusion --url <endpoint> --model <name>
elastic-models-client benchmark vlm --url <endpoint> --model <name>
elastic-models-client benchmark stt --url <endpoint> --model <name>

# Options: --concurrency, --num-requests, --output-dir, --authorization

Requirements

  • Python: >=3.10
  • Dependencies: qlip_serve_client, locust, Pillow, requests, aiohttp
  • NumPy: <2.0 (Triton compatibility)

⚠️ Important Caveats

  1. Triton Dependency: NumPy must be <2.0 for Triton server compatibility
  2. Authorization: Use --authorization for authenticated endpoints
  3. Ready Endpoint: Server readiness checks may fail with Nginx/Salad setups
  4. Metadata: Requires model metadata JSON file or auto-download from server

Quick Example

# Test single inference
elastic-models-client client llm \
  --prompt "Write a haiku about AI" \
  --url https://api.example.com/v2/models \
  --model meta-llama/Llama-3.1-8B

# Benchmark LLM with 4 concurrent users, 100 requests
elastic-models-client benchmark llm \
  --url https://api.example.com/v2/models \
  --model meta-llama/Llama-3.1-8B \
  --concurrency 4 \
  --num-requests 100 \
  --output-dir ./results

Output

  • Benchmarks: CSV stats, HTML reports, JSONL logs (optional)
  • Client: JSON response with inference results

Metadata

Release files for thestage-elastic-models-cli 0.0.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for thestage-elastic-models-cli 0.0.19
File Interpreter ABI Platform
thestage_elastic_models_cli-0.0.19-py3-none-any.whl Python 3 none any Details

Release files / thestage_elastic_models_cli-0.0.19-py3-none-any.whl

Download URL thestage_elastic_models_cli-0.0.19-py3-none-any.whl
Size 42.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95d13ab660b2ae609854801e53dded4c27e9956e20b674ce0a5a3bd0dbfa72c0
BLAKE2b-256 checksum
How to use checksums
e814ec16705b6f28f64c41e45358f944deb04a2c7e7f37494af597284c8c2305
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release history Release notifications | RSS feed

This release

0.0.19 This release

1 release file

0.0.18

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page