Downloads · 30 days
80
0% of all-time downloads
nlpie/distil-clinicalbert
distil-clinicalbert is a fill-mask model from nlpie. Use it when you need the model to fill a missing word. It is set up for transformers.
DistilClinicalBERT is a distilled version of the BioClinicalBERT model which is distilled for 3 epochs using a total batch size of 192 on the MIMIC-III notes dataset.
Downloads · 30 days
80
0% of all-time downloads
All-time downloads
31.6K
Public
Repo size
1.3 GB
Likes
8
Trending 4
Click a slice to open those files.
.bin263 MB · 100%
From the Hugging Face model README
DistilClinicalBERT is a distilled version of the BioClinicalBERT model which is distilled for 3 epochs using a total batch size of 192 on the MIMIC-III notes dataset.
This model uses a simple distillation technique, which tries to align the output distribution of the student model with the output distribution of the teacher based on the MLM objective. In addition, it optionally uses another alignment loss for aligning the last hidden state of the student and teacher.
Following DistilBERT, we initialise the student model by taking weights from every other layer of the teacher.
In this model, the size of the hidden dimension and the embedding layer are both set to 768. The vocabulary size is 28996. The number of transformer layers is 6 and the expansion rate of the feed-forward layer is 4. Overall this model has around 65 million parameters.
If you use this model, please consider citing the following paper:
@article{rohanian2023lightweight,
title={Lightweight transformers for clinical natural language processing},
author={Rohanian, Omid and Nouriborji, Mohammadmahdi and Jauncey, Hannah and Kouchaki, Samaneh and Nooralahzadeh, Farhad and Clifton, Lei and Merson, Laura and Clifton, David A and ISARIC Clinical Characterisation Group and others},
journal={Natural Language Engineering},
pages={1--28},
year={2023},
publisher={Cambridge University Press}
}
If this model helps your work, you can keep the project running with a one-off or monthly contribution:
https://github.com/sponsors/nlpie-research