Update README.md
Browse files
README.md
CHANGED
|
@@ -36,4 +36,58 @@ configs:
|
|
| 36 |
path: data/FusionBench-*
|
| 37 |
- split: R2Bench
|
| 38 |
path: data/R2Bench-*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
path: data/FusionBench-*
|
| 37 |
- split: R2Bench
|
| 38 |
path: data/R2Bench-*
|
| 39 |
+
tags:
|
| 40 |
+
- llm-routing
|
| 41 |
+
- model-selection
|
| 42 |
+
pretty_name: RoutingCompendium (Cost)
|
| 43 |
---
|
| 44 |
+
|
| 45 |
+
# RoutingCompendium — Cost
|
| 46 |
+
|
| 47 |
+
Inference price of every candidate LLM appearing in [`Wikit/RoutingCompendium-perf`](https://huggingface.co/datasets/Wikit/RoutingCompendium-perf).
|
| 48 |
+
The two datasets are meant to be loaded together: `-perf` gives what each candidate scores on a query, `-cost` gives what calling it costs.
|
| 49 |
+
|
| 50 |
+
## Splits
|
| 51 |
+
|
| 52 |
+
One split per benchmark, with the same names as `RoutingCompendium-perf` (`RouterBench`, `Sprout`, `EmbedLLM`, `FusionBench`, `R2Bench`). Each split lists the candidates of that benchmark's pool — a few dozen rows at most.
|
| 53 |
+
|
| 54 |
+
## Schema
|
| 55 |
+
|
| 56 |
+
One row per candidate model.
|
| 57 |
+
|
| 58 |
+
| Field | Type | Description |
|
| 59 |
+
|---|---|---|
|
| 60 |
+
| `model` | `string` | Model name, matching an entry of `models_name` in the corresponding `-perf` split. |
|
| 61 |
+
| `cost` | `string` | Price, stored as a string and parsed with `ast.literal_eval`. |
|
| 62 |
+
|
| 63 |
+
### The two shapes of `cost`
|
| 64 |
+
|
| 65 |
+
`cost` is a string so that one column can hold both a scalar and a dict. After
|
| 66 |
+
`ast.literal_eval` you get either:
|
| 67 |
+
|
| 68 |
+
**1. A dict of per-token prices** — `{"input": float, "output": float}`, in USD per 1M tokens, as published by the provider. Used by `RouterBench`, `FusionBench` and `R2Bench`.
|
| 69 |
+
|
| 70 |
+
```python
|
| 71 |
+
{'input': 0.09, 'output': 0.55}
|
| 72 |
+
|
| 73 |
+
**2. A number** — the model's parameter count, in billions. Used by `Sprout` and `EmbedLLM`.
|
| 74 |
+
|
| 75 |
+
```python
|
| 76 |
+
7.0 # a 7B model
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
### Parameter count -> USD per 1M tokens
|
| 80 |
+
|
| 81 |
+
Open-weight models are priced by size, using the [Together AI pricing](https://www.together.ai/pricing) as accessed on 2025-06-05:
|
| 82 |
+
|
| 83 |
+
| Parameters (B) | USD / 1M tokens |
|
| 84 |
+
|---|---|
|
| 85 |
+
| ≤ 4 | 0.10 |
|
| 86 |
+
| ≤ 8 | 0.20 |
|
| 87 |
+
| ≤ 21 | 0.30 |
|
| 88 |
+
| ≤ 41 | 0.80 |
|
| 89 |
+
| ≤ 80 | 0.90 |
|
| 90 |
+
| ≤ 110 | 1.80 |
|
| 91 |
+
| > 110 | 1.80 + 0.03 × (params − 110) |
|
| 92 |
+
|
| 93 |
+
Beyond 110B the last interval's slope (\$0.03 per additional billion parameters) is extrapolated linearly.
|