<?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"><channel><title><![CDATA[ShubhamDev]]></title><description><![CDATA[ShubhamDev]]></description><link>https://shubham7090.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 16:37:53 GMT</lastBuildDate><atom:link href="https://shubham7090.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[What Happens Next? The Art and Science of the Next-Token Predictor LLMs]]></title><description><![CDATA[What is an LLM?
LLM stands for Large Language Model. Although it is misunderstood to be artificial intelligence itself, the LLM models only represent a small fraction of the very large and comprehensi]]></description><link>https://shubham7090.hashnode.dev/what-happens-next-the-art-and-science-of-the-next-token-predictor-llms</link><guid isPermaLink="true">https://shubham7090.hashnode.dev/what-happens-next-the-art-and-science-of-the-next-token-predictor-llms</guid><category><![CDATA[ChaiCode]]></category><category><![CDATA[llm]]></category><category><![CDATA[chatgpt]]></category><category><![CDATA[AI]]></category><category><![CDATA[generative ai]]></category><dc:creator><![CDATA[Shubham Aggarwal]]></dc:creator><pubDate>Wed, 01 Jul 2026 15:16:09 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/07d2c8a4-fcae-4314-9eb3-ea7c32668eba.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3>What is an LLM?</h3>
<p>LLM stands for Large Language Model. Although it is misunderstood to be artificial intelligence itself, the LLM models only represent a small fraction of the very large and comprehensive artificial intelligence world.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/08dea113-eadb-4a95-95c0-77f14929c83b.png" alt="" style="display:block;margin:0 auto" />

<p>What problem do they solve?<br />While LLMs are nothing but next-token predictors, more or later in this article. They solve an essential problem that is human language recognition without knowing any fancy programming or syntax. They solve the core problem of understanding, processing, and generating human language at an unprecedented scale.</p>
<h3>Popular LLMS :</h3>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/e74d2522-f98e-419c-8416-8e55b333db05.png" alt="" style="display:block;margin:0 auto" />

<h3>Use Cases :</h3>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/f5d58ef4-bfbb-44a7-96fb-bb423adb5941.png" alt="" style="display:block;margin:0 auto" />

<h2><strong>What Happens When You Send a Message to ChatGPT?</strong></h2>
<p>First of all, your prompt is broken down into smaller pieces that can be understood by the LLM. These small pieces are known as tokens, and the process by which your prompt is broken down is known as tokenization</p>
<p>There are many algorithms and many ways to do this, and it depends on each LLM's architecture and requirement.</p>
<p><a href="https://platform.openai.com/tokenizer">https://platform.openai.com/tokenizer</a></p>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/52eed83b-caa2-43c6-a90b-4778a7c9ceb4.png" alt="" style="display:block;margin:0 auto" />

<p>Once text has been broken into tokens, LLMs need to convert these discrete symbols into a mathematical form they can process. This is where embeddings transform language into a numerical space where meaning can be manipulated.</p>
<p>These tokens are then converted into numerical vectors called embeddings, which capture semantic relationships between elements of text.</p>
<h3><strong>Why Computers Don't Understand Human Language</strong></h3>
<p>Tokens are converted into numerical embeddings for Large Language Models (LLMs) because computers can't process raw text efficiently . Embeddings map each token into a high-dimensional vector, allowing models to perform mathematical operations and capture nuanced semantic meanings so that similar concepts have mathematically close representations.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/1a62c856-8651-441d-876f-357320a4eca1.png" alt="" style="display:block;margin:0 auto" />

<p>These embeddings are then stored in a vector DB. A vector DB is nothing but a DB where token values are stored as numerical embeddings, and their distance is basically a context on how related a particular token is to other tokens.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/7f6fcd19-352c-4d66-a0fe-95320dc3d9ea.png" alt="" style="display:block;margin:0 auto" />

<h2><strong>Transformers</strong></h2>
<p>that do shock you ....</p>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/d70122f6-b154-4a57-8793-35d0c3b3afd7.png" alt="" style="display:block;margin:0 auto" />

<p>Ever wondered how old this AI talk is?This all changed in 2017. Yup, it's 2017. Five years before you even heard it in the news. Please refer to this original paper published by Google by the name "Attention Is All You Need." and show off to your friends.</p>
<p><a href="https://papers.nips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf">https://papers.nips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf</a></p>
<p>it introduced the Transformer architecture that transformed how AI worked, and this is the backbone of all the LLMs that we use today. this Transformer is so powerful that GPT stands for Generative Pre-trained Transformer.</p>
<p>In essence transformer is nothing but a special kind of neural network. a neural network is a machine learning model inspired by the human brain. this contains nodes that mimic neurons, and they are designed to learn from their mistakes without being explicitly programmed to do so.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/2ccaa919-1697-4820-903a-b5a2518979a6.png" alt="" style="display:block;margin:0 auto" />

<p>So, as mentioned earlier in this article, a transformer is nothing but a next-token predictor. it takes in an input prompt and tries to predict what the most probable next token should be.</p>
<p>when you prompt your LLM with "What is the capital of France", the next most probable tokens are:</p>
<ul>
<li><p>a question mark ( ?)</p>
</li>
<li><p>answer</p>
</li>
<li><p>Paris</p>
</li>
</ul>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/7747f4c3-55d8-477d-b938-1fda56caea36.png" alt="" style="display:block;margin:0 auto" />

