Skip to main content

Core library for training PyTorch model in Donut-LLM-Tools

Project description

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))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

donutllmcore-1.0.0.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

DonutLLMCore-1.0.0-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page