Run this model with HF Jobs
Run Lediona/BioBERT-finetuned-ner on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Lediona/BioBERT-finetuned-ner. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Lediona/BioBERT-finetuned-ner on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Lediona/BioBERT-finetuned-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lediona/BioBERT-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Lediona/BioBERT-finetuned-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Lediona/BioBERT-finetuned-ner") model = AutoModelForTokenClassification.from_pretrained("Lediona/BioBERT-finetuned-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download README.md from Lediona/BioBERT-finetuned-ner: direct link, hf CLI and curl.
- Browser
- Download file 2.19 kB
-
https://huggingface.co/Lediona/BioBERT-finetuned-ner/resolve/main/README.md
- Command line
-
hf download hf://Lediona/BioBERT-finetuned-ner/README.md
-
curl -L -o README.md https://huggingface.co/Lediona/BioBERT-finetuned-ner/resolve/main/README.md
library_name: transformers
base_model: Dinithi/BioBERT
tags:
- generated_from_trainer
metrics:
- precision
- recall
- f1
- accuracy
model-index:
- name: BioBERT-finetuned-ner
results: []
This is a BioBERT-based model is fine-tuned to perform Named Entity Recognition for drug names and adverse drug effects.
This model classifies input tokens into one of five classes:
B-DRUG: beginning of a drug entity I-DRUG: within a drug entity B-EFFECT: beginning of an AE entity I-EFFECT: within an AE entity O: outside either of the above entities
BioBERT-finetuned-ner
This model is a fine-tuned version of Dinithi/BioBERT on ade_corpus_v2. It achieves the following results on the evaluation set:
- Loss: 0.1602
- Precision: 0.8136
- Recall: 0.8961
- F1: 0.8528
- Accuracy: 0.9524
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 1e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.1673 | 1.0 | 113 | 0.2197 | 0.7545 | 0.8573 | 0.8027 | 0.9334 |
| 0.174 | 2.0 | 226 | 0.1691 | 0.7820 | 0.8870 | 0.8312 | 0.9472 |
| 0.1832 | 3.0 | 339 | 0.1596 | 0.8043 | 0.8915 | 0.8457 | 0.9506 |
| 0.0327 | 4.0 | 452 | 0.1591 | 0.8068 | 0.8980 | 0.8500 | 0.9526 |
| 0.036 | 5.0 | 565 | 0.1602 | 0.8136 | 0.8961 | 0.8528 | 0.9524 |
Framework versions
- Transformers 4.46.2
- Pytorch 2.5.1+cu121
- Tokenizers 0.20.3