Instructions to use IndranilB/MiniLM-L12-H384-legal-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IndranilB/MiniLM-L12-H384-legal-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="IndranilB/MiniLM-L12-H384-legal-classification")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("IndranilB/MiniLM-L12-H384-legal-classification") model = AutoModelForSequenceClassification.from_pretrained("IndranilB/MiniLM-L12-H384-legal-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
MiniLM-L12-H384-legal-classification
This model is a fine-tuned version of microsoft/MiniLM-L12-H384-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 3.9404
- Accuracy: 0.4945
- Micro F1: 0.4945
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: 128
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 256
- 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
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Micro F1 |
|---|---|---|---|---|---|
| 9.1142 | 1.0 | 159 | 4.4392 | 0.3690 | 0.3690 |
| 8.3566 | 2.0 | 318 | 4.0737 | 0.4793 | 0.4793 |
| 7.9217 | 3.0 | 477 | 3.9404 | 0.4945 | 0.4945 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 5.0.0
- Tokenizers 0.22.2
- Downloads last month
- 75
Model tree for IndranilB/MiniLM-L12-H384-legal-classification
Base model
microsoft/MiniLM-L12-H384-uncased