Downloads · 30 days
121
4% of all-time downloads
pythainlp/KhanomTanLLM-3B
KhanomTanLLM-3B is a text generation model from pythainlp. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
KhanomTan LLM is a bilingual language model trained in Thai and English from open source dataset by PyThaiNLP. We train the model from public dataset only. We public the dataset, source code, and model.
Downloads · 30 days
121
4% of all-time downloads
All-time downloads
2.8K
Public
Parameters
3.6B
7.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors7.3 GB · 100%
From the Hugging Face model README
KhanomTan LLM is a bilingual language model trained in Thai and English from open source dataset by PyThaiNLP. We train the model from public dataset only. We public the dataset, source code, and model.
Repository: https://github.com/pythainlp/KhanomTanLLM
Codename: numfa-v2
The model was trained by easylm
Research supported with Cloud TPUs from Google's TPU Research Cloud (TRC). We use TPU4-64 for training model about 8 days.
Thank you TPU Research Cloud and EasyLM project! We use EasyLM for pretraining model.
Use the code below to get started with the model.
Example
# !pip install accelerate sentencepiece transformers bitsandbytes
import torch
from transformers import pipeline
pipe = pipeline("text-generation", model="numfa/numfa_v2-3b", torch_dtype=torch.bfloat16, device_map="auto")
# We use the tokenizer's chat template to format each message - see https://huggingface.co/docs/transformers/main/en/chat_templating
outputs = pipe("test is", max_new_tokens=300, do_sample=True, temperature=0.9, top_k=50, top_p=0.95, no_repeat_ngram_size=2,typical_p=1.)
print(outputs[0]["generated_text"])