API Service for the WangChanGLM model. More information about the model can be found here.
Pairs nicely with the WangChanGLM App.
Try out the public demo at https://wangchanglm.in.th
docker build -t scb10x/thaillm .
mkdir .cache #optional
chmod 777 .cache #optional
# on cpu
docker run --restart unless-stopped -p 80:7860 -v `pwd`/.cache:/home/user/.cache -dt scb10x/thaillm
# on gpu
docker run --gpus all --restart unless-stopped -p 80:7860 -v `pwd`/.cache:/home/user/.cache -dt scb10x/thaillm
curl --request POST \
--url http://localhost:80/generate \
--header 'Content-Type: application/json' \
--data '{"instruction": "เขียนบทความเกี่ยวกับ ประโยชน์ของการออกกำลังกาย"}'
- Compute Engine > Create an instance
- GPUs > NVIDIA T4
- Machine Type > n1-standard-8
- Boot disk > Switch Image > Debian 10 based Deep Learning VM with M108 > 250GB
- Firewall > Allow HTTP traffic > Allow HTTPS traffic
- Create
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
- clone this repo
- build docker:
./scripts/build.sh
- run docker:
./scripts/start.sh