Downloads · 30 days
99
4% of all-time downloads
EMBO/bio-lm
bio-lm is a fill-mask model from EMBO. Use it when you need the model to fill a missing word. It is set up for transformers.
This model is a RoBERTa base pre-trained model that was further trained using a masked language modeling task on a compendium of english scientific textual examples from the life sciences using the BioLang dataset.
Downloads · 30 days
99
4% of all-time downloads
All-time downloads
2.7K
Public
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.bin499 MB · 50%
From the Hugging Face model README
This model is a RoBERTa base pre-trained model that was further trained using a masked language modeling task on a compendium of english scientific textual examples from the life sciences using the BioLang dataset.
The intended use of this model is to be fine-tuned for downstream tasks, token classification in particular.
To have a quick check of the model as-is in a fill-mask task:
from transformers import pipeline, RobertaTokenizerFast
tokenizer = RobertaTokenizerFast.from_pretrained('roberta-base', max_len=512)
text = "Let us try this model to see if it <mask>."
fill_mask = pipeline(
"fill-mask",
model='EMBO/bio-lm',
tokenizer=tokenizer
)
fill_mask(text)
This model should be fine-tuned on a specifi task like token classification.
The model must be used with the roberta-base tokenizer.
The model was trained with a masked language modeling taskon the BioLang dataset wich includes 12Mio examples from abstracts and figure legends extracted from papers published in life sciences.
The training was run on a NVIDIA DGX Station with 4XTesla V100 GPUs.
Training code is available at https://github.com/source-data/soda-roberta
python -m lm.train /data/json/oapmc_abstracts_figs/ MLMper_device_train_batch_size: 16per_device_eval_batch_size: 16learning_rate: 5e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0End of training:
trainset: 'loss': 0.8653350830078125
validation set: 'eval_loss': 0.8192330598831177, 'eval_recall': 0.8154601116513597
Eval on test set:
recall: 0.814471959728645