LLM models are trained using state-of-the-art machine learning techniques, such as deep neural networks. They require large amounts of legal text data, which is used to generate predictions and fine-tune the models until they exhibit a high level of accuracy in generating legal outputs.