Downloads · 30 days
12
26% of all-time downloads
poomphasindev/auan-llm-928m-base-preview
auan-llm-928m-base-preview is a text generation model from poomphasindev. 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.
This is a Thai-focused Qwen2-style causal language model trained from scratch.
Downloads · 30 days
12
26% of all-time downloads
All-time downloads
47
Public
Parameters
929M
3.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.7 GB · 100%
From the Hugging Face model README
This is a Thai-focused Qwen2-style causal language model trained from scratch.
It is a base model, not an instruction-tuned/chat model. It is intended for continued pretraining, evaluation, research, and downstream supervised fine-tuning.
Qwen2ForCausalLMThe training configuration included Thai-focused corpora such as:
SPAISS6F1/slm-pretrain-corpusSPAISS6F1/Financepythainlp/thai-wiki-dataset-v3pythainlp/thailaw-v1.0pythainlp/thai-constitution-corpuspythainlp/thai-financial-datasetPlease audit dataset licenses and suitability before commercial use.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "YOUR_USERNAME/thai-llm-928m-base-preview"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.float16)
model.eval()
prompt = "ประเทศไทยมี"
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
output = model.generate(
**inputs,
max_new_tokens=80,
do_sample=True,
temperature=0.8,
top_p=0.95,
repetition_penalty=1.1,
pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(output[0], skip_special_tokens=True))