Metadata-Version: 2.5
Name: pie-bench
Version: 0.1.2
Summary: Measure pie against other inference engines on your own machine and publish the results.
Project-URL: Homepage, https://pie-project.org/benchmarks
Project-URL: Source, https://github.com/pie-project/benchmarks
License-Expression: Apache-2.0
Requires-Python: >=3.11
Requires-Dist: click>=8.1
Requires-Dist: hf-xet>=1.1
Requires-Dist: huggingface-hub>=0.24
Requires-Dist: mlx-lm; sys_platform == 'darwin'
Requires-Dist: numpy>=1.26
Requires-Dist: pyarrow>=16.0
Requires-Dist: pydantic>=2.7
Requires-Dist: pyyaml>=6.0
Requires-Dist: requests>=2.31
Requires-Dist: transformers>=4.44
Provides-Extra: dev
Requires-Dist: fastapi>=0.115; extra == 'dev'
Requires-Dist: httpx>=0.27; extra == 'dev'
Requires-Dist: psycopg-pool>=3.2; extra == 'dev'
Requires-Dist: psycopg[binary]>=3.2; extra == 'dev'
Requires-Dist: pyjwt>=2.8; extra == 'dev'
Requires-Dist: pytest-timeout>=2.3; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.5; extra == 'dev'
Provides-Extra: quality
Requires-Dist: blobfile; extra == 'quality'
Requires-Dist: jinja2; extra == 'quality'
Requires-Dist: lm-eval[ifeval]>=0.4; extra == 'quality'
Requires-Dist: tiktoken; extra == 'quality'
Provides-Extra: server
Requires-Dist: fastapi>=0.115; extra == 'server'
Requires-Dist: psycopg-pool>=3.2; extra == 'server'
Requires-Dist: psycopg[binary]>=3.2; extra == 'server'
Requires-Dist: pyjwt>=2.8; extra == 'server'
Requires-Dist: uvicorn[standard]>=0.30; extra == 'server'
Provides-Extra: torch
Requires-Dist: torch; extra == 'torch'
Description-Content-Type: text/markdown

# pie-bench

Measure [Pie](https://github.com/pie-project/pie) against other inference engines on your own machine, and share the results on [pie-project.org/benchmarks](https://pie-project.org/benchmarks).

## Run it

```sh
pip install pie-bench
pie-bench doctor
pie-bench run
```

`pie-bench run` detects the machine, picks the models that fit, installs each engine at its pinned version, builds pie, measures every engine on the same prompts, and uploads one signed submission when it is done. Nothing is sent while it runs.

```sh
pie-bench plan                                   # what would run here
pie-bench run --models qwen3.6-35b               # only some models
pie-bench run --engines pie,llamacpp             # only some engines
pie-bench run --pie 0.6.0                        # a pie release, branch or commit
pie-bench run --no-upload                        # keep the results local
pie-bench upload ~/.pie-bench/runs/<time>        # upload later
```

Each run writes a folder under `~/.pie-bench/runs/`:

| File | What |
|---|---|
| `records.jsonl` | one line per measured cell |
| `run.log` | the full log, for audit and debugging |
| `submission.json.gz` | both, plus machine specs and versions: what gets uploaded |

Uploading needs a token, made automatically the first time and kept in `~/.config/pie-bench/token`.

Requirements: Python 3.11+, git, [Rust](https://rustup.rs) and [uv](https://docs.astral.sh/uv/). On a Mac, Apple Silicon. On Linux, NVIDIA GPUs.
