# Pre-Training (Initializing the Network)

The 'PT' part in GPT is for 'Pre-Training'.

### Pre-Training (Initializing the Network)

GPT models are pre-trained over a corpus/dataset of unlabeled textual data using a language modeling objective. Put simply, this means that we train the model by (i) sampling some text from the dataset and (ii) training the model to predict the next word.

&#x20;**Qs?  When we 'train' images, is that what we are doing? We are sort of seeing the image through each filter and recording the result?**

When training a Convolutional Neural Network (CNN) on images, you could say that the network is learning to "see" the image through various filters and recording the results. During the training process, the network adjusts the filter values to better detect meaningful features or patterns in the input images that are relevant to the task at hand, such as image classification or object detection.

When an image is passed through a convolutional layer, the filters slide over the image and apply the convolution operation. This process produces feature maps, which are essentially new representations of the image that highlight the presence of specific features detected by each filter.

As the network is trained, it updates the filter values to minimize the loss function, which measures the difference between the network's predictions and the true labels or targets. By doing so, the CNN learns to recognize and extract relevant features from the images more effectively.

In summary, during the training of a CNN on images, the network learns to "see" the images through various filters and records the resulting feature maps. These feature maps are new representations of the images that highlight specific features detected by the filters. The training process aims to adjust the filter values so that the network can better recognize and extract meaningful features from the input images that are relevant to the task at hand.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://metaverse-imagen.gitbook.io/ai-tools-research/ai-technology/generative-ai-architectures-and-models/pre-training-initializing-the-network.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
