Generate Blog Posts with GPT2 & Hugging Face Transformers | AI Text Generation GPT2-Large
Writing blog posts and emails can be tough at the best of times.
TBH, some days just writing anything can be a struggle
I mean, right now, I'm struggling to write this description 😅
There's got to be a better way right?
Well, there is. Using the amazing AI power of GPT2 and Python you can generate your own blog posts using a technique called Text Generation. This can be extended out to a whole heap of different use cases, it could be used to write emails, poems, code. You name it, you could probably do it.
In this case, we're focused on blog posts though. You'll be able to pass through a simple sentence and have a whole chunk of text output that you can then use on your blog!
In this video, you'll learn how to:
1. Setting up Hugging Face Transformers to use GPT2-Large
2. Loading the GPT2 Model and Tokenizer
3. Encoding text into token format
4. Generating text using the GPT2 Model
5. Decoding output to generate blog posts
Get the code: https://github.com/nicknochnack/Generating-Blog-Posts-with-GPT-2-Large
Chapters:
0:00 - Start
3:34 - Installing Hugging Face Transformers with Python
4:03 - Importing GPT2
5:23 - Loading the GPT2-Large Model and Tokenizer
8:39 - Tokenizing Sentences for AI Text Generation
10:57 - Generating Text using GPT2-Large
11:50 - Decoding Generated Text
14:13 - Outputting Results to .txt files
16:11 - Generating Longer Blog Posts
Oh, and don't forget to connect with me!
LinkedIn: https://www.linkedin.com/in/nicholasrenotte
Facebook: https://www.facebook.com/nickrenotte/
GitHub: https://github.com/nicknochnack
Patreon: https://www.patreon.com/nicholasrenotte
Join the Discussion on Discord: https://discord.gg/mtTTwYkB29
Happy coding!
Nick
P.s. Let me know how you go and drop a comment if you need a hand!
Видео Generate Blog Posts with GPT2 & Hugging Face Transformers | AI Text Generation GPT2-Large канала Nicholas Renotte
TBH, some days just writing anything can be a struggle
I mean, right now, I'm struggling to write this description 😅
There's got to be a better way right?
Well, there is. Using the amazing AI power of GPT2 and Python you can generate your own blog posts using a technique called Text Generation. This can be extended out to a whole heap of different use cases, it could be used to write emails, poems, code. You name it, you could probably do it.
In this case, we're focused on blog posts though. You'll be able to pass through a simple sentence and have a whole chunk of text output that you can then use on your blog!
In this video, you'll learn how to:
1. Setting up Hugging Face Transformers to use GPT2-Large
2. Loading the GPT2 Model and Tokenizer
3. Encoding text into token format
4. Generating text using the GPT2 Model
5. Decoding output to generate blog posts
Get the code: https://github.com/nicknochnack/Generating-Blog-Posts-with-GPT-2-Large
Chapters:
0:00 - Start
3:34 - Installing Hugging Face Transformers with Python
4:03 - Importing GPT2
5:23 - Loading the GPT2-Large Model and Tokenizer
8:39 - Tokenizing Sentences for AI Text Generation
10:57 - Generating Text using GPT2-Large
11:50 - Decoding Generated Text
14:13 - Outputting Results to .txt files
16:11 - Generating Longer Blog Posts
Oh, and don't forget to connect with me!
LinkedIn: https://www.linkedin.com/in/nicholasrenotte
Facebook: https://www.facebook.com/nickrenotte/
GitHub: https://github.com/nicknochnack
Patreon: https://www.patreon.com/nicholasrenotte
Join the Discussion on Discord: https://discord.gg/mtTTwYkB29
Happy coding!
Nick
P.s. Let me know how you go and drop a comment if you need a hand!
Видео Generate Blog Posts with GPT2 & Hugging Face Transformers | AI Text Generation GPT2-Large канала Nicholas Renotte
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
AI Text and Code Generation with GPT Neo and Python | GPT3 CloneAI Blog Post Summarization with Hugging Face Transformers & Beautiful Soup Web ScrapingThe ONE weird technique I used to learn DATA SCIENCE in 3 monthsAI Language Models & Transformers - ComputerphileAsking a POLYGLOT How to Learn a Language From SCRATCH ft. @Steve Kaufmann - lingosteveTensorflow Tutorial for Python in 10 MinutesMy Video Got 2 Companies Shut Down! (And even worse negative ion products)AI Text Summarization with Hugging Face Transformers in 4 Lines of Python9 Cool Startups Powered by GPT-3Reinforcement Learning in 3 Hours | Full Course using PythonI used the GPT-2 AI to respond to my YouTube commentsTranscribe Video to Text with Python and Watson in 15 MinutesFine-tuning GPT Neo 2.7B and 1.3BHow To Make Spot Welder Using old Microwave TransformerArvid Kingl: Temporal Fusion Transformers for Interpretable Multi-horizon Time Series ForecastingAutomate Stocks and Crypto Research with Python and Deep Learning | Full Python ProjectInside The $5 Billion Apple HeadquartersMaster ML Papers without Losing Your Sh*tYoutube Video Transcript Summarization with Hugging Face Transformers | Python NLP ProjectsReal Time Face Mask Detection with Tensorflow and Python | Custom Object Detection w/ MobileNet SSD