Locate the allocation
Connect a growing tensor shape to the line that materializes it.
Headroom finds the memory bottleneck, proposes a bounded repair, and tests whether the outputs you actually need still survive.
Choose a built-in workload and set its constraints. No code uploads, account, or personal data needed.
Same allocation pattern. Different output contract.
Fixed workloads only · local runner · no user code execution
Source-linked evidence, then an independent decision.
01def nearest(query, reference):02 delta = query[:, None, :] - reference[None, :, :]03 distance = torch.sqrt(torch.sum(delta * delta, dim=-1))04 return torch.argmin(distance, dim=1)
Connect a growing tensor shape to the line that materializes it.
Use a small, reviewable strategy set. Model output is never executed as code.
Independent cases check shape, values, ties, memory, and latency.
Download the settings, measurements, decision, and regression assertion.