{"id":186338,"date":"2024-06-24T06:30:00","date_gmt":"2024-06-24T05:30:00","guid":{"rendered":"https:\/\/liora.io\/en\/?p=186338"},"modified":"2026-08-09T19:47:19","modified_gmt":"2026-08-09T18:47:19","slug":"all-about-generated-pre-trained-transformers","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/all-about-generated-pre-trained-transformers","title":{"rendered":"What are Generated Pre-trained Transformers (GPTs)?"},"content":{"rendered":"\n<p><strong>Able to write emails for you, translate texts into different languages, code, compose poems, and more. It&#8217;s impossible to ignore ChatGPT, the generative AI from OpenAI. But are you aware of the technology it&#8217;s based on?<\/strong><\/p>\n\n\n<p>The Generative Pre-trained Transformer is an AI model excelling in tasks involving natural language processing. <strong>Explore pre-trained generative transformers,<\/strong> understand how they function, their benefits, and their limitations.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-a-pre-trained-generative-transformer-gpt\">What is a pre-trained generative transformer (GPT)?<\/h2>\n\n\n<p>The pre-trained generative transformer encompasses a range of <a href=\"https:\/\/liora.io\/en\/recurrent-neural-network-what-is-it\">recurrent neural network<\/a> models <strong>employing transformer architecture<\/strong>. This technology marks a significant milestone in the realm of generative artificial intelligence. The widespread adoption of ChatGPT is a testament to this. Since its introduction, all leading tech corporations have been vying to develop the most effective <a href=\"https:\/\/liora.io\/en\/large-language-models-llm-everything-you-need-to-know\">language model<\/a>, aiming for a human-like experience.<\/p>\n\n\n<p>Why such enthusiasm? Because this machine learning model is adept at <strong>executing various tasks associated with natural language processing<\/strong>. Its ability to simulate conversations between humans is sometimes eerily accurate. From comprehending queries to generating assorted types of coherent and relevant texts, it enables the simulation of a conversation with a human (almost).<\/p>\n\n\n<p>In doing so, users can automate a myriad of tasks: linguistic translation, document summarization, <a href=\"https:\/\/liora.io\/en\/empowering-natural-language-processing-with-hugging-face-transformers-api\">blog article creation<\/a>, social media content ideas, writing code, and even crafting poetry. There&#8217;s no need to spend countless hours on research, planning, and drafting; pre-trained generative transformers can handle these tasks in seconds.<\/p>\n\n\n<figure class=\"wp-block-image size-full\" style=\"margin-top:32px;margin-bottom:32px\"><img alt=\"Illustration for What is a pre-trained generative transformer (GPT)?\" decoding=\"async\" height=\"457\" loading=\"lazy\" sizes=\"(max-width: 800px) 100vw, 800px\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT1.jpg\" srcset=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT1.jpg 800w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT1-300x171.jpg 300w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT1-768x439.jpg 768w\" style=\"width:100%;height:auto\" width=\"800\"\/><\/figure>\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center wp-container-core-buttons-is-layout-5ee10de4\" style=\"margin-top:32px;margin-bottom:32px\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/en\/courses\/data-ai\/machine-learning-engineer\">Learn to develop an AI model<\/a><\/div><\/div>\n\n\n<p><strong>Good to know:<\/strong> The transformer neural network architecture isn&#8217;t entirely new. It emerged from various research efforts on natural language processing and deep learning, with the term first being introduced in the 2017 paper &#8220;Attention is All You Need&#8221;.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-do-pre-trained-models-work\">How do pre-trained models work?<\/h2>\n\n\n<p>To achieve editorial feats comparable to (or sometimes surpassing) human capabilities, the pre-trained generative transformer relies on &#8220;transformer&#8221; neural network architecture.<\/p>\n\n\n<p>It employs auto-regressive attention (or self-attention mechanism). This AI model <strong>considers not just the last word to generate text but the overall context<\/strong>. It can assign varying degrees of significance to words, thereby better discerning the relationships among words and sentences.<\/p>\n\n\n<p>Ultimately, it&#8217;s this interplay of words and sentences that enables the GPT to comprehend the user&#8217;s query and deliver a <strong>coherent response, both in content and form<\/strong>.<\/p>\n\n\n<p>Initially, the GPT model was pre-trained with extensive textual data to grasp the structure, syntax, and nuances of language. Only after achieving a solid understanding of human language was the model further trained to carry out specific tasks.<\/p>\n\n\n<p><strong>Good to know:<\/strong> Although pre-trained generative transformers generate human-like results, they remain machines. They analyze user queries and then predict the most suitable response based on their contextual understanding.<\/p>\n\n\n<figure class=\"wp-block-image size-full\" style=\"margin-top:32px;margin-bottom:32px\"><img alt=\"Illustration for How do pre-trained models work?\" decoding=\"async\" height=\"457\" loading=\"lazy\" sizes=\"(max-width: 800px) 100vw, 800px\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT2.jpg\" srcset=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT2.jpg 800w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT2-300x171.jpg 300w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT2-768x439.jpg 768w\" style=\"width:100%;height:auto\" width=\"800\"\/><\/figure>\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center wp-container-core-buttons-is-layout-5ee10de4\" style=\"margin-top:32px;margin-bottom:32px\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/en\/courses\/data-ai\/deep-learning\">Mastering the use of generative AI<\/a><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"what-are-gpts-used-for\">What are GPTs used for?<\/h2>\n\n\n<p>With increasing sophistication, pre-trained generative transformers can execute a broad spectrum of tasks. Below are some of their most common applications:<\/p>\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Text generation<\/strong>: capable of crafting blog articles, social media posts, video scripts, emails, programming code, and more, in a variety of styles. Simply specify the desired outcome.<\/li>\n<li><strong>Automatic translation<\/strong>: trained on billions of pieces of textual data, they can translate text into any language.<\/li>\n<li><strong>Creation of sophisticated chatbots<\/strong>: acting as virtual assistants, they can <a href=\"https:\/\/liora.io\/en\/autogpt-discover-the-new-tool-that-makes-chatgpt-autonomous\">answer any question posed by users<\/a>.<\/li>\n<li><strong>Summary extraction<\/strong>: given lengthy texts, they can generate concise summaries of around a hundred words.<\/li>\n<li><strong>Data analysis<\/strong>: they can analyze vast datasets and transcribe them into tables or spreadsheets. Some tools even offer graphical representations.<\/li>\n<\/ul>\n\n\n<p>For users, the real advantage of pre-trained generative transformers is their <strong>speed of execution<\/strong>. They accomplish in seconds what would take a human hours, thus significantly boosting productivity.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"what-are-the-limitations-of-pre-trained-generative-transformers\">What are the limitations of pre-trained generative transformers?<\/h2>\n\n\n<p>Despite their utility and impressive efficiency, pre-trained generative transformers have their shortcomings, notably due to the training datasets. These may <strong>contain biases<\/strong> ,  be they sexist, racist, homophobic, etc. If these biases are incorporated into the model, it will replicate them in its outputs.<\/p>\n\n\n<p>Therefore, it&#8217;s essential to approach its responses with caution. Ideally, verify the sources of the information (if the model provides them).<\/p>\n\n\n<p>To mitigate these biases, it&#8217;s imperative to continually refine the models by feeding them unbiased data. This is a critical task for data scientists. If you&#8217;re keen on <a href=\"\/en\/courses\/data-ai\/deep-learning\">training the next GPT<\/a> to yield better results, <a href=\"\/en\/courses\/data-ai\/data-scientist\">consider getting trained in data science<\/a>.<\/p>\n\n\n<figure class=\"wp-block-image size-full\" style=\"margin-top:32px;margin-bottom:32px\"><img alt=\"Illustration for What are the limitations of pre-trained generative transformers?\" decoding=\"async\" height=\"457\" loading=\"lazy\" sizes=\"(max-width: 800px) 100vw, 800px\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT3.jpg\" srcset=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT3.jpg 800w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT3-300x171.jpg 300w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/06\/Generated-Pre-trained-Transformer-GPT3-768x439.jpg 768w\" style=\"width:100%;height:auto\" width=\"800\"\/><\/figure>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Able to write emails for you, translate texts into different languages, code, compose poems, and more. It&#8217;s impossible to ignore ChatGPT, the generative AI from OpenAI. But are you aware of the technology it&#8217;s based on? The Generative Pre-trained Transformer is an AI model excelling in tasks involving natural language processing. Explore pre-trained generative transformers, [&hellip;]<\/p>\n","protected":false},"author":74,"featured_media":186340,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2433],"class_list":["post-186338","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/186338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=186338"}],"version-history":[{"count":4,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/186338\/revisions"}],"predecessor-version":[{"id":211101,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/186338\/revisions\/211101"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/186340"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=186338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=186338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}