Text Classification
Transformers
PyTorch
TensorBoard
deberta-v2
Generated from Trainer
text-embeddings-inference
Instructions to use scales-okn/ontology-motion-to-certify-class with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use scales-okn/ontology-motion-to-certify-class with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="scales-okn/ontology-motion-to-certify-class")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("scales-okn/ontology-motion-to-certify-class") model = AutoModelForSequenceClassification.from_pretrained("scales-okn/ontology-motion-to-certify-class", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - accuracy | |
| - f1 | |
| - precision | |
| - recall | |
| model-index: | |
| - name: ontology-motion-to-certify-class | |
| results: [] | |
| license: gpl-3.0 | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # ontology-motion-to-certify-class | |
| This model is a fine-tuned version of [scales-okn/docket-language-model](https://huggingface.co/scales-okn/docket-language-model) on the None dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.0001 | |
| - Accuracy: 1.0 | |
| - F1: 1.0 | |
| - Precision: 1.0 | |
| - Recall: 1.0 | |
| ## 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: 4 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 2 | |
| - total_train_batch_size: 8 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - lr_scheduler_warmup_ratio: 0.06 | |
| - num_epochs: 5 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall | | |
| |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:| | |
| | 0.1561 | 0.98 | 100 | 0.0441 | 0.9853 | 0.9492 | 0.9333 | 0.9655 | | |
| | 0.0009 | 1.96 | 200 | 0.0303 | 0.9902 | 0.9643 | 1.0 | 0.9310 | | |
| | 0.0002 | 2.94 | 300 | 0.0002 | 1.0 | 1.0 | 1.0 | 1.0 | | |
| | 0.0002 | 3.92 | 400 | 0.0001 | 1.0 | 1.0 | 1.0 | 1.0 | | |
| | 0.0001 | 4.9 | 500 | 0.0001 | 1.0 | 1.0 | 1.0 | 1.0 | | |
| ### Framework versions | |
| - Transformers 4.19.2 | |
| - Pytorch 1.11.0+cu113 | |
| - Datasets 1.18.3 | |
| - Tokenizers 0.11.0 | |
| ## Public release information | |
| This model is released by the SCALES Open Knowledge Network under the GNU General | |
| Public License v3.0. It is derived from `scales-okn/docket-language-model` and is | |
| intended for research and development involving legal-document classification or | |
| information extraction. It is not legal advice. | |
| The organization has reviewed the release decision and confirmed that the model's | |
| training data and resulting weights are legally and ethically releasable. Users are | |
| responsible for evaluating accuracy, bias, privacy, and fitness for their own use. | |
| The repository includes PyTorch `.bin` artifacts. Hugging Face's server-side security | |
| scan reported no file issues before publication. As with any serialized model | |
| artifact, load it only with maintained libraries and in an appropriately isolated | |
| environment. | |