Instructions to use davanstrien/jim-crow-laws-ml-agent-kimi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use davanstrien/jim-crow-laws-ml-agent-kimi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="davanstrien/jim-crow-laws-ml-agent-kimi")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("davanstrien/jim-crow-laws-ml-agent-kimi") model = AutoModelForSequenceClassification.from_pretrained("davanstrien/jim-crow-laws-ml-agent-kimi") - Notebooks
- Google Colab
- Kaggle
jim-crow-laws-ml-agent-kimi
This model is a fine-tuned version of nlpaueb/legal-bert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.1414
- Accuracy: 0.9748
- F1: 0.9561
- Precision: 0.9515
- Recall: 0.9608
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: 16
- eval_batch_size: 16
- 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: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.1498 | 1.0 | 90 | 0.1746 | 0.9440 | 0.9020 | 0.9020 | 0.9020 |
| 0.1164 | 2.0 | 180 | 0.1509 | 0.9664 | 0.9412 | 0.9412 | 0.9412 |
| 0.0377 | 3.0 | 270 | 0.1247 | 0.9720 | 0.95 | 0.9694 | 0.9314 |
| 0.0504 | 4.0 | 360 | 0.1547 | 0.9664 | 0.9423 | 0.9245 | 0.9608 |
| 0.0442 | 5.0 | 450 | 0.1414 | 0.9748 | 0.9561 | 0.9515 | 0.9608 |
Framework versions
- Transformers 5.7.0
- Pytorch 2.11.0+cu130
- Datasets 4.8.5
- Tokenizers 0.22.2
- Downloads last month
- 69
Model tree for davanstrien/jim-crow-laws-ml-agent-kimi
Base model
nlpaueb/legal-bert-base-uncased