Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use Hemg/LLMGUARD-roberta-11 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hemg/LLMGUARD-roberta-11 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Hemg/LLMGUARD-roberta-11")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Hemg/LLMGUARD-roberta-11") model = AutoModelForSequenceClassification.from_pretrained("Hemg/LLMGUARD-roberta-11") - Notebooks
- Google Colab
- Kaggle
LLMGUARD-roberta-11
This model is a fine-tuned version of FacebookAI/roberta-base on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.6189
- Accuracy: 0.7964
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-06
- train_batch_size: 16
- eval_batch_size: 8
- 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
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 4
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.7894 | 1.0 | 1585 | 0.6954 | 0.7818 |
| 0.6249 | 2.0 | 3170 | 0.6336 | 0.7936 |
| 0.5562 | 3.0 | 4755 | 0.6232 | 0.7953 |
| 0.5416 | 4.0 | 6340 | 0.6189 | 0.7964 |
Framework versions
- Transformers 4.48.0.dev0
- Pytorch 2.5.1+cu124
- Datasets 3.2.0
- Tokenizers 0.21.0
- Downloads last month
- 3
Model tree for Hemg/LLMGUARD-roberta-11
Base model
FacebookAI/roberta-base