Instructions to use 3huvan/inlegalbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 3huvan/inlegalbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="3huvan/inlegalbert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("3huvan/inlegalbert") model = AutoModelForSequenceClassification.from_pretrained("3huvan/inlegalbert") - 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: 1.4971
- Macro F1: 0.5043
- Weighted F1: 0.6434
- Accuracy: 0.6488
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.0356 | 1.0 | 1113 | 1.1943 | 0.5167 | 0.6408 | 0.6332 |
| 0.7249 | 2.0 | 2226 | 1.1684 | 0.5136 | 0.6424 | 0.6436 |
| 0.5547 | 3.0 | 3339 | 1.2838 | 0.5227 | 0.6503 | 0.6450 |
| 0.4140 | 4.0 | 4452 | 1.4099 | 0.5170 | 0.6495 | 0.6491 |
| 0.2939 | 5.0 | 5565 | 1.4971 | 0.5043 | 0.6434 | 0.6488 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.8.3
- Tokenizers 0.22.2
- Downloads last month
- 73
Model tree for 3huvan/inlegalbert
Base model
law-ai/InLegalBERT