Repository navigation
Releases
v0.6.3
Added
estimate_stage2_cost: estimates the TPOT and E2EL that Stage 2 adds to a routing before deployment, from the training statistics alone. REPRODUCE.md shows how to call it.CITATION.cff, so GitHub shows how to cite the repository.
v0.6.2
Added
cre fit --crossover-tol: treats two clusters' switching points within the tolerance as tied and also considers the routing that switches them in the other order. Takes a number orauto; the default,0, is off.cre fitlists near-ties under "Near-ties", both within a cluster (--error-tol) and across clusters.cre --version.
Fixed
cre evaluate --helpnames--no-enable-prefix-cachingfor the vLLM server.- REPRODUCE.md lists the TeleQnA QE data and classifier the reported results use.
v0.6.1
Fixed
- The TeleQnA stats, pool and routing configs are measured with prefix caching off:
teleqna_*_Oct2026.json. example_config_teleqna.yamlserves Qwen3-4B-Instruct and Gemma4-26B and loads the matching Qwen3-4B estimator.- README: measuring a pool serves each model with
--no-enable-prefix-caching, so later runs of the same prompts are not timed with a cached prefill.
v0.6.0
Added
cre fitplans Stage 2: it escalates to the most accurate model the routing uses and gates every cluster served by a cheaper model, saves the plan inrouter.json, and prints the estimators to train next.--escalate-tosets the target by hand.cre qe-data, which builds a gated model's estimator data from itscre evaluategenerations. The logic moves fromdata/prep_qe.pyintocre_router.qe.data.- Per-model
paramsin the serving config, laid over every request to that model, so a config sets each model's sampling and switches Gemma 4's reasoning.example_config_telemath_tpot.yamlserves the TeleMath routing at a TPOT budget of 25 ms. - The TeleMath E2EL routing at 120 s,
configs/routings/telemath_e2el_b120s_1xA100_Sep2026.json, listed inREPRODUCE.md.
Changed
cre serveescalates a rejected answer straight to the planned target, instead of climbing a ladder of models ordered by cost. Artifacts written by an earliercre fitmust be fitted again before serving with QE.README.mdand the PyPI description walk through every step fromcre clustertocre serve, Stage 2 included.
v0.5.0
Removed
-
cre cascade, in favour ofcre compose. It estimated Stage 1 + 2 from per-cluster averages, pricing every escalated question at the strong model's cluster average;cre composemeasures Stage 1 + 2 on the batches that were actually served, and every reported Stage 1 + 2 number comes from it. Replacecre cascade --stats <file>withcre compose --routing <spec>, using a routing spec like those inconfigs/routings/.Removed with it:
cascade_system_metrics,cascade_system_metrics_ntier,cascade_system_accuracyandcluster_cascade_accuracyincre_router.routing,ModelStats.output_tokens_for, and the--outoption ofcre qe-cascade, which wrote the file onlycre cascaderead.cre qe-cascadestill reports each cluster's cascade accuracy and escalations. -
The
*_2xA100_Jun2026.jsonconfigs, in favour of the September 2026 configs, which cover AIME, TeleQnA and TeleMath on one and two A100s under vLLM 0.19.0.
Changed
-
The routing tests run on the September 2026 two-card stats, and check each fit against the routing spec in
configs/routings/it must reproduce, with expected values recomputed from the stats files. -
The system diagram marks Stage 1 in violet and is cropped to the drawing.
Fixed
-
REPRODUCE.mdstates its scope, every routing and every Stage 1 + 2 number, and lists both TeleMath one-card budgets at which per-cluster cost changes the routing. -
The release workflow attaches the built packages to an existing GitHub release instead of failing.
v0.4.0
Added
-
cre composemeasures a routing's Stage 1 and Stage 1 + 2 accuracy, TPOT and E2EL on the batches that were actually served, including each escalation batch, from saved captures or the released captures dataset. A routing spec names the capture behind each tier and each gated cluster's escalation batch; clusters escalated together can share one batch. Every Stage 1 + 2 number the paper reports comes from it, andconfigs/routings/holds a spec for each. -
cre statsrebuilds the per-cluster stats filecre fitreads from saved captures, regrading every answer with its task's grader. A pool spec inconfigs/pools/names the capture behind each model, and the shipped stats configs rebuild byte for byte from the released captures. -
cre_router.capturesreads a saved capture: it regrades each answer from its full output and joins each request to its question, checked on output length, so a capture that does not match its records is refused rather than composed. -
cre_router.bootstrapgives confidence intervals for evaluations that cross questions with runs.gap()compares two systems on paired per-question differences, resampling questions and each system's runs;interval()keeps runs shared, for a difference between two stages of one system. -
cre_router.throughputreports vLLM's whole-run output throughput together with the full-load (steady-state) throughput, the output tokens per second while every slot is busy. -
Baselines:
cre_router.baselinesimplements the FrugalGPT cascade (Chen et al., 2024), with per-stage thresholds, one scorer per tier and cost accounting for cascades of any depth, and the HybridLLM router (Ding et al., 2024) with its three label schemes. -
The no-clustering ablation (k = 1) as routing specs, for TeleMath under TPOT and E2EL.
-
Stats configs carry
cluster_e2el_ms, so--cost-metric e2elfits on every shipped config. New configs: TeleMath on one and two A100s, and AIME and TeleQnA on two A100s. -
teleqna_think, the TeleQnA task for reasoning models, with the thinking sampling and a 40,960-token cap. -
cre evaluate --max-output-tokenslowers a task's output cap for a model whose context cannot hold it. It can only lower the cap, and the stats entry records it. -
A
dataextra (pyarrow) for reading the released datasets. -
A TeleMath serving example,
example_config_telemath.yaml, for the E2EL routing. -
cre --helplists every command, each subcommand prints what it does, and every option shows its default.
Fixed
-
cre evaluateraisesEmptyCaptureErrorwhen no request in the run generated a token. Such a run used to finish as a well-formed stats file reading error 1.0 at 0.0 ms. -
The serving examples use the reported one-card systems. The TeleQnA example serves Gemma4-E4B and Gemma4-26B with the Gemma4-E4B classifier, and the AIME example uses the VibeThinker-1.5B classifier trained on the reported captures.
-
The README quickstart and data-format links point to configs that exist, and each config's note names its own file.
v0.3.1
Fixed
-
Cascade rows report vLLM's measured TPOT. A query answered by one tier reports that tier's value unchanged. An escalated query ran twice and so has no single measured value; its two passes are added and divided by the tokens the user actually received:
(tpot_eff*(n_eff-1) + tpot_strong*(n_strong-1)) / (n_strong-1)The efficient pass's decode time is charged in full, exactly as E2EL adds both passes' wall time. However, its tokens are not counted, because they were discarded and never reached the user. A wasted pass therefore costs time and earns no tokens to spread that time over.
Captures must now carry
tpot, and one without it raises. Reconstructing the value from total wait folds in the time before the first token, which TPOT excludes, and overstates it by up to 11% on short answers.
v0.3.0
Added
-
Per-cluster cost conditioning as a selectable scoring rule, with
cost_conditioning="model"|"cluster", exposed as--cost-conditioning, defaulting to"model". -
cre_router.cascadeprices each query on the tiers it actually ran, from the vLLM per-request record, returning a (question, efficient run, strong run) grid a paired bootstrap can resample. cascade_system_metrics stays the aggregate form for choosing an operating point; use this one to report it with an interval. -
Shipped configs now name the basis that produced them, since cost is a property of the serving configuration: *_1xA100_Sep2026.json is what the paper reports, *_2xA100_Jun2026.json the preprint, kept reproducible and recording the vLLM version per model. There is no basis-less default.
v0.2.1
Fixed
cre servederives the escalation ladder under the cost metriccre fitused. The metric is recorded inrouter.jsonand read back at serving time, so the ladder is pruned and ordered by the same arithmetic that produced the routing table. This affects deployments fitted with--cost-metric e2el, whose ladder was ordered by TPOT instead. Artifacts written by earlier versions keep working and load astpot, the metric they were fitted under.
Packaging
- The sdist declares its contents and holds exactly the tracked tree, checked by
check-manifeston every push. - Releases build and publish from a tag through PyPI trusted publishing.
v0.2.0
Added
- An E2EL cost metric alongside TPOT, so Stage 1 can be fitted against per-request latency as well as per-token latency (
cre fit --cost-metric e2el). - Stage 1 + 2 system metrics. Cascade cost is generalised to N tiers, and end-to-end accuracy is reported for the composed system.
cre qe-cascade, which evaluates the Stage 2 quality-estimation cascade over a saved evaluation run.- TeleMath support, covering numeric answer matching and per-question outcome capture, so a run can be re-scored without re-generating it.
cre qe-trainnow accepts a local directory of splits, whichdata/prep_qe.pybuilds from generation logs.
Fixed
- The QE tokenizer now defaults to the checkpoint itself. Both
cre qe-cascadeand the QE evaluation script defaulted to a Hub model id, which overrode the classifier's own fallback and failed on a machine without internet.