Skip to main content

OpenThaiGPT 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.

Project description

OpenThaiGPT

OpenThaiGPT 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.

Features

  • You can now select the model_name as follows:
  • kobkrit/openthaigpt-0.1.0-alpha
  • kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.4
  • kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.3
  • kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.2
  • kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.1

Installation

Python>=3.6

CPU-Only

$ pip install openthaigpt torch --extra-index-url https://download.pytorch.org/whl/cpu

GPU

CUDA 11.6 $ pip install openthaigpt torch --extra-index-url https://download.pytorch.org/whl/cu116

CUDA 11.7 $ pip install openthaigpt torch

Usage

import openthaigpt

print(openthaigpt.generate("Q: อยากลดความอ้วนทำไง\n\nA:"))
print(openthaigpt.zero("การลดน้ำหนักเป็นเรื่องที่ต้องพิจารณาอย่างละเอียดและรอบคอบเพื่อให้ได้ผลลัพธ์ที่ดีและมีประสิทธิภาพมากที่สุด"))

Using 0.1.0-alpha model

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

Collaboration By

  • Artificial Intelligence Entrepreneur Association of Thailand (AIEAT)
  • Artificial Intelligence Association of Thailand (AIAT)

Supported By

  • NECTEC
  • iApp Technology
  • Pantip
  • NVIDIA
  • Microsoft
  • Mahidol University
  • Gitbook

History

0.1.0 (2023-04-23)

0.0.9 - 0.0.10 (2023-03-19)

  • Release OpenThaiGPT Zero

0.0.8 (2023-03-12)

  • Update Readme

0.0.7 (2023-03-12)

0.0.6 (2023-03-05)

  • Update README

0.0.5 (2023-02-28)

  • First release on PyPI.

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

openthaigpt-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

openthaigpt-0.1.0-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file openthaigpt-0.1.0.tar.gz.

File metadata

  • Download URL: openthaigpt-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.9.6 requests/2.27.1 setuptools/61.2.0 requests-toolbelt/0.10.1 tqdm/4.64.0 CPython/3.9.12

File hashes

Hashes for openthaigpt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 52b011ec90009483819c69ba159c46e9694a644c40b95b309af5e3768a83dc95
MD5 cbe8ece267e9ae140b56c5ca6472c769
BLAKE2b-256 4441648396c234be81e2578c3266d0ef690ff2372d1622b271e379a6719de1cc

See more details on using hashes here.

File details

Details for the file openthaigpt-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: openthaigpt-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.9.6 requests/2.27.1 setuptools/61.2.0 requests-toolbelt/0.10.1 tqdm/4.64.0 CPython/3.9.12

File hashes

Hashes for openthaigpt-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bf7b1ade8677040ff5722ba844da069dd82e067787be9d464851c0ef945fab11
MD5 bce234ca5d2bfdfa78432d99bbd5ffa3
BLAKE2b-256 9014d6f1de580d48bcae0f2f79c4141040759a87f029e253f5551f39c566dd44

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