Giter Club home page Giter Club logo

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.

Versions

  • OpenThaiGPT chat inference library (this repository): version 0.1.1

  • Released models

    • kobkrit/openthaigpt-0.1.0-beta

      • Pretraining Model: Facebook Llama (7 billion params)
      • Dataset: 200,000 Various Translated Instruction Dataset
      • RLHF: None
      • Minimium Requirement: Nvidia T4 16GB
    • kobkrit/openthaigpt-0.1.0-alpha

      • Pretraining Model: ByT5-XL (3.74 billion params)
      • Dataset: 50,000 Thai SelfInstruct
      • RLHF: None
      • Minimium Requirement: Nvidia A100 40GB
    • kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.4

      • Pretraining Model: GPT-2 Thai-base
      • InstructDataset: 300,000 Pantip + 5,000 Wiki QA => 12,920 Thai InstructGPT
      • RLHF: None
      • Minimium Requirement: CPU or Nvidia GTX 1060 6GB
    • kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.3

      • Pretraining Model: GPT-2 Thai-base
      • InstructDataset: 300,000 Pantip + 5,000 Wiki QA => 7,000 Thai InstructGPT
      • RLHF: None
      • Minimium Requirement: CPU or Nvidia GTX 1060 6GB
    • kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.2

      • Pretraining Model: GPT-2 Thai-base
      • InstructDataset: 7,000 Thai InstructGPT
      • RLHF: None
      • Minimium Requirement: CPU or Nvidia GTX 1060 6GB
    • kobkrit/openthaigpt-gpt2-instructgpt-poc-0.0.1

      • Pretraining Model: GPT-2 Thai-base
      • InstructDataset: 298,678 QA Pairs getting from 70,000 Pantip katoos + Wikipedia QA by iApp
      • RLHF: None
      • Minimium Requirement: CPU or Nvidia GTX 1060 6GB

Installation

Python>=3.6

CPU-Only

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

With GPU

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

CUDA 11.7 $ pip install openthaigpt torch

Using 0.1.0-beta model

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

Usage 0.0.1-0.0.4 model

import openthaigpt

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

Sponsored by

  • Pantip.com
  • ThaiSC

Collaborated By

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

Supported By

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

OpenThaiGPT's Projects

openthaigpt icon 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.

promptsource icon promptsource

Toolkit for creating, sharing and using natural language prompts.

seq2lightning icon seq2lightning

Project based on PyTorch-lightning and Transformers for training Seq2SeqLM models, with a primary focus on MT5 and FLAN-T5, yet not limited to them

tinyllama icon tinyllama

The TinyLlama project is an open endeavor to pretrain a 1.1B Llama model on 3 trillion tokens.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.