Instructions to use 3huvan/inlegalbertbackup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 3huvan/inlegalbertbackup with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="3huvan/inlegalbertbackup")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("3huvan/inlegalbertbackup") model = AutoModelForSequenceClassification.from_pretrained("3huvan/inlegalbertbackup") - Notebooks
- Google Colab
- Kaggle
inlegalbert
This model is a fine-tuned version of law-ai/InLegalBERT on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.9421
- Macro F1: 0.7250
- Weighted F1: 0.7122
- Accuracy: 0.7115
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
- lr_scheduler_warmup_steps: 500
- num_epochs: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Macro F1 | Weighted F1 | Accuracy |
|---|---|---|---|---|---|---|
| 1.1353 | 1.0 | 1033 | 1.0279 | 0.6474 | 0.6633 | 0.6639 |
| 0.8496 | 2.0 | 2066 | 0.9001 | 0.6950 | 0.6926 | 0.6921 |
| 0.6278 | 3.0 | 3099 | 0.8716 | 0.7131 | 0.7026 | 0.7033 |
| 0.4837 | 4.0 | 4132 | 0.8955 | 0.7247 | 0.7071 | 0.7068 |
| 0.3742 | 5.0 | 5165 | 0.9421 | 0.7250 | 0.7122 | 0.7115 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.8.3
- Tokenizers 0.22.2
- Downloads last month
- 200
Model tree for 3huvan/inlegalbertbackup
Base model
law-ai/InLegalBERT