Downloads · 30 days
10
7% of all-time downloads
kaashh02/phi3-mini-medical-merged
phi3-mini-medical-merged is a text generation model from kaashh02. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is a fine-tuned version of microsoft/Phi-3-mini-4k-instruct specialized for medical applications.
Downloads · 30 days
10
7% of all-time downloads
All-time downloads
138
Public
Parameters
3.8B
7.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.6 GB · 100%
From the Hugging Face model README
This is a fine-tuned version of microsoft/Phi-3-mini-4k-instruct specialized for medical applications.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_name = "kaashh02/phi3-mini-medical-merged"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
# Example usage
prompt = "What are the symptoms of diabetes?"
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
If you use this model, please cite:
@misc{phi3_mini_medical_merged,
title={phi3-mini-medical-merged: Medical Fine-tuned Phi-3 Model},
author={Your Name},
year={2025},
howpublished={\url{https://huggingface.co/kaashh02/phi3-mini-medical-merged}}
}