the.ai

Compilers / Systems

verified

Compilation Cache

Compiling and autotuning a large model can take longer than running it. A cache keyed on the graph, the shapes and the hardware makes that a first-run cost rather than a per-run one — and getting the key wrong is worse than having no cache, because a stale hit produces a kernel compiled for something else.

Viz primitive · budget-splitcache-hits = 8

cache-hits holds 50% of the budget; rest holds the remaining 50%.

Runs served from cache against runs paying compilation, in runs. Drag the hit rate up to watch compilation amortise — a fleet whose shapes never repeat sits at the far left permanently.

8

Reviewed by opendroid · 2026-08-18

  • arXiv:2006.06762 — Ansor: Generating High-Performance Tensor Programs for Deep Learning