Text Classification
Transformers
TensorBoard
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use AnonymousCS/xlmr_norwegian_immigration1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnonymousCS/xlmr_norwegian_immigration1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AnonymousCS/xlmr_norwegian_immigration1")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AnonymousCS/xlmr_norwegian_immigration1") model = AutoModelForSequenceClassification.from_pretrained("AnonymousCS/xlmr_norwegian_immigration1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
xlmr_norwegian_immigration1
This model is a fine-tuned version of FacebookAI/xlm-roberta-large on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.3344
- Accuracy: 0.9077
- 1-f1: 0.8462
- 1-recall: 0.7674
- 1-precision: 0.9429
- Balanced Acc: 0.8722
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: 1e-05
- train_batch_size: 128
- eval_batch_size: 128
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 30
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | 1-f1 | 1-recall | 1-precision | Balanced Acc |
|---|---|---|---|---|---|---|---|---|
| 0.2895 | 1.0 | 5 | 0.2924 | 0.9077 | 0.85 | 0.7907 | 0.9189 | 0.8781 |
| 0.1248 | 2.0 | 10 | 0.2908 | 0.9077 | 0.8462 | 0.7674 | 0.9429 | 0.8722 |
| 0.1258 | 3.0 | 15 | 0.2939 | 0.9 | 0.8354 | 0.7674 | 0.9167 | 0.8665 |
| 0.25 | 4.0 | 20 | 0.3344 | 0.9077 | 0.8462 | 0.7674 | 0.9429 | 0.8722 |
Framework versions
- Transformers 4.56.0.dev0
- Pytorch 2.6.0+cu124
- Datasets 4.0.0
- Tokenizers 0.21.4
- Downloads last month
- 3
Model tree for AnonymousCS/xlmr_norwegian_immigration1
Base model
FacebookAI/xlm-roberta-large