Package: openthaigpt
OpenThaiGPTOpenThaiGPT focuses on developing a Thai Chatbot system to have capabilities equivalent to ChatGPT, as well as being able to connect to external systems and be able to retrieve data flexibly. Easily expandable and customizable and developed into Free open source software for everyone.Free software: Apache Software License 2.0Project Homepage:https://openthaigpt.aieat.or.thDocumentation:https://openthaigpt.readthedocs.ioVersionsOpenThaiGPT chat inference library (this repository): version 0.1.1Released modelskobkrit/openthaigpt-0.1.0-betaPretraining Model: Facebook Llama (7 billion params)Dataset: 200,000 Various Translated Instruction DatasetRLHF: NoneMinimium Requirement: Nvidia T4 16GBkobkrit/openthaigpt-0.1.0-alphaPretraining Model: ByT5-XL (3.74 billion params)Dataset: 50,000 Thai SelfInstructRLHF: NoneMinimium Requirement: Nvidia A100 40GBkobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.4Pretraining Model: GPT-2 Thai-baseInstructDataset: 300,000 Pantip + 5,000 Wiki QA => 12,920 Thai InstructGPTRLHF: NoneMinimium Requirement: CPU or Nvidia GTX 1060 6GBkobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.3Pretraining Model: GPT-2 Thai-baseInstructDataset: 300,000 Pantip + 5,000 Wiki QA => 7,000 Thai InstructGPTRLHF: NoneMinimium Requirement: CPU or Nvidia GTX 1060 6GBkobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.2Pretraining Model: GPT-2 Thai-baseInstructDataset: 7,000 Thai InstructGPTRLHF: NoneMinimium Requirement: CPU or Nvidia GTX 1060 6GBkobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.1Pretraining Model: GPT-2 Thai-baseInstructDataset: 298,678 QA Pairs getting from 70,000 Pantip katoos + Wikipedia QA by iAppRLHF: NoneMinimium Requirement: CPU or Nvidia GTX 1060 6GBInstallationPython>=3.6CPU-Only$ pip install openthaigpt torch --extra-index-url https://download.pytorch.org/whl/cpuWith GPUCUDA 11.6$ pip install openthaigpt torch --extra-index-url https://download.pytorch.org/whl/cu116CUDA 11.7$ pip install openthaigpt torchUsing 0.1.0-beta modelimport openthaigpt

print(openthaigpt.generate(instruction="แปลภาษาอังกฤษเป็นภาษาไทย", input="We want to reduce weight.", model_name = "kobkrit/openthaigpt-0.1.0-beta", min_length=50, max_length=300, top_p=0.75, top_k=40, num_beams=1, no_repeat_ngram_size=0, temperature=0.1, early_stopping=True, load_8bit=False))Using 0.1.0-alpha modelimport openthaigpt

print(openthaigpt.generate(instruction="แปลภาษาอังกฤษเป็นภาษาไทย", input="We want to reduce weight.", model_name = "kobkrit/openthaigpt-0.1.0-alpha", min_length=50, max_length=300,  top_k=20, num_beams=5, no_repeat_ngram_size=20, temperature=1, early_stopping=True))Usage 0.0.1-0.0.4 modelimport openthaigpt

print(openthaigpt.generate("Q: อยากลดความอ้วนทำไง\n\nA:", model_name = "kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.4"))
print(openthaigpt.zero("การลดน้ำหนักเป็นเรื่องที่ต้องพิจารณาอย่างละเอียดและรอบคอบเพื่อให้ได้ผลลัพธ์ที่ดีและมีประสิทธิภาพมากที่สุด"))Sponsored byPantip.comThaiSCCollaborated ByArtificial Intelligence Entrepreneur Association of Thailand (AIEAT)Artificial Intelligence Association of Thailand (AIAT)Supported ByNECTECiApp TechnologyNVIDIAMicrosoftMahidol UniversityGitbookHistory0.1.1 (2023-05-26)Add Model version 0.1.0-beta (https://huggingface.co/kobkrit/openthaigpt-0.1.0-beta)0.1.0 (2023-04-23)Support Model SelectionAdd Model version 0.1.0-alpha (https://huggingface.co/kobkrit/openthaigpt-0.1.0-alpha) to supported models.0.0.9 - 0.0.10 (2023-03-19)Release OpenThaiGPT Zero0.0.8 (2023-03-12)Update Readme0.0.7 (2023-03-12)Update Model to Version 0.0.4 (https://huggingface.co/kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.4)0.0.6 (2023-03-05)Update README0.0.5 (2023-02-28)First release on PyPI.