google/xtreme
Viewer • Updated • 2.77M • 5.46k • 116
How to use lijingxin/xlm-roberta-base-finetuned-panx-en with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="lijingxin/xlm-roberta-base-finetuned-panx-en") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("lijingxin/xlm-roberta-base-finetuned-panx-en")
model = AutoModelForTokenClassification.from_pretrained("lijingxin/xlm-roberta-base-finetuned-panx-en", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("lijingxin/xlm-roberta-base-finetuned-panx-en")
model = AutoModelForTokenClassification.from_pretrained("lijingxin/xlm-roberta-base-finetuned-panx-en", device_map="auto")This model is a fine-tuned version of xlm-roberta-base on the xtreme 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 | F1 |
|---|---|---|---|---|
| 1.1472 | 1.0 | 50 | 0.5820 | 0.4600 |
| 0.5186 | 2.0 | 100 | 0.4105 | 0.6645 |
| 0.3599 | 3.0 | 150 | 0.3814 | 0.7043 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="lijingxin/xlm-roberta-base-finetuned-panx-en")