stanfordnlp/imdb
Viewer โข Updated โข 100k โข 162k โข 962
How to use nosnelmil/GPT2-CompareTransformers-Imdb with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="nosnelmil/GPT2-CompareTransformers-Imdb") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("nosnelmil/GPT2-CompareTransformers-Imdb")
model = AutoModelForSequenceClassification.from_pretrained("nosnelmil/GPT2-CompareTransformers-Imdb", device_map="auto")This model is a fine-tuned version of gpt2 on the imdb dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Accuracy | Auroc | F1 | Validation Loss | Precision | Recall |
|---|---|---|---|---|---|---|---|---|
| 0.1436 | 0.46 | 500 | 0.8935 | 0.9751 | 0.8935 | 0.2923 | 0.8935 | 0.8935 |
| 0.1621 | 0.91 | 1000 | 0.9261 | 0.9789 | 0.9261 | 0.1984 | 0.9261 | 0.9261 |
| 0.2196 | 1.37 | 1500 | 0.9289 | 0.9810 | 0.9289 | 0.2082 | 0.9289 | 0.9289 |
| 0.1457 | 1.83 | 2000 | 0.9325 | 0.9816 | 0.9325 | 0.2282 | 0.9325 | 0.9325 |
| 0.1103 | 2.29 | 2500 | 0.9305 | 0.9806 | 0.9305 | 0.3201 | 0.9305 | 0.9305 |
| 0.0679 | 2.74 | 3000 | 0.2797 | 0.9331 | 0.9331 | 0.9331 | 0.9331 | 0.9810 |
Base model
openai-community/gpt2