Skip to main content

Tools for creating datasets, training and loading AI models

Project description

Donut LLM Tools

Donut LLM Tools is a suite of two programs that helps you create dataset from wikipedia data and your own LLM with the created or already existing dataset.

Latest Version 24.05.29

How to install, import and use DonutLLM?

Installation

  • Before installing Donut LLM Tools, make sure you have Python 3.9 or later till Python 3.11. Note : Python 3.12 is not supported by PyTorch, hence Donut LLM Tools will also have trouble running in it.

  • The dependencies for installing Donut LLM Tools are:

    1. DonutLLMCore (pip install DonutLLMCore)
    2. torch (Required by DonutLLMCore)
    3. torchvision (Required by CreateLLM, PyTorch)
    4. torchaudio (Required by CreateLLM, PyTorch)
    5. Wikipedia

    Note : You need to check PyTorch website to find more about installation on devices with only CPU or with GPU. Donut LLM Tools support CPU, however it is very slow to train a model in CPU.

  • After ensuring the installation of the above mentioned dependencies, do pip install donut-llm-tools.

  • You have now installed Donut LLM Tools in your device.

Importing and Using

from donutllmtools import Tools

Tools.DatasetCreator() # For creating wikipedia based datasets.

Tools.LLMCreator() # For creating/loading AI model from the above created dataset or a custom dataset.

The above code snippet is used to create a dataset and also train/load an AI model

from donutllmtools import HelpAndInfo

HelpAndInfo.help() # To view help.

HelpAndInfo.about() # To view details of the program.

HelpAndInfo.create_llm() # Also create LLM from HelpAndInfo class.

HelpAndInfo.create_dataset() # ALso create dataset from HelpAndInfo class.

HelpAndInfo.main() # To get a menu based interface for dataset creation or model load/creation.

The above code uses HelpAndInfo class which has the same functions from Tools class as well as help functions.

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

donut_llm_tools-24.5.29.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

Donut_LLM_Tools-24.5.29-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file donut_llm_tools-24.5.29.tar.gz.

File metadata

  • Download URL: donut_llm_tools-24.5.29.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for donut_llm_tools-24.5.29.tar.gz
Algorithm Hash digest
SHA256 1592ab1fda2a43d7624e778a7a2147a33c838e3e24f6507d47f71f9034866e9b
MD5 6b899aa30ba7affaacccaae3b6f263b8
BLAKE2b-256 8440516d17c52aeb8f7c059e91021427b4e2a78ba8549bc463f8457a126877b1

See more details on using hashes here.

File details

Details for the file Donut_LLM_Tools-24.5.29-py3-none-any.whl.

File metadata

File hashes

Hashes for Donut_LLM_Tools-24.5.29-py3-none-any.whl
Algorithm Hash digest
SHA256 b82bfc49c94928cc6463ea3f77f384261e8993f3b44ccc591803dcac3d132130
MD5 399fe3e91f4f8d2e7635c135bc96faa1
BLAKE2b-256 d1fac32b3a6690940e1827e2a300466c379851ad733c295b3081c70063371f82

See more details on using hashes here.

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