Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use Fazmaj/modernbert-flow-anomaly-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Fazmaj/modernbert-flow-anomaly-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Fazmaj/modernbert-flow-anomaly-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Fazmaj/modernbert-flow-anomaly-classifier") model = AutoModelForSequenceClassification.from_pretrained("Fazmaj/modernbert-flow-anomaly-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
modernbert-flow-anomaly-classifier
This model is a fine-tuned version of answerdotai/ModernBERT-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.0189
- Accuracy: 0.9941
- F1: 0.9935
- Precision: 0.9893
- Recall: 0.9980
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: 3e-05
- train_batch_size: 32
- eval_batch_size: 64
- 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: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.0089 | 1.0 | 1250 | 0.0173 | 0.9942 | 0.9936 | 0.9895 | 0.9980 |
| 0.0059 | 2.0 | 2500 | 0.0194 | 0.9942 | 0.9936 | 0.9894 | 0.9982 |
| 0.0232 | 3.0 | 3750 | 0.0189 | 0.9941 | 0.9935 | 0.9893 | 0.9980 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 5.0.0
- Tokenizers 0.22.2
- Downloads last month
- 17
Model tree for Fazmaj/modernbert-flow-anomaly-classifier
Base model
answerdotai/ModernBERT-base