Downloads · 30 days
21
57% of all-time downloads
Iftakhar/deepseek-phi-adapter
deepseek-phi-adapter is a machine learning model from Iftakhar. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
This repository hosts a LoRA adapter fine-tuned for safe detection and redaction of Protected Health Information (PHI) in clinical text.
Downloads · 30 days
21
57% of all-time downloads
All-time downloads
37
Public
Repo size
62.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors62.9 MB · 93%
From the Hugging Face model README
This repository hosts a LoRA adapter fine-tuned for safe detection and redaction of Protected Health Information (PHI) in clinical text.
The model is trained on a large synthetic and de-identified corpus derived from MIMIC-III-style clinical notes and is designed to operate as part of a configurable, explainable medical text de-identification pipeline.
deepseek-ai/deepseek-11m-7b-baseThis adapter is intended for:
✅ Research on medical data de-identification
✅ Benchmarking privacy-preserving NLP pipelines
✅ Safety and explainability evaluation for clinical LLM workflows
❌ Automated medical diagnosis
❌ Direct patient care deployment without regulatory review
❌ Generating synthetic patient records for real-world use
from transformers import AutoModelForCausalLM
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained(
"deepseek-ai/deepseek-11m-7b-base", trust_remote_code=True
)
model = PeftModel.from_pretrained(
base,
"Iftakhar/deepseek-phi-adapter"
)