This library will be used by future versions of Donut-LLM-Tools, instead of CreateLLM library.
import DonutLLMCore
model = DonutLLMCore.ModelTrainer(path,max_iters=100)
model = model.trainer()
import DonutLLMCore
path = input("Enter the path of the model : ")
model = DonutLLMCore.LLMModel(path)
prompt = input("Enter prompt : ")
print(model.generate(prompt))