Downloads · 30 days
405
11% of all-time downloads
cnut1648/biolinkbert-mednli
biolinkbert-mednli is a text classification model from cnut1648. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
405
11% of all-time downloads
All-time downloads
3.8K
Public
Repo size
2.7 GB
Likes
0
Public
Click a slice to open those files.
.bin1.3 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of michiyasunaga/BioLinkBERT-large on MedNLI. It achieves the following results on the evaluation set:
{
"eval_accuracy": 0.8788530230522156,
"eval_loss": 0.7843484878540039,
"eval_runtime": 39.7009,
"eval_samples": 1395,
"eval_samples_per_second": 35.138,
"eval_steps_per_second": 1.108
}
The accuracy for the test set is
{
"eval_accuracy": 0.8607594966888428,
"eval_loss": 0.879707932472229,
"eval_runtime": 27.4404,
"eval_samples": 1395,
"eval_samples_per_second": 51.821,
"eval_steps_per_second": 1.64
}
The labels are
"id2label": {
"0": "entailment",
"1": "neutral",
"2": "contradiction"
},
This model checkpoint is made by mednli.py by the following command:
root=/path/to/mednli/;
python mednli.py \
--model_name_or_path michiyasunaga/BioLinkBERT-large \
--do_train --train_file ${root}/mli_train_v1.jsonl \
--do_eval --validation_file ${root}/mli_dev_v1.jsonl \
--do_predict --test_file ${root}/mli_test_v1.jsonl \
--max_seq_length 512 --fp16 --per_device_train_batch_size 16 --gradient_accumulation_steps 2 \
--learning_rate 3e-5 --warmup_ratio 0.5 --num_train_epochs 10 \
--output_dir ./biolinkbert_mednli
The following hyperparameters were used during training: