BirdieByte1024/doctor-dental-llama-qa
Viewer • Updated • 903 • 67 • 1
How to use BirdieByte1024/doctor-dental-implant-LoRA-llama3.2-3B with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/llama-3.2-3b-unsloth-bnb-4bit")
model = PeftModel.from_pretrained(base_model, "BirdieByte1024/doctor-dental-implant-LoRA-llama3.2-3B")This is a LoRA adapter trained on top of meta-llama/Llama-3.2-3B using Unsloth, for the purpose of aligning the model to doctor–patient conversations and dental implant-related Q&A.
The adapter improves the model's performance in instruction-following and medical dialogue within the dental implant domain (e.g. Straumann® surgical workflows).
meta-llama/Llama-3.2-3BBirdieByte1024/doctor-dental-llama-qaBirdieByte1024/doctor-dental-llama-qa {
"conversation": [
{ "from": "patient", "value": "What is the purpose of a healing abutment?" },
{ "from": "doctor", "value": "It helps shape the gum tissue and protect the implant site during healing." }
]
}
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
# Load base model
base = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-3B")
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-3B")
# Load LoRA adapter
model = PeftModel.from_pretrained(base, "BirdieByte1024/doctor-dental-implant-LoRA-llama3.2-3B")
Developed by (BirdieByte1024)
Fine-tuned using Unsloth and PEFT
MIT
Base model
meta-llama/Llama-3.2-3B