Views
No views yet
22.7M parameter BERT encoder-only model trained on data from PubMed. The raw data was transformed using PaperETL with the results stored as a local dataset via the Hugging Face Datasets library.biomedbert-small can be loaded using Hugging Face Transformers as follows.1from transformers import AutoModel
2
3model = AutoModel.from_pretrained("neuml/biomedbert-small")python run_glue.py --model_name_or_path neuml/biomedbert-small --dataset-name medclassify --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 1e-4 --num_train_epochs 4 --output_dir outputs --trust-remote-code Truemedclassify the the condition_label column renamed to label to work more easily with the glue script| Model | Parameters | Accuracy | Loss |
|---|---|---|---|
| biomedbert-hash-nano | 0.969M | 0.6195 | 0.9464 |
| biomedbert-small | 22.7M | 0.6274 | 0.8647 |
| bert-base-uncased | 110M | 0.6118 | 0.9712 |
| biomedbert-base | 110M | 0.6195 | 0.9037 |
| ModernBERT-base | 149M | 0.5672 | 1.1079 |
| BioClinical-ModernBERT-base | 149M | 0.5679 | 1.0915 |