Downloads · 30 days
12
2% of all-time downloads
brooksideas/gpt-2-finetuned-wikitext2
gpt-2-finetuned-wikitext2 is a text generation model from brooksideas. 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.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
12
2% of all-time downloads
All-time downloads
500
Public
Parameters
124M
5.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of openai-community/gpt2 on an unknown dataset. It achieves the following results on the evaluation set:
This language model is built on the GPT-2 architecture provided by OpenAI. The tokenizer utilized for preprocessing text data is OpenAI's tikToken. For more details on tikToken, you can refer to the official GitHub repository.
To interactively explore the functionality and behavior of the tikToken tokenizer, you can use the tikToken interactive website. This website allows you to quickly visualize the tokenization process and understand how the tokenizer segments input text into tokens.
The model checkpoint used in this implementation is sourced from the OpenAI community and is based on the GPT-2 architecture. You can find the specific model checkpoint at the following Hugging Face Model Hub link: openai-community/gpt2.
The model was trained for a total of 3 epochs on the provided dataset. This information reflects the number of times the entire training dataset was processed during the training phase. Training for a specific number of epochs helps control the duration and scope of the model's learning process.
For evaluating the model's performance, the training script utilized an evaluation dataset.
After training, the model's performance was assessed using the evaluation dataset. The perplexity, a common metric for language modeling tasks was Perplexity: 29.74
eval_results = trainer.evaluate()
print(f"Perplexity: {math.exp(eval_results['eval_loss']):.2f}")
>>> Perplexity : 29.74
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 3.4934 | 1.0 | 2334 | 3.4145 |
| 3.3567 | 2.0 | 4668 | 3.3953 |
| 3.2968 | 3.0 | 7002 | 3.3924 |