ncbi/ncbi_disease
Updated • 9.66k • 57
How to use kwoniris/gpt2gipgpt-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="kwoniris/gpt2gipgpt-finetuned-ner") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("kwoniris/gpt2gipgpt-finetuned-ner")
model = AutoModelForTokenClassification.from_pretrained("kwoniris/gpt2gipgpt-finetuned-ner", device_map="auto")This model is a fine-tuned version of microsoft/biogpt on the ncbi_disease dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.1855 | 1.0 | 680 | 0.1778 | 0.3077 | 0.4066 | 0.3503 | 0.9440 |
| 0.1373 | 2.0 | 1360 | 0.1537 | 0.3696 | 0.4790 | 0.4173 | 0.9536 |
| 0.1274 | 3.0 | 2040 | 0.1516 | 0.4178 | 0.5489 | 0.4745 | 0.9558 |
Base model
microsoft/biogpt