Text Classification
Transformers
TensorFlow
TensorBoard
Safetensors
longformer
Generated from Trainer
Instructions to use nathanReitinger/scotusPRED with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nathanReitinger/scotusPRED with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nathanReitinger/scotusPRED")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nathanReitinger/scotusPRED") model = AutoModelForSequenceClassification.from_pretrained("nathanReitinger/scotusPRED", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from nathanReitinger/scotusPRED: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/nathanReitinger/scotusPRED/resolve/main/README.md
- Command line
-
hf download hf://nathanReitinger/scotusPRED/README.md
-
curl -L -o README.md https://huggingface.co/nathanReitinger/scotusPRED/resolve/main/README.md
1.54 kB
metadata
license: apache-2.0
base_model: allenai/longformer-base-4096
tags:
- generated_from_trainer
metrics:
- accuracy
- f1
model-index:
- name: scotusPRED
results: []
scotusPRED
This model is a fine-tuned version of allenai/longformer-base-4096 on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.6335
- Accuracy: 0.6735
- F1: 0.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: 5e-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_steps: 200
- num_epochs: 1
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.6824 | 1.0 | 195 | 0.6335 | 0.6735 | 0.0 |
Framework versions
- Transformers 4.39.3
- Pytorch 2.2.2+cu121
- Datasets 2.18.0
- Tokenizers 0.15.2