Instructions to use songys/xlm-roberta-base-finetuned-panx-de-fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use songys/xlm-roberta-base-finetuned-panx-de-fr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="songys/xlm-roberta-base-finetuned-panx-de-fr")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("songys/xlm-roberta-base-finetuned-panx-de-fr") model = AutoModelForTokenClassification.from_pretrained("songys/xlm-roberta-base-finetuned-panx-de-fr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| license: mit | |
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - f1 | |
| base_model: xlm-roberta-base | |
| model-index: | |
| - name: xlm-roberta-base-finetuned-panx-de-fr | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # xlm-roberta-base-finetuned-panx-de-fr | |
| This model is a fine-tuned version of [xlm-roberta-base](https://huggingface.co/xlm-roberta-base) on the None dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.1584 | |
| - F1: 0.8579 | |
| ## 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: 5e-05 | |
| - train_batch_size: 32 | |
| - eval_batch_size: 32 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 3 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | F1 | | |
| |:-------------:|:-----:|:----:|:---------------:|:------:| | |
| | 0.2948 | 1.0 | 537 | 0.1778 | 0.8220 | | |
| | 0.1482 | 2.0 | 1074 | 0.1563 | 0.8493 | | |
| | 0.0985 | 3.0 | 1611 | 0.1584 | 0.8579 | | |
| ### Framework versions | |
| - Transformers 4.27.4 | |
| - Pytorch 2.0.0+cu118 | |
| - Datasets 2.11.0 | |
| - Tokenizers 0.13.3 | |