The 3D instrument could not start on this device — the sampler, assignment matrix and readouts below still run the routing problem live.
02 / 03 · thermo_physics.dispatch Potts Rate-Limit & SLA Task Router · MIT

The dispatch
manifold

A burst of LLM tasks enters at the left, and the brass manifold deals each one to a model endpoint — local GPUs, cloud frontier models, small specialists. The glass columns are the endpoints; their fill is the token load against each TPM ceiling. Raise the temperature and the Gibbs sampler visibly reshuffles the routing; cool it and the burst settles.

Drag to orbit · Scroll to zoom
Hamiltonian H(x) · live
—
TPM overage
—
SLA misses
—
Temperature τ
—
// 01 · Published run

What the 40-task simulation measured

One benchmark trace, 40 tasks, 97,841 tokens. When agent loops fire dozens of tasks in a sudden parallel burst, naive routers either blow provider tokens-per-minute ceilings or hand complex reasoning to underspecified small models. The dispatcher treats the whole burst as a discrete Potts Hamiltonian and relaxes the assignments through rapid Gibbs sampling — 36.3% lower operational model expenditure than naive high-capability routing, with zero TPM overage and a 4.65 ms typical solve.

The dashboard below runs a smaller demonstration burst — 10 tasks, 4 endpoints — under the same Hamiltonian, so you can watch the sampler work. The published 40-task figures stay as published in the table.

Simulated benchmark result, results may vary (not customer results).

Lower model expenditure vs naive36.3%
TPM overage · Potts / Gibbs0 tok
Solve time · typical4.65 ms
Benchmark trace40 tasks
Tokens in trace97,841
Gibbs Sampler ControlsFIG. 01
Temperature τ τ 30
2 · COLD — ROUTING FREEZES120 · HOT — TASKS WANDER
Sampling
Hamiltonian H(x) · trailing sweepsDashed — optimum
Live State · Demo BurstFIG. 02
Hamiltonian H(x)
—
Optimum H*
—
SLA misses
—
Capability misses
—
TPM overage
—
Sweeps
0

A sweep re-offers every task in the burst to all four endpoints, drawn from the Gibbs distribution at the current temperature. Assign any task by hand in the matrix below and the manifold answers at once.

Assignment Matrix · Task × EndpointFIG. 03
Local · Ollama Claude Cloud · Fast Small models Tap a cell to assign that task
Endpoint Load · vs TPM CeilingFIG. 04

The quadratic barrier in H(x) charges every token above a ceiling — the sampler spreads the burst before a provider 429 ever fires.

// 01 · Published Run — Strategy ComparisonFIG. 05
StrategySLA missesCapability missesTPM overageSolve time
Naive high-capability20/4022/40+43,689 tok0.01 ms
Greedy cheapest-first0/4018/40+22,113 tok0.00 ms
Potts / Gibbs dispatcher3/400/400 tok4.65 ms

TPM overage measures cumulative tokens exceeding an endpoint's provisioned rate ceiling within the benchmark file. The on-premise endpoint is designated Local-Ollama-RTX5080 as a reference simulation label. All three strategies run today as JAX simulations on ordinary computers; no special sampling hardware is required.

Simulated benchmark result, results may vary (not customer results).

// 02 · Potts HamiltonianFIG. 06
H(x) = Σ cm xi,m  +  wcap Σ (1 − match(i, m)) xi,m  +  wsla Σ max(0, latm − slai) xi,m  +  wtpm Σ max(0, tokm − capm)²
  • Cost minimization — balances lightweight against frontier model compute weight, task by task.
  • Hard capability filter — penalizes assigning reasoning tasks to non-reasoning models; in the published run the Potts dispatcher recorded 0/40 capability misses.
  • SLA latency bounds — enforces time-to-first-token ceilings for interactive calls.
  • Quadratic barrier — smoothly dampens bursts before they hit provider 429 errors, charging the square of any TPM overage.

The demonstration burst above runs this same function with wcap = 400, wsla = 1.5 per ms, wtpm = 5×10−5 per tok². Its optimum — H* = 78.8 — was verified by exhaustive enumeration of all 410 = 1,048,576 assignments.

// 03 · Privacy & IsolationFIG. 07
  • Zero prompt exposure — a task record is an id, a complexity tier, an estimated token count, a latency limit, and a list of required capabilities. Prompt text is not a field on that record.
  • Metadata-only scheduling — the router evaluates only token counts, latency requirements, priority tiers, and required tools.
  • No external telemetry — runs completely within your private VPC or on-premise compute cluster, with zero outbound logging or vendor telemetry.
// 04 · Multi-Tier BackendsFIG. 08
  • Local GPU inference — Ollama / vLLM on RTX 5080 / A100 / H100
  • Cloud foundation models — Claude · OpenAI · Gemini
  • Specialized embedding & classification small models
  • One burst, one Hamiltonian — the sampler arbitrates across all three tiers at once
// 05 · Shadow Audit CLIFIG. 09

Replay historical request logs offline to verify cost reductions and rate-limit headroom before switching routing in production:

$ python scripts/run_shadow_audit.py \ --log requests.jsonl \ --target-endpoint localhost:8000 \ --out audit_report.json

Calculates empirical rate-limit headroom, SLA compliance, and token expenditure improvements against naive routing — with zero impact on live services. Free shadow audit available for academic & foundry use, 8–12 weeks.