Inference Engineering for AI Systems