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
Metadata
Release files for baseten-benchmarks 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| baseten_benchmarks-0.6.0.tar.gz | 4.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| baseten_benchmarks-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 MB
Release files / baseten_benchmarks-0.6.0.tar.gz
| Download URL | baseten_benchmarks-0.6.0.tar.gz |
|---|---|
| Size | 4.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a85905937d006a0aeb7ed2dacba1d75c510a805366cbe42a020e516faa4e1753
|
|
BLAKE2b-256 checksum How to use checksums |
5175233bd2470c067bfa9411c028140b2aeeb1666ab0413614e4850cd2825082
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.10.6 Linux/6.5.0-45-generic
|
Release files / baseten_benchmarks-0.6.0-py3-none-any.whl
| Download URL | baseten_benchmarks-0.6.0-py3-none-any.whl |
|---|---|
| Size | 4.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7420944a9cc911187d8afe5c4d216cf17ca362359e8ee5e61e2a13feab610944
|
|
BLAKE2b-256 checksum How to use checksums |
3d022fd37936deccfab429a1559b88d2f9d57cf250d2096dddfaf1cd50953e49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.10.6 Linux/6.5.0-45-generic
|