leondz/wnut_17
Updated โข 3.16k โข 19
How to use mami99/my_first_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="mami99/my_first_model") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("mami99/my_first_model")
model = AutoModelForTokenClassification.from_pretrained("mami99/my_first_model", device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("mami99/my_first_model")
model = AutoModelForTokenClassification.from_pretrained("mami99/my_first_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 |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 213 | 0.2772 | 0.6181 | 0.2595 | 0.3655 | 0.9395 |
| No log | 2.0 | 426 | 0.2670 | 0.5806 | 0.3003 | 0.3958 | 0.9417 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="mami99/my_first_model")