unalloc 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {unalloc-0.3.0 → unalloc-0.3.1}/CHANGELOG.md +9 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/PKG-INFO +8 -4
- {unalloc-0.3.0 → unalloc-0.3.1}/README.md +7 -3
- {unalloc-0.3.0 → unalloc-0.3.1}/pyproject.toml +1 -1
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/__init__.py +1 -1
- {unalloc-0.3.0 → unalloc-0.3.1}/.gitignore +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/LICENSE +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/cli.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/core/__init__.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/core/attribute.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/core/models.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/core/normalize.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/core/provenance.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/core/reconcile.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/fixtures/anthropic_cost_report.json +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/fixtures/litellm_spend.json +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/fixtures/openai_costs.json +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/fixtures/opencost_allocation.json +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/render/__init__.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/render/table.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/sources/__init__.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/sources/anthropic.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/sources/base.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/sources/litellm.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/sources/openai.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/src/unalloc/sources/opencost.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_attribute.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_cli.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_docs_build.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_fetch.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_normalize.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_paper_lint.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_paper_numbers.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_provenance.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_reconcile.py +0 -0
- {unalloc-0.3.0 → unalloc-0.3.1}/tests/test_sources.py +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.1 — 2026-10-05
|
|
4
|
+
|
|
5
|
+
### Documentation
|
|
6
|
+
- Prominent source-overlap warning: the CLI defaults to all four sources and appends normalized rows without automatic economic deduplication. Source selection must account for both coverage and overlap.
|
|
7
|
+
- Research summaries describe disagreement between allocation rules rather than established overcharging or mispricing. GPU queue claims are limited to no waiting observed at about 0.5-second telemetry sampling.
|
|
8
|
+
- Synthetic billing and illustrative allocation pools, and the one-GPU/model/run-per-load limits, are explicit.
|
|
9
|
+
|
|
10
|
+
Accounting behavior and source defaults are unchanged. This patch includes the corrected README in package metadata and distributions; provenance reports version 0.3.1.
|
|
11
|
+
|
|
3
12
|
## 0.3.0 — 2026-10-04
|
|
4
13
|
|
|
5
14
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: unalloc
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: Find the AI spend nobody owns. Joins OpenCost allocation data with LLM provider bills and reports what's unattributed.
|
|
5
5
|
Project-URL: Homepage, https://github.com/timurista/unalloc
|
|
6
6
|
Project-URL: Issues, https://github.com/timurista/unalloc/issues
|
|
@@ -55,6 +55,8 @@ Description-Content-Type: text/markdown
|
|
|
55
55
|
|
|
56
56
|
OpenCost tells you what your Kubernetes workloads cost. Your provider dashboard tells you what your OpenAI and Anthropic calls cost. Getting both into one view is possible today — OpenCost has an OpenAI plugin — but the answer still depends on a join nobody checks: the same dollar can arrive through both your gateway and your provider bill, and the labels that say who owns it are set per workload, not per pod template. `unalloc` pulls all four sources into one normalized ledger, joins them on a label dimension you choose, and reports the number your finance team keeps asking for: how much of this month's AI spend can't be attributed to any team — and how much of the rest was only rescued by a fallback key.
|
|
57
57
|
|
|
58
|
+
> **Avoid double counting before interpreting totals.** By default, the CLI requests all four sources: OpenCost, LiteLLM, OpenAI and Anthropic. It appends their normalized `CostRow`s into one ledger; it does **not** automatically deduplicate the same economic spend across sources. Gateway charges can also appear in provider bills (or OpenCost plugin output). Choose non-overlapping sources for your setup. For traffic fully covered by LiteLLM, use `--source opencost --source litellm` only if OpenCost excludes those same provider charges. Direct-provider-only traffic needs a separate coverage plan. Fixture totals below are synthetic demonstrations, not validated unique spend.
|
|
59
|
+
|
|
58
60
|
## The output
|
|
59
61
|
|
|
60
62
|
```
|
|
@@ -165,7 +167,9 @@ Configure sources by environment variable:
|
|
|
165
167
|
| `ANTHROPIC_ADMIN_KEY` | Anthropic org admin key (cost report endpoint, sent as `x-api-key`) |
|
|
166
168
|
| `UNALLOC_OPENAI_URL`, `UNALLOC_ANTHROPIC_URL` | Optional overrides for the public API roots, e.g. a proxy |
|
|
167
169
|
|
|
168
|
-
Restrict the run with `--source` to avoid double counting: if
|
|
170
|
+
Restrict the run with `--source` to avoid double counting: if LiteLLM covers all provider traffic and OpenCost excludes overlapping provider charges, use `--source opencost --source litellm` and skip the direct provider adapters. Confirm coverage and overlap for your setup. The [end-to-end case study](#case-studies-and-paper) demonstrates the resulting double count with synthetic billing and invoices; it does not measure customer savings.
|
|
171
|
+
|
|
172
|
+
The case-study invoices and monthly cost pools are synthetic or illustrative. The GPU result covers one H100, one model and one two-minute run per load; waiting-request telemetry was sampled about every 0.5 seconds. Allocation-rule disagreement does not establish a uniquely correct charge or production savings.
|
|
169
173
|
|
|
170
174
|
## Reproducing a result
|
|
171
175
|
|
|
@@ -234,11 +238,11 @@ Six studies push real (or realistically simulated) inference workloads through u
|
|
|
234
238
|
| Study | What runs | Headline |
|
|
235
239
|
| --- | --- | --- |
|
|
236
240
|
| [`kv_cache`](https://github.com/timurista/unalloc/blob/main/case_studies/kv_cache) | Discrete-event vLLM-style engine: paged KV blocks, prefix caching, continuous batching, preemption | Step-time metering shows ~0% idle once any request is in flight; KV-memory metering leaves a large share of the bill unowned |
|
|
237
|
-
| [`torch_kv`](https://github.com/timurista/unalloc/blob/main/case_studies/torch_kv) | A from-scratch PyTorch decoder with a real KV cache serving a 4-tenant trace |
|
|
241
|
+
| [`torch_kv`](https://github.com/timurista/unalloc/blob/main/case_studies/torch_kv) | A from-scratch PyTorch decoder with a real KV cache serving a 4-tenant trace | Token and measured-compute allocation rules differ by 33 points for a RAG tenant ($5.7K of an illustrative monthly pool) |
|
|
238
242
|
| [`distributed`](https://github.com/timurista/unalloc/blob/main/case_studies/distributed) | Tensor and pipeline parallel on `torch.distributed` (gloo), verified against a single-process reference | Owner label on LeaderWorkerSet leaders only: 66% unallocated; falling back to `name` "fixes" it by sending 61% to a Helm chart name |
|
|
239
243
|
| [`hybrid_e2e`](https://github.com/timurista/unalloc/blob/main/case_studies/hybrid_e2e) | The real CLI as a subprocess against live mock OpenCost / LiteLLM / OpenAI / Anthropic APIs (Postgres-backed LiteLLM in the dev container) | Enabling every source double counts $11.8K; reading only page one of the billing APIs reports 25% of spend |
|
|
240
244
|
| [`use_cases`](https://github.com/timurista/unalloc/blob/main/case_studies/use_cases) | Labeling Pareto, per-feature unit economics, self-host break-even, CI budget gate | Three label fixes take a 67%-unallocated org under 10% |
|
|
241
|
-
| [`gpu_validation`](https://github.com/timurista/unalloc/blob/main/case_studies/gpu_validation) | Real vLLM 0.29 serving Qwen2.5-7B on a DigitalOcean H100, driven with the simulator's tenants ([runbook](https://github.com/timurista/unalloc/blob/main/case_studies/gpu_validation/RUNBOOK.md), [evidence](https://github.com/timurista/unalloc/tree/main/case_studies/results/gpu_validation/evidence)) | Token
|
|
245
|
+
| [`gpu_validation`](https://github.com/timurista/unalloc/blob/main/case_studies/gpu_validation) | Real vLLM 0.29 serving Qwen2.5-7B on a DigitalOcean H100, driven with the simulator's tenants ([runbook](https://github.com/timurista/unalloc/blob/main/case_studies/gpu_validation/RUNBOOK.md), [evidence](https://github.com/timurista/unalloc/tree/main/case_studies/results/gpu_validation/evidence)) | Token and equal time-share allocation rules differ by 12–14 points for search; GPU "utilization" reads 97% at 2 req/s and 99% at 16 req/s |
|
|
242
246
|
|
|
243
247
|
```bash
|
|
244
248
|
make research # build ./.venv-research: CPU torch, notebook tooling, typst
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
OpenCost tells you what your Kubernetes workloads cost. Your provider dashboard tells you what your OpenAI and Anthropic calls cost. Getting both into one view is possible today — OpenCost has an OpenAI plugin — but the answer still depends on a join nobody checks: the same dollar can arrive through both your gateway and your provider bill, and the labels that say who owns it are set per workload, not per pod template. `unalloc` pulls all four sources into one normalized ledger, joins them on a label dimension you choose, and reports the number your finance team keeps asking for: how much of this month's AI spend can't be attributed to any team — and how much of the rest was only rescued by a fallback key.
|
|
15
15
|
|
|
16
|
+
> **Avoid double counting before interpreting totals.** By default, the CLI requests all four sources: OpenCost, LiteLLM, OpenAI and Anthropic. It appends their normalized `CostRow`s into one ledger; it does **not** automatically deduplicate the same economic spend across sources. Gateway charges can also appear in provider bills (or OpenCost plugin output). Choose non-overlapping sources for your setup. For traffic fully covered by LiteLLM, use `--source opencost --source litellm` only if OpenCost excludes those same provider charges. Direct-provider-only traffic needs a separate coverage plan. Fixture totals below are synthetic demonstrations, not validated unique spend.
|
|
17
|
+
|
|
16
18
|
## The output
|
|
17
19
|
|
|
18
20
|
```
|
|
@@ -123,7 +125,9 @@ Configure sources by environment variable:
|
|
|
123
125
|
| `ANTHROPIC_ADMIN_KEY` | Anthropic org admin key (cost report endpoint, sent as `x-api-key`) |
|
|
124
126
|
| `UNALLOC_OPENAI_URL`, `UNALLOC_ANTHROPIC_URL` | Optional overrides for the public API roots, e.g. a proxy |
|
|
125
127
|
|
|
126
|
-
Restrict the run with `--source` to avoid double counting: if
|
|
128
|
+
Restrict the run with `--source` to avoid double counting: if LiteLLM covers all provider traffic and OpenCost excludes overlapping provider charges, use `--source opencost --source litellm` and skip the direct provider adapters. Confirm coverage and overlap for your setup. The [end-to-end case study](#case-studies-and-paper) demonstrates the resulting double count with synthetic billing and invoices; it does not measure customer savings.
|
|
129
|
+
|
|
130
|
+
The case-study invoices and monthly cost pools are synthetic or illustrative. The GPU result covers one H100, one model and one two-minute run per load; waiting-request telemetry was sampled about every 0.5 seconds. Allocation-rule disagreement does not establish a uniquely correct charge or production savings.
|
|
127
131
|
|
|
128
132
|
## Reproducing a result
|
|
129
133
|
|
|
@@ -192,11 +196,11 @@ Six studies push real (or realistically simulated) inference workloads through u
|
|
|
192
196
|
| Study | What runs | Headline |
|
|
193
197
|
| --- | --- | --- |
|
|
194
198
|
| [`kv_cache`](https://github.com/timurista/unalloc/blob/main/case_studies/kv_cache) | Discrete-event vLLM-style engine: paged KV blocks, prefix caching, continuous batching, preemption | Step-time metering shows ~0% idle once any request is in flight; KV-memory metering leaves a large share of the bill unowned |
|
|
195
|
-
| [`torch_kv`](https://github.com/timurista/unalloc/blob/main/case_studies/torch_kv) | A from-scratch PyTorch decoder with a real KV cache serving a 4-tenant trace |
|
|
199
|
+
| [`torch_kv`](https://github.com/timurista/unalloc/blob/main/case_studies/torch_kv) | A from-scratch PyTorch decoder with a real KV cache serving a 4-tenant trace | Token and measured-compute allocation rules differ by 33 points for a RAG tenant ($5.7K of an illustrative monthly pool) |
|
|
196
200
|
| [`distributed`](https://github.com/timurista/unalloc/blob/main/case_studies/distributed) | Tensor and pipeline parallel on `torch.distributed` (gloo), verified against a single-process reference | Owner label on LeaderWorkerSet leaders only: 66% unallocated; falling back to `name` "fixes" it by sending 61% to a Helm chart name |
|
|
197
201
|
| [`hybrid_e2e`](https://github.com/timurista/unalloc/blob/main/case_studies/hybrid_e2e) | The real CLI as a subprocess against live mock OpenCost / LiteLLM / OpenAI / Anthropic APIs (Postgres-backed LiteLLM in the dev container) | Enabling every source double counts $11.8K; reading only page one of the billing APIs reports 25% of spend |
|
|
198
202
|
| [`use_cases`](https://github.com/timurista/unalloc/blob/main/case_studies/use_cases) | Labeling Pareto, per-feature unit economics, self-host break-even, CI budget gate | Three label fixes take a 67%-unallocated org under 10% |
|
|
199
|
-
| [`gpu_validation`](https://github.com/timurista/unalloc/blob/main/case_studies/gpu_validation) | Real vLLM 0.29 serving Qwen2.5-7B on a DigitalOcean H100, driven with the simulator's tenants ([runbook](https://github.com/timurista/unalloc/blob/main/case_studies/gpu_validation/RUNBOOK.md), [evidence](https://github.com/timurista/unalloc/tree/main/case_studies/results/gpu_validation/evidence)) | Token
|
|
203
|
+
| [`gpu_validation`](https://github.com/timurista/unalloc/blob/main/case_studies/gpu_validation) | Real vLLM 0.29 serving Qwen2.5-7B on a DigitalOcean H100, driven with the simulator's tenants ([runbook](https://github.com/timurista/unalloc/blob/main/case_studies/gpu_validation/RUNBOOK.md), [evidence](https://github.com/timurista/unalloc/tree/main/case_studies/results/gpu_validation/evidence)) | Token and equal time-share allocation rules differ by 12–14 points for search; GPU "utilization" reads 97% at 2 req/s and 99% at 16 req/s |
|
|
200
204
|
|
|
201
205
|
```bash
|
|
202
206
|
make research # build ./.venv-research: CPU torch, notebook tooling, typst
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "unalloc"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.1"
|
|
8
8
|
description = "Find the AI spend nobody owns. Joins OpenCost allocation data with LLM provider bills and reports what's unattributed."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|