nlpie / clinical-miniALBERT-312

huggingface.co
Total runs: 19
24-hour runs: -1
7-day runs: 1
30-day runs: -11
Model's Last Updated: May 18 2025
fill-mask

Introduction of clinical-miniALBERT-312

Model Details of clinical-miniALBERT-312

Model

miniALBERT is a recursive transformer model which uses cross-layer parameter sharing, embedding factorisation, and bottleneck adapters to achieve high parameter efficiency. Since miniALBERT is a compact model, it is trained using a layer-to-layer distillation technique, using the BioClinicalBERT model as the teacher. This model is trained for 3 epochs on the MIMIC-III notes dataset. In terms of architecture, this model uses an embedding dimension of 312, a hidden size of 768, an MLP expansion rate of 4, and a reduction factor of 16 for bottleneck adapters. In general, this model uses 6 recursions and has a unique parameter count of 18 million parameters.

Usage

Since miniALBERT uses a unique architecture it can not be loaded using ts.AutoModel for now. To load the model, first, clone the miniALBERT GitHub project, using the below code:

git clone https://github.com/nlpie-research/MiniALBERT.git

Then use the sys.path.append to add the miniALBERT files to your project and then import the miniALBERT modeling file using the below code:

import sys
sys.path.append("PATH_TO_CLONED_PROJECT/MiniALBERT/")

from minialbert_modeling import MiniAlbertForSequenceClassification, MiniAlbertForTokenClassification

Finally, load the model like a regular model in the transformers library using the below code:

# For NER use the below code
model = MiniAlbertForTokenClassification.from_pretrained("nlpie/clinical-miniALBERT-312")
# For Sequence Classification use the below code
model = MiniAlbertForTokenClassification.from_pretrained("nlpie/clinical-miniALBERT-312")

In addition, For efficient fine-tuning using the pre-trained bottleneck adapters use the below code:

model.trainAdaptersOnly()

Citation

If you use the model, please cite our 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}
}

Runs of nlpie clinical-miniALBERT-312 on huggingface.co

19
Total runs
-1
24-hour runs
1
3-day runs
1
7-day runs
-11
30-day runs

More Information About clinical-miniALBERT-312 huggingface.co Model

More clinical-miniALBERT-312 license Visit here:

https://choosealicense.com/licenses/mit

clinical-miniALBERT-312 huggingface.co

clinical-miniALBERT-312 huggingface.co is an AI model on huggingface.co that provides clinical-miniALBERT-312's model effect (), which can be used instantly with this nlpie clinical-miniALBERT-312 model. huggingface.co supports a free trial of the clinical-miniALBERT-312 model, and also provides paid use of the clinical-miniALBERT-312. Support call clinical-miniALBERT-312 model through api, including Node.js, Python, http.

clinical-miniALBERT-312 huggingface.co Url

https://huggingface.co/nlpie/clinical-miniALBERT-312

nlpie clinical-miniALBERT-312 online free

clinical-miniALBERT-312 huggingface.co is an online trial and call api platform, which integrates clinical-miniALBERT-312's modeling effects, including api services, and provides a free online trial of clinical-miniALBERT-312, you can try clinical-miniALBERT-312 online for free by clicking the link below.

nlpie clinical-miniALBERT-312 online free url in huggingface.co:

https://huggingface.co/nlpie/clinical-miniALBERT-312

clinical-miniALBERT-312 install

clinical-miniALBERT-312 is an open source model from GitHub that offers a free installation service, and any user can find clinical-miniALBERT-312 on GitHub to install. At the same time, huggingface.co provides the effect of clinical-miniALBERT-312 install, users can directly use clinical-miniALBERT-312 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

clinical-miniALBERT-312 install url in huggingface.co:

https://huggingface.co/nlpie/clinical-miniALBERT-312

Url of clinical-miniALBERT-312

clinical-miniALBERT-312 huggingface.co Url

Provider of clinical-miniALBERT-312 huggingface.co

nlpie
ORGANIZATIONS

Other API from nlpie

huggingface.co

Total runs: 10.1K
Run Growth: 9.3K
Growth Rate: 92.99%
Updated:May 18 2025
huggingface.co

Total runs: 1.3K
Run Growth: 864
Growth Rate: 64.77%
Updated:May 17 2025
huggingface.co

Total runs: 4
Run Growth: -3
Growth Rate: -75.00%
Updated:May 18 2025