/openthaigpt-example

Example for OpenThaiGPT

Primary LanguagePythonApache License 2.0Apache-2.0

OpenThaiGPT-example

Kobkrit Viriyayudhakorn kobkrit@iapp.co.th

Example of how to use OpenThaiGPT pip package.

Installation

Python>=3.6

CPU-Only

  1. Run pip install -r requirements.cpu.txt
  2. Run python example.py

GPU

  1. If you use CUDA 11.6, pip install -r requirements.cu116.txt
  2. If you use CUDA 11.7, pip install -r requirements.cu117.txt
  3. Run python example.py