What does torch.compile mean in inference serving?
torch.compile traces supported eager-mode PyTorch execution into graphs that backends can optimize and lower to kernels. Unsupported Python behavior can create graph breaks or separate compiled regions. Servers may warm representative shapes before traffic and watch for recompilation as shapes change. Results depend on backend support, graph stability, and generated kernel quality.