Instructions to use RROMEROS/langid-ner-xlm-v-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RROMEROS/langid-ner-xlm-v-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="RROMEROS/langid-ner-xlm-v-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("RROMEROS/langid-ner-xlm-v-base") model = AutoModelForTokenClassification.from_pretrained("RROMEROS/langid-ner-xlm-v-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
langid-ner-xlm-v-base
This model is a fine-tuned version of facebook/xlm-v-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.4498
- Precision: 0.7820
- Recall: 0.7727
- F1: 0.7773
- Accuracy: 0.8943
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: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 72 | 1.3609 | 0.5928 | 0.5252 | 0.5569 | 0.6059 |
| No log | 2.0 | 144 | 0.9128 | 0.6267 | 0.5789 | 0.6018 | 0.7886 |
| No log | 3.0 | 216 | 0.7617 | 0.6605 | 0.6300 | 0.6449 | 0.8080 |
| No log | 4.0 | 288 | 0.6480 | 0.6622 | 0.7005 | 0.6808 | 0.8595 |
| No log | 5.0 | 360 | 0.5927 | 0.7362 | 0.7374 | 0.7368 | 0.8705 |
| No log | 6.0 | 432 | 0.5633 | 0.7379 | 0.7391 | 0.7385 | 0.8729 |
| 0.9244 | 7.0 | 504 | 0.5320 | 0.7410 | 0.7466 | 0.7438 | 0.8765 |
| 0.9244 | 8.0 | 576 | 0.5097 | 0.7490 | 0.7534 | 0.7512 | 0.8789 |
| 0.9244 | 9.0 | 648 | 0.5045 | 0.7490 | 0.7534 | 0.7512 | 0.8789 |
| 0.9244 | 10.0 | 720 | 0.4997 | 0.7502 | 0.7534 | 0.7518 | 0.8786 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.8.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 8
Model tree for RROMEROS/langid-ner-xlm-v-base
Base model
facebook/xlm-v-base