<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Laghumarapu Yashas Gupta on Medium]]></title>
        <description><![CDATA[Stories by Laghumarapu Yashas Gupta on Medium]]></description>
        <link>https://medium.com/@yashasgupta68?source=rss-ce6ec0b876a0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wn9flIwiH9rZi8Z5W3fIAw.jpeg</url>
            <title>Stories by Laghumarapu Yashas Gupta on Medium</title>
            <link>https://medium.com/@yashasgupta68?source=rss-ce6ec0b876a0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:00:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yashasgupta68/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Transformers: Revolutionizing Neural Machine Translation and Language Understanding]]></title>
            <link>https://medium.com/@yashasgupta68/transformers-revolutionizing-neural-machine-translation-and-language-understanding-f4d173b0e7ff?source=rss-ce6ec0b876a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4d173b0e7ff</guid>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[gpt-3]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Laghumarapu Yashas Gupta]]></dc:creator>
            <pubDate>Fri, 26 Apr 2024 16:14:12 GMT</pubDate>
            <atom:updated>2024-04-26T16:14:12.939Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*SiAxQ3eqdcgUJ87R-s06xg.jpeg" /><figcaption>Picture from Vajiram website</figcaption></figure><p>The sequence-to-sequence (Seq2Seq) model, introduced in the paper “Sequence to Sequence Learning with Neural Networks,” laid the foundation for neural machine translation (NMT). However, it faced challenges in handling long-range dependencies. The “Attention is All You Need” paper proposed transformers that addressed these issues using self-attention mechanisms.</p><p>Transformers revolutionized NLP by enabling parallelization and capturing long-range dependencies more effectively than recurrent neural networks (RNNs) or convolutional neural networks (CNNs). They consist of encoder and decoder layers, each containing self-attention mechanisms, feedforward neural networks, and normalization layers like layer normalization.</p><p>The key components of transformers include self-attention, which allows each word to attend to all other words’ representations, positional encoding to provide order information, and residual connections to aid in training deeper models. Transformers also use masked self-attention during training to prevent the model from peeking ahead.</p><p>GPT-1, like BERT, is trained using unsupervised learning on a large corpus of text. The training objective is to predict the next word in a sequence given all previous words, similar to a language modeling task. This process helps the model learn the underlying structure and dependencies in the text.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4d173b0e7ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Basic Guide to Language Modeling]]></title>
            <link>https://medium.com/@yashasgupta68/a-basic-guide-to-language-modeling-855e0d6c20fc?source=rss-ce6ec0b876a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/855e0d6c20fc</guid>
            <category><![CDATA[bert]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[language-modeling]]></category>
            <category><![CDATA[encoder]]></category>
            <dc:creator><![CDATA[Laghumarapu Yashas Gupta]]></dc:creator>
            <pubDate>Mon, 08 Apr 2024 17:02:45 GMT</pubDate>
            <atom:updated>2024-04-08T17:02:45.185Z</atom:updated>
            <content:encoded><![CDATA[<p>It benefits all the large language models and state of art for generative AI.</p><h3>BERT (Bi-directional Encoder Representations from Transformers)</h3><p>BERT provides a universal language representation. Its benefits include bi-directional contextual embedding, meaning it captures both preceding and following words for a given center word, and this occurs for every word in the text data as input. It allows for parallel training, making it scalable and flexible. This means that instead of training the model on a single machine, we can use multiple machines for training. Additionally, BERT handles long-term dependencies meaning it refers to capturing relationships between words or elements in a sequence that are far apart from each other. BERT uses an approach called masked language modeling and next-sentence prediction. So, let’s focus on Language modeling here.</p><h3>Language Modeling</h3><p>Architecture (or) Algorithm: Transformers</p><p>Technique (or) Approach:</p><ol><li>Auto Encoder.</li><li>Auto Regression.</li></ol><p>To understand the language model, it is important to first grasp the model definition, which involves capturing the relationship between inputs and outputs. This model is utilized to predict the outcome of unseen query points. Based on the above definition, the language model is defined as the model that captures the relationship between words and sentences of a language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*hymZHRUXDoa1AYMAuQI_aA.png" /></figure><p>In the above picture, we can add any algorithm like RNN or a shallow ANN. The issue with RNNs is that they take a long time to train (very slow) and can handle only a few long-term dependencies, they cannot handle large long-term dependencies. When it comes to shallow ANNs, they are typically not capable of capturing sequential information. To overcome these types of problems, transformers were introduced.</p><h3><strong>Transformers</strong></h3><p>Transformers have multi-modality capability, which means the ability of a model to accept multiple types of inputs and generate multiple types of outputs. For the same model, it can accept text, video, image, or audio data and generate outputs in the form of text, image, audio, or video. For example, GPT-4, GPT-3.5, BERT, Gemini, and LLama-2 (discovered by META) are all multi-modality models. Transformers come in two types, Encoder and Decoder, but in language models, we specifically use encoder transformers only.</p><h3>What are the potential applications or benefits of being able to model a language?</h3><ul><li>Developing auto-complete features to enhance typing efficiency.</li><li>Summarizing given text to extract key information efficiently.</li><li>Creating more advanced chatbots capable of engaging in meaningful conversations.</li><li>Constructing question/answer systems to provide relevant information quickly and accurately.</li></ul><h3>What are the key steps involved in constructing a language model?</h3><ol><li>Auto Regression Task or Auto Encoder Task.</li><li>Huge amount of data.</li><li>Powerful Architecture (here Transformers).</li></ol><p>NOTE: This medium blog post is highly inspired by my mentor’s lecture (Kanav Bansel).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=855e0d6c20fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Data Types in Python: Your Guide to Working with Different Kinds of Data]]></title>
            <link>https://medium.com/@yashasgupta68/understanding-data-types-in-python-your-guide-to-working-with-different-kinds-of-data-bf295be763a2?source=rss-ce6ec0b876a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf295be763a2</guid>
            <dc:creator><![CDATA[Laghumarapu Yashas Gupta]]></dc:creator>
            <pubDate>Wed, 19 Jul 2023 15:50:29 GMT</pubDate>
            <atom:updated>2023-07-19T15:50:29.794Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*61Ne16N5Cl45_yPZn7f7Lg.jpeg" /></figure><h4>Introduction:</h4><p>Python has gained immense popularity as a programming language, and understanding its data types is crucial for any aspiring coder. In this guide, we will explore the importance of Python data types and how they play a fundamental role in successful coding struggles.</p><p>Data types define the characteristics of the data and what you can do with it. For example, if you have numbers, you can perform mathematical calculations on them. If you have text, you can manipulate and process it as strings. By using the appropriate data types, you can ensure that your code behaves correctly and avoids any unexpected errors or outcomes.</p><h4>Python Data Types:</h4><ol><li>Numerical Data Type: These deal with numerical values within the program. And python provides subtypes for numerical data.</li></ol><figure><img alt="Numerical Data Type" src="https://cdn-images-1.medium.com/max/706/1*JUNCqUas630ELnlzFMfmcg.jpeg" /></figure><p>2. Boolean Data Type: It basically has two values “True” and “False” and is used for comparison and logical operations.</p><figure><img alt="Boolean Data Type" src="https://cdn-images-1.medium.com/max/430/1*fsxDFExX8W764GzBeVqGiQ.jpeg" /></figure><p>3. String Data Type: Strings are used to represent sequences of characters, such as text. And represented with a single (‘ ’) or double (“ ”) or triple quotes (“‘ ’”). We use triple quotes for typing multiple lines.</p><figure><img alt="String Data Type" src="https://cdn-images-1.medium.com/max/612/1*u2Owwr1vdqiFmWoAW5fpjw.jpeg" /></figure><p>4. Sequential Data Types: Sequence data types handle a collection of values, ordered in a specific manner. Python offers three primary sequence data types.</p><ul><li>Lists: Lists are mutable (changeable) and flexible data structures that can hold a collection of heterogeneous elements. Represented with square brackets [].</li></ul><figure><img alt="List" src="https://cdn-images-1.medium.com/max/813/1*Z_N5wj5B2adsyZ6EW_NdUQ.jpeg" /></figure><ul><li>Tuples: It is a sequence or a collection of elements that is similar to lists but immutable in nature which means we cannot modify after creation and represent with ().</li></ul><figure><img alt="tuple" src="https://cdn-images-1.medium.com/max/677/1*kIuHUw7W8mR4sT16MQ3M5w.jpeg" /></figure><ul><li>Sets: It is similar to both the lists and tuples which hold a collection of distinct elements but sets are unordered and support mathematical set operations like union, intersection, and difference. Represented with {}.</li></ul><figure><img alt="Sets" src="https://cdn-images-1.medium.com/max/970/1*FYoPdZ4ptyBjbbc452TOWQ.jpeg" /></figure><ul><li>Dictionaries: Dictionaries are unordered collections of key-value pairs enclosed in curly braces {}. Each element(item) in the dictionary has a unique key and values can be at any data type.</li></ul><figure><img alt="Dictionary" src="https://cdn-images-1.medium.com/max/940/1*0nNi47ngP2lx-OQNzXEicQ.jpeg" /></figure><p>In summary, learning data types is crucial for beginners as it provides them with a basic understanding of the data they are working with, helps them organize and manipulate it correctly, and enables them to make informed coding decisions and develop basic coding skills.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf295be763a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>