SPAISS6F1
auan-llm-928m-base-preview
Dedicated Endpoints
Run this model inference on single tenant GPU with unmatched speed and reliability at scale.
Container
Run this model inference with full control and performance in your environment.
Get help setting up a custom Dedicated Endpoints.
Talk with our engineer to get a quote for reserved GPU instances with discounts.
README
License: apache-2.0Model Details
- Architecture:
Qwen2ForCausalLM - Parameters: ~928M
- Initialization: random initialization, trained from scratch
- Vocabulary: 32,000-token Thai byte-level BPE tokenizer
- Context length: 2,048 tokens
- Hidden size: 2,048
- Layers: 18
- Attention heads: 16
- KV heads: 4
- Intermediate size: 5,504
Training Snapshot
- Checkpoint: best validation checkpoint
- Step: 5,500
- Validation loss: 2.51767520904541
- Training objective: next-token prediction
- Precision during training: bf16
Training Data
The 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-dataset
Please audit dataset licenses and suitability before commercial use.
Usage
python
import torchfrom transformers import AutoModelForCausalLM, AutoTokenizermodel_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))
Limitations
- This is an early base checkpoint, not a chat assistant.
- Generation quality may be unstable or repetitive.
- The model has not been aligned for safety.
- The model may hallucinate or produce inappropriate text.
- It should not be used for high-stakes decisions without further evaluation and alignment.
Model provider
SPAISS6F1
Model tree
Base
this model
Modalities
Input
Text
Output
Text
Pricing
Dedicated Endpoints
View detailsSupported Functionality
Model APIs
Dedicated Endpoints
Container
More information