leondz/wnut_17
Updated • 2.19k • 19
How to use blambert/test_wnut_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="blambert/test_wnut_model") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("blambert/test_wnut_model")
model = AutoModelForTokenClassification.from_pretrained("blambert/test_wnut_model", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("blambert/test_wnut_model")
model = AutoModelForTokenClassification.from_pretrained("blambert/test_wnut_model", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on the wnut_17 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.3664 | 1.0 | 566 | 0.3082 | 0.4777 | 0.1687 | 0.2493 | 0.9354 |
| 0.1672 | 2.0 | 1132 | 0.2867 | 0.5395 | 0.3105 | 0.3941 | 0.9407 |
| 0.1265 | 3.0 | 1698 | 0.3171 | 0.5976 | 0.2753 | 0.3769 | 0.9413 |
| 0.116 | 4.0 | 2264 | 0.2914 | 0.5712 | 0.3420 | 0.4278 | 0.9431 |
| 0.0974 | 5.0 | 2830 | 0.2816 | 0.5219 | 0.3540 | 0.4219 | 0.9427 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="blambert/test_wnut_model")