Downloads · 30 days
12
3% of all-time downloads
CMKL/ChaThai-gemma3-12b
ChaThai-gemma3-12b is a text generation model from CMKL. Use it when you need the model to write or continue text. The card lists the license as gemma.
<div align="center" <img src="https://github.com/CMKL-MMFM/asset/blob/main/image%20(3).png?raw=true" width="300px" alt="" / </div
Downloads · 30 days
12
3% of all-time downloads
All-time downloads
372
Public
Parameters
12.2B
48.8 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors24.4 GB · 100%
From the Hugging Face model README
ChaThai-gemma3-12b is a Thai language model fine-tuned from Google's Gemma-3-12B-IT base model, specifically optimized for medical domain applications in Thai. This model has been trained on medical data to provide accurate and contextually appropriate responses for healthcare-related queries in Thai.
CMKL/ChaThai-gemma3-12bgoogle/gemma-3-12b-itThe model has been fine-tuned on medical data including:
Note: All training data has been properly anonymized and preprocessed to ensure patient privacy and compliance with medical data regulations.
⚠️ Important: This model is for informational purposes only and should not be used as a substitute for professional medical advice, diagnosis, or treatment. Always consult with qualified healthcare professionals for medical decisions.
Performance metrics and evaluation results would be included here based on your specific testing and validation.
# pip install accelerate
from transformers import AutoProcessor, Gemma3ForConditionalGeneration
from PIL import Image
import requests
import torch
model_id = "CMKL/ChaThai-gemma3-12b"
model = Gemma3ForConditionalGeneration.from_pretrained(
model_id, device_map="auto"
).eval()
processor = AutoProcessor.from_pretrained(model_id)
messages = [
{
"role": "system",
"content": [{"type": "text", "text": "You are a helpful assistant."}]
},
{
"role": "user",
"content": [
{"type": "text", "text": "อาการปวดหัวเป็นอย่างไร."}
]
}
]
inputs = processor.apply_chat_template(
messages, add_generation_prompt=True, tokenize=True,
return_dict=True, return_tensors="pt"
).to(model.device, dtype=torch.bfloat16)
input_len = inputs["input_ids"].shape[-1]
with torch.inference_mode():
generation = model.generate(**inputs, max_new_tokens=100, do_sample=False)
generation = generation[0][input_len:]
decoded = processor.decode(generation, skip_special_tokens=True)
print(decoded)
CMKL MMFM Team
This model inherits the license from the base Gemma-3-12B-it model. Please refer to Google's Gemma license terms for usage rights and restrictions.
For questions, issues, or collaboration opportunities, please contact the CMKL team.
Disclaimer: This model is provided "as is" without warranty of any kind. Users are responsible for ensuring appropriate use in their specific applications and compliance with relevant regulations.