Instructions to use CaffeineThief/cysecbert-sentence-ttp_classifi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CaffeineThief/cysecbert-sentence-ttp_classifi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CaffeineThief/cysecbert-sentence-ttp_classifi")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("CaffeineThief/cysecbert-sentence-ttp_classifi") model = AutoModelForSequenceClassification.from_pretrained("CaffeineThief/cysecbert-sentence-ttp_classifi") - Notebooks
- Google Colab
- Kaggle
cysecbert-sentence-ttp_classifi
This model is a fine-tuned version of markusbayer/CySecBERT on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.0150
- F1 Micro: 0.9963
- F1 Macro: 0.9960
- Precision: 0.9968
- Recall: 0.9959
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 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: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | F1 Micro | F1 Macro | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.1078 | 1.0 | 864 | 0.0776 | 0.9919 | 0.9912 | 0.9942 | 0.9895 |
| 0.0434 | 2.0 | 1728 | 0.0301 | 0.9953 | 0.9949 | 0.9962 | 0.9944 |
| 0.0228 | 3.0 | 2592 | 0.0199 | 0.9964 | 0.9961 | 0.9969 | 0.9959 |
| 0.0149 | 4.0 | 3456 | 0.0164 | 0.9962 | 0.9959 | 0.9969 | 0.9955 |
| 0.0126 | 5.0 | 4320 | 0.0150 | 0.9963 | 0.9960 | 0.9968 | 0.9959 |
Framework versions
- Transformers 4.57.5
- Pytorch 2.2.0
- Datasets 4.5.0
- Tokenizers 0.22.2
- Downloads last month
- 2
Model tree for CaffeineThief/cysecbert-sentence-ttp_classifi
Base model
markusbayer/CySecBERT