<h2><strong>Temperature of an LLM</strong></h2>
<p>If this is the case, then why does a single prompt return 3 different answers when you give the same prompt to an LLM? One can return a boring essay, one can return a poem, one can return a piece of code.</p>
<p>this is because, in essence, although it is a next token predictor, the modern LLMs don't rely on the single most probable value but they use a probability distribution curve.</p>
<p>what values to pick and what values to not pick for the next token is what is known as the temperature of the LLM, and how many tokens to produce is known as the top P.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/8838c175-130f-4c41-8eb4-f8a538ed4e0c.png" alt="" style="display:block;margin:0 auto" />

<h2>In a Nutshell</h2>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/3368c14c-d924-469a-8e57-390f94d3a7d2.png" alt="" style="display:block;margin:0 auto" />]]></content:encoded></item><item><title><![CDATA[TCP Working: 3-Way Handshake & Reliable Communication]]></title><description><![CDATA[Need of Protocols!!!
Whenever two systems are connected they need a way to understand what the other system is trying to speak. It is similar as to decide between two 2 systems on how to treat time. W]]></description><link>https://shubham7090.hashnode.dev/tcp-working-3-way-handshake-reliable-communication</link><guid isPermaLink="true">https://shubham7090.hashnode.dev/tcp-working-3-way-handshake-reliable-communication</guid><category><![CDATA[ChaiCode]]></category><category><![CDATA[chaicode webdev cohort 2026]]></category><category><![CDATA[networking]]></category><category><![CDATA[TCP]]></category><dc:creator><![CDATA[Shubham Aggarwal]]></dc:creator><pubDate>Thu, 12 Mar 2026 21:33:43 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/5cadfa6b-5ee9-4307-8b08-65600edcc2ff.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h3>Need of Protocols!!!</h3>
<p>Whenever two systems are connected they need a way to understand what the other system is trying to speak. It is similar as to decide between two 2 systems on how to treat time. What does 26-03-13 means to you? Will you consider it 26th March 2013 or 13th March 2026? Deciding to follow DD-MM-YY or YY-MM-DD format for date is a protocol .</p>
<p>Examples :<br />FTP -&gt; File Transfer Protocol<br />TCP -&gt; Transfer Control Protocol<br />UDP -&gt; User Datagram protocol</p>
<h3>TCP Protocol</h3>
<p>Lets deep dive into TCP protocol in this article. TCP is a communication protocol at Transport Layer of the OSI Model. It works as the rules on how to transport the data to another system. Some features of TCP protocol are :</p>
<ol>
<li><p>Reliability</p>
</li>
<li><p>Ordered Data</p>
</li>
<li><p>Ensures Error Checking and retry mechanisms in case of loss/corrupt data.</p>
</li>
</ol>
<h3>Where Does TCP work?</h3>
<p>Consider it as a theoretical mind map. When your device requests another device for a connection. Lets take you on a journey of Ram and Krishna trying to send establish a pathway to talk to each other through a messaging app. The messaging applications used by Ram and Krishna are the application layer. When the data is ready to be sent out the 2 systems need to make connection and check if both are up and running. This is established through a 3 Way Handshake. It is same as we confirm on video calls to talk with each other.</p>
<h3>3 Way Handshake :</h3>
<p>This is how 2 systems establish connection. Remember SYN and ACK are like flags that are used for encryption and decryption as well through public private keys encryption but that will be covered some other time.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/b2b5e496-84a3-4d01-af37-a1339fc66906.png" alt="" style="display:block;margin:0 auto" />

<p>After connection is established Ram wants to send Hello to Krishna. Lets see how the message will be transferred securely and reliably with retry mechanism.</p>
<ol>
<li><p>Hello is broken down into smaller units known as Data Packets to be transfer over the network.</p>
</li>
<li><p>Each smaller data packet includes the order and checksum parameter.</p>
</li>
<li><p>The checksum is a special value for each data packet send. The receiver receives both data and checksum value.</p>
</li>
<li><p>Receiver creates a checksum value of its own on the data received. If the checksum computed and received are same it sends an acknowledgement.</p>
</li>
<li><p>If checksum computed and checksum received are different data is considered to be corrupt and no acknowledgement is sent.</p>
</li>
<li><p>Not receiving an acknowledgement makes the sender realize the corruption of data and it sends the data packet again as a retry mechanism.</p>
</li>
</ol>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/1400e9c2-5cf9-4c39-8246-65f703cf8e4a.png" alt="" style="display:block;margin:0 auto" />

<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/349c06a0-fec0-4af8-ae54-41507dc6e455.png" alt="" style="display:block;margin:0 auto" />

<h3>4 Way Tear Down :</h3>
<p>After sending and receiving the data the connection is then closed through a secure 4 way Tear down method.</p>
<img src="https://cdn.hashnode.com/uploads/covers/69b1d26d6c896b0519c34d89/c35c07c4-8173-4b6e-b5ff-1f43f30b77aa.png" alt="" style="display:block;margin:0 auto" />]]></content:encoded></item></channel></rss>