Updated the inference document to reflect changes and optimization techniques.