← all repositories
adrida/tracer

Your LLM classifier is mostly a very expensive lookup table

TRACER learns which inputs your LLM actually needs, and routes the rest to cheap traditional ML with formal parity guarantees.

1k stars Jupyter Notebook LLMOps · EvalInference · Serving
tracer
Collecting fresh signals — velocity needs a few days of history.
collecting data…
star history

What it does TRACER trains lightweight classical models to mimic your LLM on easy classification inputs. A calibrated gate routes predictable traffic locally and defers edge cases back to the LLM, while a parity guard blocks deployment if the surrogate can’t match your threshold on held-out data.

The interesting bit It treats your LLM as a slow, expensive labeling oracle. Deferred calls feed new traces into the next refit, so coverage grows without human tuning.

Key highlights

  • Claims 92.2% local coverage and 96.1% teacher agreement on Banking77, with projected annual savings of $302,850 at 10k queries/day.
  • Surrogate inference is CPU-bound and sub-millisecond.
  • Includes local OpenTelemetry observability and a free optional cloud dashboard.
  • JavaScript routing requires a Python sidecar.

Caveats

  • The Banking77 result used heavier, opt-in tree models; the default linear + MLP may lag on complex many-class tasks.
  • The pre-fit scan wants ~1,000 traces for a reliable estimate.

Verdict Grab it for high-volume LLM classification; skip for low-volume or generative reasoning tasks.

Frequently asked

What is adrida/tracer?
TRACER learns which inputs your LLM actually needs, and routes the rest to cheap traditional ML with formal parity guarantees.
Is tracer open source?
Yes — adrida/tracer is open source, released under the MIT license.
What language is tracer written in?
adrida/tracer is primarily written in Jupyter Notebook.
How popular is tracer?
adrida/tracer has 1k stars on GitHub.
Where can I find tracer?
adrida/tracer is on GitHub at https://github.com/adrida/tracer.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.