✨ Fine-tuning the MedChat model for GPU efficiency. ✨
🇹🇭 Model Card for openthaigpt1.5-14b-medical-tuned
ℹ️ This version is optimized for GPU. Please wait for the CPU version, which will be available soon.!!
This model is fine-tuned from openthaigpt1.5-14b-instruct using Supervised Fine-Tuning (SFT) on the Thaweewat/thai-med-pack dataset. The model is designed for medical question-answering tasks in Thai, specializing in providing accurate and contextual answers based on medical information.
Model Description
This model was fine-tuned using Supervised Fine-Tuning (SFT) to optimize it for medical question answering in Thai. The base model is openthaigpt1.5-14b-instruct, and it has been enhanced with domain-specific knowledge using the Thaweewat/thai-med-pack dataset.
Model type: Causal Language Model (AutoModelForCausalLM)
Language(s): Thai
License: Apache License 2.0
Fine-tuned from model: openthaigpt1.5-14b-instruct
Dataset used for fine-tuning: Thaweewat/thai-med-pack
The model can be directly used for generating medical responses in Thai. It has been optimized for:
Medical question-answering
Providing clinical information
Health-related dialogue generation
Downstream Use
This model can be used as a foundational model for medical assistance systems, chatbots, and applications related to healthcare, specifically in the Thai language.
Out-of-Scope Use
This model should not be used for real-time diagnosis or emergency medical scenarios.
Avoid using it for critical clinical decisions without human oversight, as the model is not intended to replace professional medical advice.
Bias, Risks, and Limitations
Bias
The model might reflect biases present in the dataset, particularly when addressing underrepresented medical conditions or topics.
Risks
Responses may contain inaccuracies due to the inherent limitations of the model and the dataset used for fine-tuning.
This model should not be used as the sole source of medical advice.
Limitations
Limited to the medical domain.
The model is sensitive to prompts and may generate off-topic responses for non-medical queries.
Create a custom medical prompt that you want the model to respond to:
python
1custom_prompt ="โปรดอธิบายลักษณะช่องปากที่เป็นมะเร็งในระยะเริ่มต้น"2PROMPT =f'[INST] <You are a question answering assistant. Answer the question as truthfully and helpfully as possible. คุณคือผู้ช่วยตอบคำถาม จงตอบคำถามอย่างถูกต้องและมีประโยชน์ที่สุด<>{custom_prompt}[/INST]'34# Tokenize the input prompt5inputs = tokenizer(PROMPT, return_tensors="pt", padding=True, truncation=True)
4. Configure the Model for Efficient Loading (4-bit Quantization)
The model uses 4-bit precision for efficient inference. Here’s how to set up the configuration: