Instructions to use raulgdp/xlnet-base-cased-tweets-2025-II with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use raulgdp/xlnet-base-cased-tweets-2025-II with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="raulgdp/xlnet-base-cased-tweets-2025-II")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("raulgdp/xlnet-base-cased-tweets-2025-II") model = AutoModelForSequenceClassification.from_pretrained("raulgdp/xlnet-base-cased-tweets-2025-II", device_map="auto") - Notebooks
- Google Colab
- Kaggle
xlnet-base-cased-tweets-2025-II
This model is a fine-tuned version of xlnet-base-cased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.3074
- Accuracy: 0.9419
- F1: 0.9660
- Precision: 0.9627
- Recall: 0.9694
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: 16
- eval_batch_size: 8
- 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: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.2338 | 1.0 | 642 | 0.2690 | 0.8975 | 0.9428 | 0.8981 | 0.9922 |
| 0.1763 | 2.0 | 1284 | 0.1697 | 0.9279 | 0.9573 | 0.9656 | 0.9492 |
| 0.1233 | 3.0 | 1926 | 0.2660 | 0.9337 | 0.9612 | 0.9582 | 0.9643 |
| 0.0853 | 4.0 | 2568 | 0.2453 | 0.9423 | 0.9663 | 0.9628 | 0.9698 |
| 0.0507 | 5.0 | 3210 | 0.3074 | 0.9419 | 0.9660 | 0.9627 | 0.9694 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.8.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 4
Model tree for raulgdp/xlnet-base-cased-tweets-2025-II
Base model
xlnet/xlnet-base-cased