Training Large Language Models (LLMs) involves multiple steps to help the model understand and gener…