keivalya/MedQuad-MedicalQnADataset
Viewer β’ Updated β’ 16.4k β’ 4.11k β’ 135
How to use therealcyberlord/TinyLlama-1.1B-Medical with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
model = PeftModel.from_pretrained(base_model, "therealcyberlord/TinyLlama-1.1B-Medical")A smaller version of https://huggingface.co/therealcyberlord/llama2-qlora-finetuned-medical, which used Llama 2 7B.
Finetuned on <|user|> <|assistant|> instructions
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM
config = PeftConfig.from_pretrained("therealcyberlord/TinyLlama-1.1B-Medical")
model = AutoModelForCausalLM.from_pretrained("TinyLlama/TinyLlama-1.1B-Chat-v1.0")
model = PeftModel.from_pretrained(model, "therealcyberlord/TinyLlama-1.1B-Medical")
Used two data sources:
BI55/MedText: https://huggingface.co/datasets/BI55/MedText
MedQuad-MedicalQnADataset: https://huggingface.co/datasets/keivalya/MedQuad-MedicalQnADataset
Trained on 1000 steps on a shuffled combined dataset
Base model
TinyLlama/TinyLlama-1.1B-Chat-v1.0