--- license: mit pretty_name: DoolyDB viewer: false tags: - llm-inference - profiling - vllm - simulation - gpu --- # DoolyDB Per-operation latency measurements of LLM inference, measured with [DoolyProf](https://github.com/dooly-project/dooly/tree/main/doolyprof) and shared so that the same operation on the same GPU is profiled once. [DoolySim](https://github.com/dooly-project/dooly/tree/main/doolysim) trains its latency models on them. See the [paper](https://arxiv.org/abs/2605.07985) and the [website](https://dooly-project.github.io). DoolyProf finds the distinct operations in a model's forward pass and times each of them over batch shapes (tokens, requests, KV-cache size, prefill chunk). An operation is identified by a signature of its shapes and kernels, so models that share layers share operations. Every measurement records the GPU it was measured on and the serving engine and version it ran under, and is reused only for the same ones. ## Layout The files are what `dooly export` writes: ``` compute////// deployment.json the deployment, and the runs that measured it (versions, options) model.csv its operations: file, name, signature, calls per forward pass collectives.csv its collectives: topology, group size, calls, how sizes scale -.csv latency of one operation per batch shape communication/// runs.json the runs that measured them .csv latency per group size and message size ``` For example `compute/nvidia-rtx-pro-6000-blackwell-server-edition/vllm-0.33.0/FLASH_ATTN-fa2/Qwen/Qwen3.8-27B/tp2-bfloat16-kvauto/`. `` carries the version of what implements it (`FLASH_ATTN-fa2`, `FLASHINFER-0.7.2.post1`), `` is the Hugging Face name, and `` is `tp[-ep]--kv`. Each model folder is self-contained: an operation two models share is in both. An operation is measured once per batch shape, so deployments of different tensor-parallel degrees that share one (the same shapes and kernels, e.g. RMSNorm over the full hidden size) share its measurements; `num_tensor_parallel_workers` records the degree of the run that measured each row. ## Use it With [dooly](https://github.com/dooly-project/dooly) installed (`pip install -r requirements.txt`): ```bash hf download dooly-project/DoolyDB --repo-type dataset --local-dir DoolyDB python -m doolyprof.cli import DoolyDB --db dooly.db ``` `dooly.db` is then a regular profile database: DoolySim's estimator and simulator read it (`--db-path dooly.db`, with `--device` and `--engine` when it holds several GPUs or engine versions), and DoolyProf runs that profile into it (`dooly run --db dooly.db`) measure only what it does not have yet. ## Contribute Profile into a database that holds DoolyDB, export it into the downloaded folder, check it, and open a pull request. The step-by-step guide, with Docker and what to do when `verify` fails, is [docs/how-to-contribute.md](https://github.com/dooly-project/dooly/blob/main/docs/how-to-contribute.md). ```bash hf download dooly-project/DoolyDB --repo-type dataset --local-dir DoolyDB python -m doolyprof.cli import DoolyDB --db dooly.db python -m doolyprof.cli run --model ORG/MODEL --out runs/model --db dooly.db --max-batch-size 32 --max-seq-len 8192 python -m doolyprof.cli export --db dooly.db --out DoolyDB python -m doolyprof.cli verify DoolyDB hf upload dooly-project/DoolyDB DoolyDB . --repo-type dataset --create-pr --commit-message "ORG/MODEL on " ``` - The pull request opens as a draft, which cannot be merged: find it on the dataset's Community tab (Files changed shows what it adds) and click **Publish**. - Profile at a scale DoolySim can use (e.g. `--max-batch-size 32 --max-seq-len 8192`); add `--tp N --profile-comm` on N linked GPUs to include collectives. - The pull request should only add folders (or rows to a collective file of your topology). Don't edit other files: `dooly verify` reports anything `dooly export` would not write. - Check each `deployment.json` before uploading: it records the run's command line, which may include local paths. - `hf auth login` first (`hf` comes with `huggingface_hub`). With Docker, the dooly commands run through `docker/dooly-docker.sh` (`import`, `run --db`, `export`, `verify`), with paths under `/out/`. Maintainers check a pull request by downloading its revision and verifying it: ```bash hf download dooly-project/DoolyDB --repo-type dataset --revision refs/pr/ --local-dir pr- python -m doolyprof.cli verify pr- ``` ## Citation ``` @misc{kim2026doolyconfigurationagnosticredundancyawareprofiling, title={Dooly: Configuration-Agnostic, Redundancy-Aware Profiling for LLM Inference Simulation}, author={Joon Ha Kim and Geon-Woo Kim and Anoop Rachakonda and Daehyeok Kim}, year={2026}, eprint={2605.07985}, archivePrefix={arXiv}, primaryClass={cs.DC}, url={https://arxiv.org/abs/2605.07985}, } ```