This model is currently in the training stage and may produce hallucinations

Example Use

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "Naphon/pythia-2.8b-thai-base-v1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.float16,
    device_map="auto",
    trust_remote_code=True
)

text = "รองศาสตราจารย์ ดร.สุวิทย์ แซ่เตีย อธิการบดีมหาวิทยาลัยเทคโนโลยีพระจอมเกล้าธนบุรี"
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=50, do_sample=True, temperature=0.9)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Downloads last month
35
Safetensors
Model size
2.93B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Naphon/pythia-2.8b-thai-base-v1

Finetuned
(27)
this model
Finetunes
1 model
Quantizations
1 model

Dataset used to train Naphon/pythia-2.8b-thai-base-v1