Downloads · 30 days
16
0% of all-time downloads
therealcyberlord/TinyLlama-1.1B-Medical
TinyLlama-1.1B-Medical is a text generation model from therealcyberlord. Use it when you need the model to write or continue text. It is set up for peft.
A smaller version of https://huggingface.co/therealcyberlord/llama2-qlora-finetuned-medical, which used Llama 2 7B.
Downloads · 30 days
16
0% of all-time downloads
All-time downloads
3.7K
Public
Repo size
36.1 MB
Likes
3
Public
Click a slice to open those files.
.safetensors36.1 MB · 100%
From the Hugging Face model README
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