Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use ubffm/xlm_roberta_large_linsearch_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ubffm/xlm_roberta_large_linsearch_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ubffm/xlm_roberta_large_linsearch_classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ubffm/xlm_roberta_large_linsearch_classification") model = AutoModelForSequenceClassification.from_pretrained("ubffm/xlm_roberta_large_linsearch_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,18 +15,24 @@ model-index:
|
|
| 15 |
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
|
| 17 |
# xlm_roberta_large_linsearch_classification
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
This model is a fine-tuned version of [FacebookAI/xlm-roberta-large](https://huggingface.co/FacebookAI/xlm-roberta-large) on
|
| 20 |
-
It achieves the following results on the evaluation set:
|
| 21 |
- Loss: 1.3318
|
| 22 |
- Accuracy: 0.5931
|
| 23 |
- F1 Macro: 0.5650
|
| 24 |
- Precision Macro: 0.5755
|
| 25 |
- Recall Macro: 0.5602
|
| 26 |
|
|
|
|
|
|
|
| 27 |
## Model description
|
| 28 |
|
| 29 |
-
|
|
|
|
| 30 |
|
| 31 |
## Intended uses & limitations
|
| 32 |
|
|
@@ -75,3 +81,13 @@ The following hyperparameters were used during training:
|
|
| 75 |
- Pytorch 2.5.1+cu124
|
| 76 |
- Datasets 3.2.0
|
| 77 |
- Tokenizers 0.21.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
|
| 17 |
# xlm_roberta_large_linsearch_classification
|
| 18 |
+
This model is an attempt at the shared task LLMs4Subjects (https://sites.google.com/view/llms4subjects-germeval/home) for Subtask 1, to classify German and English documents with the LinSearch subject domain labels which has 28 labels.
|
| 19 |
+
The task is a multi-class multi-label multilingual classification task, on the TIBKAT dataset (more about the TIBKAT dataset TIB Open Data Services: https://www.tib.eu/en/services/open-data).
|
| 20 |
+
The model has received the 1st place for the subtask, with a macro F1 score of 0.653 on the test set evaluated by the organisers on CodaBench (https://www.codabench.org/competitions/8373/#/results-tab).
|
| 21 |
|
| 22 |
+
This model is a fine-tuned version of [FacebookAI/xlm-roberta-large](https://huggingface.co/FacebookAI/xlm-roberta-large) on the TIBKAT dataset provided by organisers of the shared task.
|
| 23 |
+
It achieves the following results on the evaluation set: (automatically generated from the fine-tuning process)
|
| 24 |
- Loss: 1.3318
|
| 25 |
- Accuracy: 0.5931
|
| 26 |
- F1 Macro: 0.5650
|
| 27 |
- Precision Macro: 0.5755
|
| 28 |
- Recall Macro: 0.5602
|
| 29 |
|
| 30 |
+
* The model has better performance on the test set than the eval set during training becuase the model here only takes one gold label instead of multiple for evaluation.
|
| 31 |
+
|
| 32 |
## Model description
|
| 33 |
|
| 34 |
+
The model is fine-tuned to classify documents into 28 predefined domains according to the LinSearch domain-specific taxonomy (more about the Fachsystematik LinSearch domains: https://terminology.tib.eu/ts/ontologies/linsearch).
|
| 35 |
+
|
| 36 |
|
| 37 |
## Intended uses & limitations
|
| 38 |
|
|
|
|
| 81 |
- Pytorch 2.5.1+cu124
|
| 82 |
- Datasets 3.2.0
|
| 83 |
- Tokenizers 0.21.0
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
## Contact and Citation
|
| 87 |
+
|
| 88 |
+
@misc{ubffm/xlm_roberta_large_linsearch_classification,
|
| 89 |
+
title={xlm_roberta_large_linsearch_classification},
|
| 90 |
+
author={UBFFM},
|
| 91 |
+
year={2025},
|
| 92 |
+
howpublished={\url{https://huggingface.co/ubffm/xlm_roberta_large_linsearch_classification/}},
|
| 93 |
+
}
|