Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 472 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 472 Bytes

Donut LLM Core Library

This library will be used by future versions of Donut-LLM-Tools, instead of CreateLLM library.

Usage

LLM Creation

import DonutLLMCore
model = DonutLLMCore.ModelTrainer(path,max_iters=100)
model = model.trainer()

LLM Usage

import DonutLLMCore
path = input("Enter the path of the model : ")
model = DonutLLMCore.LLMModel(path)
prompt = input("Enter prompt : ")
print(model.generate(prompt))