Downloads · 30 days
14
3% of all-time downloads
baotoan2002/GPT-2
GPT-2 is a text generation model from baotoan2002. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as openrail.
This repository provides an example of how to use the GPT-2 language model in Hugging Face for story generation tasks. GPT-2 is a powerful natural language processing model that can generate human-like text, and Huggi…
Downloads · 30 days
14
3% of all-time downloads
All-time downloads
478
Public
Repo size
4.1 GB
Likes
1
Public
Click a slice to open those files.
.bin498 MB · 100%
From the Hugging Face model README
This repository provides an example of how to use the GPT-2 language model in Hugging Face for story generation tasks. GPT-2 is a powerful natural language processing model that can generate human-like text, and Hugging Face is a popular open-source library for working with NLP models.
https://github.com/BaoToan1704/Deep-Learning/Final%20Projectcd Final Projectpip install -r requirements.txtpython download_model.pyGpt_2_to_generate_stories.ipynb file to include your desired prompt and generate settings.Gpt_2_to_generate_stories.ipynb file to generate text: python Gpt_2_to_generate_stories.ipynbYou can customize the GPT-2 model and the text generation settings by editing the Gpt_2_to_generate_stories.ipynb file. For example, you can change the prompt text, the number of tokens to generate, the temperature setting for the model, and more.
https://github.com/huggingface/transformershttps://huggingface.co/baotoan2002/GPT-2https://openai.com/models/gpt-2/This repository is licensed under the [openrail] License. See the LICENSE file for details.