<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>2.3: Seeing In Action | GenAI Learning</title>
    <link>https://genai.gitpull.in/2-intro-genai/2.3-seeing-in-action/index.html</link>
    <description>Simple Hands On: Text Generation with GPT Let’s write some code to generate text using a pre-trained GPT model. We’ll use the transformers library by Hugging Face, which provides easy access to many pre-trained models.&#xA;Step 1: Install the Required Libraries&#xA;You’ll need Python installed on your machine along with the following packages:&#xA;transformers (from Hugging Face) torch (PyTorch backend) pip install transformers torch Step 2: Write the Code</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <atom:link href="https://genai.gitpull.in/2-intro-genai/2.3-seeing-in-action/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>2.3.1: DeepDive Hands On</title>
      <link>https://genai.gitpull.in/2-intro-genai/2.3-seeing-in-action/2.4-deep-dive-in-action/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://genai.gitpull.in/2-intro-genai/2.3-seeing-in-action/2.4-deep-dive-in-action/index.html</guid>
      <description>Deep Dive : Text Generation with GPT and Tokenizer We’ll start with loading a pretrained model (like GPT-2 or BERT) and running a simple text generation task. We’ll use Hugging Face’s transformers library for this.&#xA;Step 1: Install the required libraries&#xA;You’ll need Python installed on your machine along with the following packages:&#xA;transformers (from Hugging Face) torch (PyTorch backend) To install these, run:&#xA;pip install transformers torch Step 2: Load a Pretrained GPT-2 Model and Tokenizer&#xA;Here’s a simple example to load the GPT-2 model and tokenizer, then generate text based on a prompt.</description>
    </item>
  </channel>
</rss>