Skip to main content

No project description provided

Project description

Baseten benchmarks

How to install

pip install baseten_benchmarks

For installation without dependencies:

pip install --no-deps baseten_benchmarks

How to run

To hit a local OpenAI server running on post 10001

baseten_benchmark --backend generic \
  --api_url http://localhost:10001/v1/chat/completions \
  --api_key this_does_not_matter \
  --model deepseek \
  --num_prompts 1 2 4 8 16 \
  --concurrency 1 2 4 8 16 \
  --random_input 1024 \
  --output_len 1024 \
  --input_type custom \
  --stream \
  --tokenizer deepseek-ai/DeepSeek-R1 \
  --output_file latency.csv \
  --warmup_requests 2 \
  --prompt_style messages

For now input_type custom uses a fixed text file.

How to publish

poetry config pypi-token.pypi [your pypi token here]
poetry publish --build

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

baseten_benchmarks-0.6.0.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

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

baseten_benchmarks-0.6.0-py3-none-any.whl (4.1 MB view details)

Uploaded Python 3

File details

Details for the file baseten_benchmarks-0.6.0.tar.gz.

File metadata

  • Download URL: baseten_benchmarks-0.6.0.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.6 Linux/6.5.0-45-generic

File hashes

Hashes for baseten_benchmarks-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a85905937d006a0aeb7ed2dacba1d75c510a805366cbe42a020e516faa4e1753
MD5 0d1e96099761dcf478a27c718a786b82
BLAKE2b-256 5175233bd2470c067bfa9411c028140b2aeeb1666ab0413614e4850cd2825082

See more details on using hashes here.

File details

Details for the file baseten_benchmarks-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: baseten_benchmarks-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.10.6 Linux/6.5.0-45-generic

File hashes

Hashes for baseten_benchmarks-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7420944a9cc911187d8afe5c4d216cf17ca362359e8ee5e61e2a13feab610944
MD5 4a97944097a07d4c31bfe06a5f49b060
BLAKE2b-256 3d022fd37936deccfab429a1559b88d2f9d57cf250d2096dddfaf1cd50953e49

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