BirdieByte1024/doctor-dental-llama-qa
Viewer • Updated • 903 • 31 • 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")How to use BirdieByte1024/doctor-dental-implant-LoRA-llama3.2-3B with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for BirdieByte1024/doctor-dental-implant-LoRA-llama3.2-3B to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for BirdieByte1024/doctor-dental-implant-LoRA-llama3.2-3B to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for BirdieByte1024/doctor-dental-implant-LoRA-llama3.2-3B to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="BirdieByte1024/doctor-dental-implant-LoRA-llama3.2-3B",
max_seq_length=2048,
)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