Instructions to use cheralathan-m/cross-lingual-srl-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cheralathan-m/cross-lingual-srl-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="cheralathan-m/cross-lingual-srl-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("cheralathan-m/cross-lingual-srl-v2") model = AutoModelForTokenClassification.from_pretrained("cheralathan-m/cross-lingual-srl-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
cross-lingual-srl-v2
This model is a fine-tuned version of xlm-roberta-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.2262
- Precision: 0.8756
- Recall: 0.8678
- F1: 0.8717
- Accuracy: 0.9688
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: 32
- 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
- lr_scheduler_warmup_steps: 0.1
- num_epochs: 15
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.3491 | 1.0 | 784 | 0.3075 | 0.7443 | 0.6885 | 0.7153 | 0.9269 |
| 0.1795 | 2.0 | 1568 | 0.1831 | 0.8320 | 0.7956 | 0.8134 | 0.9534 |
| 0.1304 | 3.0 | 2352 | 0.1582 | 0.8199 | 0.8497 | 0.8346 | 0.9591 |
| 0.0898 | 4.0 | 3136 | 0.1450 | 0.8592 | 0.8543 | 0.8567 | 0.9657 |
| 0.0771 | 5.0 | 3920 | 0.1517 | 0.8549 | 0.8584 | 0.8567 | 0.9651 |
| 0.0481 | 6.0 | 4704 | 0.1616 | 0.8654 | 0.8601 | 0.8628 | 0.9667 |
| 0.0392 | 7.0 | 5488 | 0.1638 | 0.8731 | 0.8579 | 0.8654 | 0.9678 |
| 0.0315 | 8.0 | 6272 | 0.1819 | 0.8509 | 0.8704 | 0.8605 | 0.9657 |
| 0.0251 | 9.0 | 7056 | 0.1848 | 0.8656 | 0.8605 | 0.8631 | 0.9667 |
| 0.0182 | 10.0 | 7840 | 0.1937 | 0.8687 | 0.8630 | 0.8659 | 0.9676 |
| 0.0205 | 11.0 | 8624 | 0.2002 | 0.8628 | 0.8653 | 0.8640 | 0.9672 |
| 0.0130 | 12.0 | 9408 | 0.2126 | 0.8610 | 0.8707 | 0.8658 | 0.9675 |
| 0.0093 | 13.0 | 10192 | 0.2185 | 0.8623 | 0.8690 | 0.8657 | 0.9675 |
| 0.0113 | 14.0 | 10976 | 0.2173 | 0.8683 | 0.8681 | 0.8682 | 0.9681 |
| 0.0078 | 15.0 | 11760 | 0.2183 | 0.8697 | 0.8668 | 0.8682 | 0.9683 |
Framework versions
- Transformers 5.2.0
- Pytorch 2.9.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 11