|
Download README.md from hf-internal-testing/transformers-perf: direct link, hf CLI and curl.
- Browser
- Download file 3.02 kB
-
https://huggingface.co/datasets/hf-internal-testing/transformers-perf/resolve/main/README.md
- Command line
-
hf download hf://datasets/hf-internal-testing/transformers-perf/README.md
-
curl -L -o README.md https://huggingface.co/datasets/hf-internal-testing/transformers-perf/resolve/main/README.md
3.02 kB
metadata
configs:
- config_name: default
data_files: data/*/*.parquet
transformers performance tracking
Results of the transformers-perf benchmarks of transformers on a
dedicated, tuned host (one GPU per run, clocks locked, CPUs pinned on the GPU's NUMA node, background services
masked). Each run is published by tperf record publish (generation) or tperf record publish-processors.
Layout
data/<YYYY-MM>/<run_id>.parquet: one row per (run, scenario)processors/<YYYY-MM>/<group>.parquet: multimodal processor and encoder runs, one row per (run, scenario)raw/<YYYY-MM>/<run_id>/: the files the rows were built from (manifest.json,probe.json, harness results)
A run is one run_benchmarks.py invocation. Runs repeated back to back share a group_id.
Columns
| Column(s) | Meaning |
|---|---|
run_id, group_id, run_index, label, started_at |
run identity |
source (main, pr, manual), pr_number, branch, commit_id, commit_date, commit_subject |
code under test |
model_id, scenario, attn_implementation, compile_mode, kernelize, continuous_batching, tp, batch_size, sequence_length, num_tokens_to_generate, warmup_iterations, measurement_iterations, bench_args |
workload |
harness_commit |
harness version: the last commit of huggingface/transformers-perf that changed it (-dirty: local changes) |
success, n_samples |
a failed scenario has success = false and no metrics |
e2e_ms_*, ttft_ms_*, itl_ms_*, tokens_per_s_* |
median, mean, min, max, p90, cov_pct (coefficient of variation, %) over the measurement iterations |
instance_type, cpu_model, kernel, gpu_name, gpu_index, numa_node, cpus, driver_version, sm_clock_mhz, mem_clock_mhz, power_limit_w, gpu_temp_c_before |
hardware and clocks |
python_version, torch_version, torch_cuda, transformers_version, kernels_version, numa_balancing, aslr |
software |
probe_* |
interference over the whole run, read from counters before and after (nothing runs during measurements): CPU time on the benchmark's CPUs used by others (foreign_cpu_s), run-queue wait, context switches, interrupts, GPU utilization, average power, power/thermal throttling |
series_key |
hash of model, scenario, instance type, GPU and SM clock: rows with the same key are comparable |
Querying
import duckdb
duckdb.sql("""
SELECT started_at, source, branch, commit_id[:10] AS commit, scenario, e2e_ms_median, ttft_ms_median, e2e_ms_cov_pct
FROM 'hf://datasets/hf-internal-testing/transformers-perf/data/*/*.parquet'
WHERE success
ORDER BY series_key, started_at
""").show()
Compare a PR with main: take the median of e2e_ms_median per series_key for source = 'pr' AND pr_number = N and
for source = 'main' at the PR's base commit, and treat differences smaller than the cov_pct of either side as noise.