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
- Triton Dependency: NumPy must be <2.0 for Triton server compatibility
- Authorization: Use
--authorizationfor authenticated endpoints - Ready Endpoint: Server readiness checks may fail with Nginx/Salad setups
- 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thestage_elastic_models_cli-0.0.19-py3-none-any.whl | Python 3 | none | any | Details for thestage_elastic_models_cli-0.0.19-py3-none-any.whl |
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
|
Security for thestage-elastic-models-cli 0.0.19
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.