Downloads · 30 days
21
1% of all-time downloads
cglez/gpt2-ag_news
gpt2-ag_news is a text generation model from cglez. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
An in-domain GPT-2, pre-trained from scratch on the AG-News dataset texts.
Downloads · 30 days
21
1% of all-time downloads
All-time downloads
1.8K
Public
Parameters
124M
6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 99%
From the Hugging Face model README
An in-domain GPT-2, pre-trained from scratch on the AG-News dataset texts.
This model is based on the GPT-2 architecture and was pre-trained from scratch (in-domain) using the text in AG-News dataset, excluding its test split.
Intermediate checkpoints from the pre-training process are available and can be accessed using specific tags, which correspond to training epochs and steps:
| Epoch | Step | Tags | |
|---|---|---|---|
| 1 | 1125 | epoch-1 | step-1125 |
| 5 | 5625 | epoch-5 | step-5625 |
| 10 | 11250 | epoch-10 | step-11250 |
| 20 | 22500 | epoch-20 | step-22500 |
| 30 | 33750 | epoch-30 | step-33750 |
| 40 | 45000 | epoch-40 | step-45000 |
| 50 | 56250 | epoch-50 | step-56250 |
| 60 | 67500 | epoch-60 | step-67500 |
| 70 | 78750 | epoch-70 | step-78750 |
| 80 | 90000 | epoch-80 | step-90000 |
| 90 | 101250 | epoch-90 | step-101250 |
| 100 | 112500 | epoch-100 | step-112500 |
To load a model from a specific intermediate checkpoint, use the revision parameter with the corresponding tag:
from transformers import AutoModelForCausalLM
model = AutoModelForMaskedLM.from_pretrained("<model-name>", revision="<checkpoint-tag>")
For more details on the training procedure, please refer to the base model's documentation: Training procedure.
All texts from AG-News dataset, excluding the test partition.
For typical use cases and limitations, please refer to the base model's guidance: Inteded uses & limitations.
This model inherits potential risks and limitations from the base model. Refer to: Limitations and bias.
BibTeX:
[More Information Needed]