<?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 Srijon Das on Medium]]></title>
        <description><![CDATA[Stories by Srijon Das on Medium]]></description>
        <link>https://medium.com/@srijondas?source=rss-d0c6f5fd2135------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*pm4bjkp6IjeDUyQc.</url>
            <title>Stories by Srijon Das on Medium</title>
            <link>https://medium.com/@srijondas?source=rss-d0c6f5fd2135------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:24:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@srijondas/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[Part 1 — The fundamental behavior of a Neuron]]></title>
            <link>https://medium.com/@srijondas/part-1-the-fundamental-behavior-of-a-neuron-7adc1c5f0e92?source=rss-d0c6f5fd2135------2</link>
            <guid isPermaLink="false">https://medium.com/p/7adc1c5f0e92</guid>
            <category><![CDATA[neurons]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Srijon Das]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 17:57:31 GMT</pubDate>
            <atom:updated>2026-11-23T17:57:31.121Z</atom:updated>
            <content:encoded><![CDATA[<p>Let us explain the behavior of an individual neuron in a Neural network. Let us consider the analogy of a group of friends who are collectively deciding whether to go to a restaurant or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vO2Pe_-CNmCz4BD7A_Qg-w.png" /></figure><p>Each Neuron has these parts:<br>1. Inputs<br>2. Weights<br>3. Biases<br>4. Activation function</p><p>Now let us find the equivalent of these in our friends analogy.<br>1. Inputs — These are the opinions that each friend presents to you.<br>2. Weights — These are associated with how much you trust the friends opinion from what you have seen in the past. Like a friend whose opinion about restaurants is really good is 100, and a friend who doesnt know much about restaurants is a 0<br>3. Biases — This is your personal preference and knowledge about restaurants<br>4. Activation function — After considering everyones opinions, and adding your biases, you come to a judgement. This is represented by a function like a cutoff beyond 5 is a good review otherwise its not worth going to the restaurant.</p><p>Now lets see a real example.</p><ol><li>Inputs — These are the review numbers which we got from our 5 friends</li></ol><p>I = [5, 2, 6, 8, 9]</p><p>2. Weigths — This is how much we trust each friends based on the opinions they gave in the past</p><p>W= [2, -1, 6, 3, 8]</p><p>3. Bias — Let us say you have positive confidence that you have a good opinion about restaurants</p><p>B = 15</p><p>Now you have to multiply the Input array and the Weights array and add the bias</p><p>Output = (I x W) + B<br>= (5 x 2) + (2 x -1) + (6 x 6) + (8 x 3) + ( 9 x 8) + 15<br>= 10 -2 + 36 + 24 + 72 + 15<br>= 155</p><p>5. Now apply the activation function, if its less than 5 its a negetive review for the restaurant. In this case 155 is a great review !!</p><p>So the output from you and your Neuron is 155 !!</p><p>And its definitely a restaurant that you would like to visit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7adc1c5f0e92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the AI cutain: PT files Vs ONNX files]]></title>
            <link>https://ai.plainenglish.io/behind-the-ai-cutain-pt-files-vs-onnx-files-f865f86b7266?source=rss-d0c6f5fd2135------2</link>
            <guid isPermaLink="false">https://medium.com/p/f865f86b7266</guid>
            <category><![CDATA[pt]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[onnx]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Srijon Das]]></dc:creator>
            <pubDate>Tue, 24 Feb 2026 16:56:28 GMT</pubDate>
            <atom:updated>2026-02-24T16:57:14.102Z</atom:updated>
            <content:encoded><![CDATA[<p>AI projects often contain both <strong>.pt</strong> and <strong>.onnx</strong> files.</p><p>A <strong>.pt file</strong> is PyTorch’s native format, used during development to store model weights and Python-specific details. An <strong>ONNX file</strong> converts the same model into a standard mathematical graph, making it portable and runnable on many platforms without Python.</p><blockquote>Simply put: <strong>.pt is for building; ONNX is for running anywhere.</strong></blockquote><p>Now let us take a look inside the files and see what are the differences.</p><ol><li>The .pt file is a zip file with the following content.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*xfsb-PPjrMgsWQqUln7RuA.png" /></figure><p>Python/Pytorch reads these files using the following steps:<br> 1️⃣ Opens the zip archive<br> 2️⃣ Reads data.pkl (object structure)<br> 3️⃣ Loads raw tensor bytes<br> 4️⃣ Reconstructs tensors<br> 5️⃣ Rebuilds the model/state dictionary</p><p>2. ONNX represent the same information as in a .PT file using a sequence of mathematical functions, the most common ones used are:</p><p><strong>Conv</strong> — looks for important patterns in an image (like edges, shapes, or digits).<br><strong>Relu</strong> — keeps useful signals and removes weak or negative noise.<br><strong>MatMul</strong> — combines numbers to calculate how strongly features relate to each other.<br><strong>Add</strong> — merges information together (like adding bias or combining features).<br><strong>Reshape</strong> — reorganizes data into a new layout without changing the content.<br><strong>Transpose</strong> — flips the arrangement of data to help it line up for calculations.<br><strong>Concat</strong> — joins multiple pieces of data into one bigger piece<br><strong>MaxPool</strong> — keeps the most important information while shrinking the image size.<br><strong>Softmax</strong> — converts results into probabilities (like “this is 92% a cat”).<br><strong>BatchNormalization</strong> — keeps values balanced so the model stays stable and accurate.</p><p>The technical way to put the above information:</p><p>A <strong>.pt file</strong> is PyTorch’s native format that stores model weights and structure in a Python-dependent form for training and development, while a <strong>.onnx file</strong> stores the model as a framework-neutral computational graph with operators and tensors that can run on any ONNX-compatible runtime.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f865f86b7266" width="1" height="1" alt=""><hr><p><a href="https://ai.plainenglish.io/behind-the-ai-cutain-pt-files-vs-onnx-files-f865f86b7266">Behind the AI cutain: PT files Vs ONNX files</a> was originally published in <a href="https://ai.plainenglish.io/">Artificial Intelligence in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the AI curtains: Memory blocks]]></title>
            <link>https://medium.com/@srijondas/behind-the-ai-curtains-memory-blocks-7ef86f882a46?source=rss-d0c6f5fd2135------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ef86f882a46</guid>
            <category><![CDATA[memory-management]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Srijon Das]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 05:41:57 GMT</pubDate>
            <atom:updated>2026-02-20T05:41:57.624Z</atom:updated>
            <content:encoded><![CDATA[<h3>Behind the AI curtains — Memory blocks</h3><p>Ever wondered what’s inside an AI model? It’s a network of neurons with weights and biases that learn patterns from data, storing knowledge that lets the model recognize, predict, or generate information — like a hidden brain working behind the scenes.</p><p>Think of these segments as parts of a larger AI machine — each one plays a role, from storing knowledge in weights and biases, to processing inputs through layers, helping the model learn, reason, and make predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kX21jURg33hNDPDk9PvNFA.png" /></figure><p>Most of the space inside a model is taken up by weights and biases — the very parameters that are adjusted during training to help the AI learn patterns and make predictions. Together, they form the core ‘knowledge’ of the model, determining how it processes inputs and generates outputs.</p><p>A much smaller space inside a model is occupied by tokens and embeddings. These are created by a smaller program that converts raw input — like words or characters — into numerical representations the model can understand and process. The first widely recognized tool to create embeddings was <strong>Word2Vec</strong>, developed by Google researchers in <strong>2013</strong>, which introduced vector representations for words. This innovation came <strong>years before transformer models</strong> like BERT or GPT revolutionized AI, showing that embeddings were already a fundamental building block for representing language even in earlier neural networks.</p><p>After embeddings enter the model, they go through <strong>activation layers</strong>. Each layer acts like a filter, deciding which signals to keep and which to reduce. This helps the model understand patterns and turn the input into meaningful output.</p><p>Besides weights, biases, embeddings, and activation layers, AI models also have <strong>configurations</strong> that define how they work. Configs include settings like the number of layers, the size of each layer, and the type of activation function used. Some of the most important configurations are: the <strong>number of transformer layers</strong> (which determines the model’s depth), the <strong>hidden size</strong> (how wide each layer is), and the <strong>vocabulary size</strong> (how many unique tokens the model can understand). These settings guide the model’s structure and performance, even before any training begins.</p><p>AI models also use small amounts of memory for <strong>temporary buffers</strong>, which help with calculations as data moves through the layers.</p><p>Altogether, these components — weights, biases, embeddings, activation layers, configurations, and buffers — work together like a well-oiled machine, allowing the AI to process inputs, learn patterns, and make predictions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ef86f882a46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the AI Curtain: Learn to talk about the math behind AI]]></title>
            <link>https://learnaitoprofit.com/behind-the-ai-curtain-learn-to-talk-about-the-math-behind-ai-40c89cbab177?source=rss-d0c6f5fd2135------2</link>
            <guid isPermaLink="false">https://medium.com/p/40c89cbab177</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-image-generator]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[math]]></category>
            <dc:creator><![CDATA[Srijon Das]]></dc:creator>
            <pubDate>Sat, 10 May 2025 03:01:30 GMT</pubDate>
            <atom:updated>2025-05-10T03:01:30.958Z</atom:updated>
            <content:encoded><![CDATA[<p>While AI may seem complex at first glance, much of it is actually built on surprisingly simple mathematics — mostly high school algebra and a bit of linear algebra. The intimidating terms often mask concepts that are very approachable once explained clearly.</p><p>In this article, we’ll break down the core ideas behind AI — like matrix multiplication, activation functions, and attention — and show you how accessible they really are. Whether you’re talking to a friend, a teacher, or even an AI scientist, you’ll be able to speak confidently and demonstrate that you truly understand what’s going on under the hood.</p><p>By the end, you’ll realize that AI isn’t magic — it’s logic, math, and pattern recognition working together in elegant ways. If you can follow basic algebra, you’re already well on your way to understanding the foundations of artificial intelligence.</p><p>Let us get started now on the following topics-<br><strong>Convolutions<br>Linear Layer<br>Softmax<br>Attention<br>Activation Functions<br>SVD<br>Dot Product in Matrix Multiplication<br>Cosine Equality</strong></p><ol><li><strong>Convolutions:</strong> Convolution is like using a filter on a photo — you’re sliding a small pattern (like a blur or edge detector) over the image to see how it changes each part. It helps the computer understand textures, edges, or shapes in the picture.</li></ol><p>I came across an excellent article that offers a clear and intuitive explanation of convolutions. If you’re new to convolutions, I highly recommend giving it a <a href="http://I came across an excellent article that offers a clear and intuitive explanation of convolutions. It breaks down the concept using real-world analogies and simple visuals, making it much easier to grasp. If you&#39;re new to convolutions or just want a fresh perspective, I highly recommend giving it a read.">read</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vbsdzXBm0IvaQgMs" /><figcaption>Photo by <a href="https://unsplash.com/@madhatterzone?utm_source=medium&amp;utm_medium=referral">Manja Vitolic</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*B1GPi_oZ-d3J5xBGL7phpg.png" /></figure><p>We have two images here — the second one is the convolution of the first. This transformation helps the computer detect important features like edges, textures, or patterns, which are essential for tasks like image recognition and classification.</p><p>2. <strong>Linear Layer</strong> : The Linear Layer uses the concept of Weights and Biases. As we learn in high school, a straight line is defined by the equation y = mx + c, where m is the slope and c is the y-intercept. In machine learning, weights and biases work just like that: the weight (w) is like the slope, and the bias (b) is like the intercept, shifting the line up or down.</p><blockquote>A linear layer performs the following transformation:<br><strong>y = wX + b</strong></blockquote><blockquote>x is the input vector<br>y is the output vector<br>w is the weight vector learned during training<br>b is the bias vector learned during training</blockquote><p>3. <strong>Softmax</strong>: Softmax changes numbers into probabilities.</p><p>Consider this scenario: you have a program that classifies emails as Work, Personal, or Spam based on word matches. In a recently received email, 42 words matched patterns typically associated with Work emails, 20 matched those of Personal emails, and 5 matched Spam-related patterns. The question now is: what is the probability that the email is Work-related, Personal, or Spam?</p><p>Softmax provides an answer using exponential functions — Using Softmax we get the answer: an 87% chance that the email is Work-related, a 10% chance it’s Personal, and a 3% chance it’s Spam.</p><p>This is a great <a href="https://www.youtube.com/watch?v=ytbYRIN0N4g">video</a> if you are trying to learn about Softmax functions.</p><p>4. <strong>Attention:</strong> This was one of the most important breakthroughs in AI, leading to the first truly effective language models. The research was conducted by Vaswani and his team, and published in the landmark paper titled <em>‘</em><a href="https://arxiv.org/abs/1706.03762"><em>Attention Is All You Need</em></a><em>’</em>.</p><p>Now, consider this problem: you have the sentence, <em>‘The cat sat on the mat because it was tired.’</em> The question is — does the word <em>‘it’</em> refer to the cat or the mat?</p><p>Attention uses Softmax Functions to find the values of parameters Q, V and K. This is used to determine whether “it” refers to the cat or the mat.</p><p>This is a great <a href="https://www.youtube.com/watch?v=8fIJk1lJ4aE">video</a> if you are trying to learn about Attention layer.</p><p>5. <strong>Activation Functions</strong>: To illustrate how Activation function works, think of how you react to temperature:</p><ul><li>If it’s <strong>too cold</strong>, you <strong>put on a sweater</strong>.</li><li>If it’s <strong>too hot</strong>, you <strong>take a shower</strong>.</li><li>If the temperature feels <strong>just right</strong>, you <strong>do nothing</strong>.</li></ul><p>This is just like an <strong>activation function</strong> in a neural network — it decides <strong>how to respond</strong> based on the input it receives. It doesn’t always react the same way — it reacts <strong>differently depending on the situation</strong>, just like you do with temperature.</p><p>Let us discuss about two of the popular activation functions:</p><p>a. <strong>ReLU</strong> : ReLU is one of the simplest activation functions. If the input is <strong>positive</strong>, the output is the same as input. If input is <strong>negative</strong>, the output is <strong>0</strong>.</p><p>b. <strong>Sigmoid</strong> : When input is large and positive, the output becomes <strong>1. </strong>When input is large and negative, the output approaches <strong>0 </strong>and when input is 0 output is exactly <strong>0.5</strong>.</p><p>More information on Activation Functions on this <a href="https://www.youtube.com/watch?v=Fu273ovPBmQ">video</a>.</p><p>6. <strong>SVD</strong>: Matrix operations are extensively used in AI, so to optimize computation time, memory usage, and cost, we often need to simplify or compress large matrices without losing important information. One powerful technique for doing this is <strong>Singular Value Decomposition (SVD)</strong>.</p><p>SVD breaks a matrix into three smaller matrices — capturing the essential patterns and structure of the original data while discarding redundancy or noise.</p><p>More information on SVD in this <a href="https://www.youtube.com/watch?v=nbBvuuNVfco">video</a>.</p><p>7. <strong>Dot Product in Matrix Multiplication: </strong>Dot matrix multiplication is a concept commonly taught in high school, and in the world of AI and machine learning, it’s one of the most fundamental operations.</p><p>When we perform a dot product between two matrices, we’re combining <strong>each row from the first matrix</strong> with <strong>each column from the second matrix</strong>. For each position in the result, we multiply the corresponding elements, one by one, and then <strong>sum those products</strong>.</p><p>This operation forms the backbone of how data flows and transforms in neural networks.</p><p>More information on Dot Product in Matrix Multiplication in this <a href="https://www.youtube.com/watch?v=4csuTO7UTMo">video</a>.</p><p>8. <strong>Cosine Equality</strong>: Cosine similarity is a measure used to determine how similar two vectors are by calculating the cosine of the angle between them. In simple terms, it tells us how much two vectors are pointing in the same direction, regardless of their magnitude.</p><p>It works by comparing the angle between two non-zero vectors, with the cosine function capturing the directionality. This makes cosine similarity especially useful when the magnitude (size) of the vectors is less important than the orientation or direction in which they point.</p><p>For more information on Cosine similarity see this <a href="https://www.youtube.com/watch?v=zcUGLp5vwaQ">video</a>.</p><p><strong>So those were the core math concepts behind AI,</strong> the core of AI isn’t buried in impossible mathematics — it’s built on concepts many of us first saw in school. Whether it’s the dot product powering matrix operations, activation functions mimicking simple decision rules, or attention mechanisms helping models focus — each piece fits into a puzzle you now know how to solve.</p><p>Understanding these fundamentals gives you more than just knowledge — it gives you clarity and confidence. So the next time someone mentions neural networks or transformers, you won’t be intimidated. You’ll recognize the math behind the magic.</p><p>AI is the future, but its foundational building blocks are rooted in concepts taught in high school mathematics. With a solid understanding of basic math, anyone can grasp the essential principles behind AI and machine learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*Z28bl_2lh5xDh94Y.png" /><figcaption>Write for us <a href="https://learnaiforproft.com/">LearnAIforProft</a> — get seen on — <a href="https://www.linkedin.com/company/ai-businessplans/">LinkedIn</a> — <a href="https://www.reddit.com/r/aibusinessplans/">Reddit</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40c89cbab177" width="1" height="1" alt=""><hr><p><a href="https://learnaitoprofit.com/behind-the-ai-curtain-learn-to-talk-about-the-math-behind-ai-40c89cbab177">Behind the AI Curtain: Learn to talk about the math behind AI</a> was originally published in <a href="https://learnaitoprofit.com/">LearnAItoprofit.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Goats Ate the Logs, Bananas Crashed the Server — So my conceptual design of LLM to make sense of…]]></title>
            <link>https://medium.com/@srijondas/goats-ate-the-logs-bananas-crashed-the-server-so-my-conceptual-design-of-llm-to-make-sense-of-56c0388588d2?source=rss-d0c6f5fd2135------2</link>
            <guid isPermaLink="false">https://medium.com/p/56c0388588d2</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[production-monitoring]]></category>
            <category><![CDATA[performance-testing]]></category>
            <category><![CDATA[logs]]></category>
            <dc:creator><![CDATA[Srijon Das]]></dc:creator>
            <pubDate>Sat, 26 Apr 2025 16:28:17 GMT</pubDate>
            <atom:updated>2025-04-26T16:47:07.058Z</atom:updated>
            <content:encoded><![CDATA[<h3>Goats Ate the Logs, Bananas Crashed the Server — So this design of LLM to make sense of Production metrics and logs (with a sprinkling of code)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3cC9gXOFefmuEywj" /><figcaption>Photo by <a href="https://unsplash.com/@jsshotz?utm_source=medium&amp;utm_medium=referral">Jorge Salvador</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Ever seen your production metrics crumble in slow motion, only to snap back like nothing happened — and you’re left standing there like a bewildered goat in a dream, clutching a handful of log lines and zero answers? You stare at the dashboards, hypnotized by squiggly graphs that look like someone threw bananas at the screen and called it monitoring. You dive into the logs, each line more slippery than the last, chasing clues like a goat chasing bananas rolling downhill. Every time you think you’ve caught something — <em>bam</em> — it slips away, leaving you even more confused and slightly hungry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bRcrKtXMuJ0nbsHX" /><figcaption>Photo by <a href="https://unsplash.com/@ries_bosch?utm_source=medium&amp;utm_medium=referral">Ries Bosch</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’ve read this far, you probably have a good idea of where this is headed. I’m about to offer a conceptual design for training an LLM that will make sense of all those goat metrics and banana logs in one fell swoop. I’ll touch on some areas with a mix of half-baked code and look-ma-no-hands tricks.</p><p>But a word of caution: Proceed at your own risk. The code may bite. The concepts may twist. And you might end up feeling like you’re chasing goats through crowded streets. But hey, it’s all for the greater good of science… just don’t try this unless you’ve got a healthy sense of humor in tow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hot2P7d1EDQ3FWcF" /><figcaption>Photo by <a href="https://unsplash.com/@catherine_avak?utm_source=medium&amp;utm_medium=referral">Catherine Avak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>How can we get data to train the LLM and how do we label it?</strong></p><p>To <strong>build a reliable training dataset</strong> for <strong>Large Language Models (LLMs)</strong>, you would begin by running an array of <strong>performance benchmarks</strong> and <strong>evaluation metrics</strong>, gathering the resulting <strong>raw data</strong> from <strong>data pipelines</strong>. This data can be processed using <strong>ETL (Extract, Transform, Load)</strong> techniques, where manual labeling can be performed via <strong>human-in-the-loop</strong> (HITL) systems. Over time, this workflow can be optimized through <strong>active learning</strong> algorithms and <strong>semi-supervised learning</strong> techniques that minimize human intervention by focusing on high-uncertainty data points.</p><p>One could leverage <strong>data augmentation</strong>, such as <strong>text generation</strong> (using <strong>transformers</strong> or <strong>GANs</strong>) to artificially expand the dataset. To automate this process, <strong>self-supervised learning</strong> paradigms and <strong>unsupervised learning</strong> techniques can be incorporated, enabling the model to <strong>self-label</strong> data based on intrinsic patterns, thus reducing labeling overhead.</p><p>Moreover, by implementing a <strong>data labeling pipeline</strong> powered by <strong>weak supervision</strong> and <strong>crowdsourcing</strong>, you can scale this workflow to handle larger volumes of data. <strong>Transfer learning</strong> can be applied, using pre-trained models to fine-tune with domain-specific data. For further efficiency, <strong>reinforcement learning</strong> can be integrated, allowing the model to iteratively improve its labeling accuracy over time by optimizing a <strong>reward function</strong> based on <strong>feedback loops</strong>.</p><p>In the long term, the system can evolve into a sophisticated architecture utilizing <strong>multi-agent systems</strong> for decentralized data collection and labeling, while advanced <strong>neural architecture search</strong> (NAS) could optimize model selection and hyperparameter tuning to enhance training effectiveness.</p><p>Below is a simplified code snippet for <strong>synthetic data generation</strong>, showcasing the core idea. In a production setup, <strong>data pipelines</strong> would be highly modular, leveraging <strong>distributed computing</strong> and <strong>cloud-based services</strong> to scale at enterprise levels, ensuring that the training data is consistently fresh and diverse for <strong>model fine-tuning</strong> and <strong>continuous integration</strong> of evolving data.</p><p>This mechanism, once fully automated, can serve as the backbone of a fully-fledged <strong>AI-driven data ecosystem</strong>, capable of scaling with <strong>auto-scaling</strong> and <strong>serverless</strong> infrastructure, all while providing <strong>real-time inference</strong> and insights for ongoing <strong>model evaluation</strong> and <strong>feedback loops</strong>.</p><pre>https://github.com/srijondasgit/perfomance_AI/tree/main/1_Basic</pre><p>The <strong>data collection</strong> process must encompass various <strong>system performance metrics</strong> and <strong>resource utilization statistics</strong>. These include <strong>latency measurements</strong> (such as <strong>average response time</strong> and <strong>95th percentile latency</strong>), <strong>throughput rates</strong> (like <strong>transactions per second</strong> and <strong>data processed per second</strong>), and key <strong>system resource utilization</strong> metrics, including <strong>CPU utilization</strong>, <strong>memory consumption</strong>, <strong>disk I/O</strong>, and <strong>network I/O rates</strong>. Additionally, <strong>error metrics</strong> are crucial, capturing <strong>the number of errors</strong>, <strong>types of failures</strong>, and associated <strong>system logs</strong> that provide granular insight into the system’s behavior and performance degradation.</p><p>To build a robust training dataset for <strong>supervised learning</strong>, each data entry must be carefully <strong>labeled</strong> with a <strong>ground truth</strong> classification. This could be a binary classification (e.g., <strong>“Pass”</strong> or <strong>“Fail”</strong>) or a more nuanced categorization like <strong>“Performance Degraded”</strong>, <strong>“Resource Exhaustion”</strong>, <strong>“High Latency”</strong>, or other relevant categories reflecting specific <strong>system behaviors</strong> or failure modes. These labels can be determined through a combination of <strong>manual annotation</strong>, <strong>domain expert knowledge</strong>, and potentially <strong>automated labeling systems</strong> based on pre-established <strong>rule-based models</strong> or <strong>anomaly detection</strong> algorithms.</p><p>In order to scale this process efficiently, leveraging <strong>semi-supervised learning</strong> or <strong>weak supervision</strong> techniques can significantly reduce manual overhead by allowing the model to learn from <strong>pseudo-labels</strong> generated through <strong>self-supervised learning</strong>. This process can be further enhanced by <strong>reinforcement learning</strong> approaches, where the model receives feedback on its classification accuracy and improves over time by optimizing an associated <strong>reward function</strong> based on <strong>classification performance</strong>.</p><p>For real-world applications, integrating <strong>monitoring frameworks</strong> such as <strong>Prometheus</strong> or <strong>Grafana</strong> for real-time <strong>metrics collection</strong> will enable automated data pipelines that continuously stream performance metrics to a centralized <strong>data lake</strong> or <strong>cloud data warehouse</strong>. This, in turn, supports <strong>continuous model training</strong> through <strong>continuous integration/continuous deployment (CI/CD)</strong> workflows, where the system can dynamically adjust labels and training data as new performance patterns emerge. <strong>Edge AI</strong> and <strong>distributed computing</strong> can be incorporated for real-time processing and inference, ensuring data accuracy and <strong>system health checks</strong> across a network of devices or servers.</p><p>This provides a highly <strong>automated, scalable</strong> framework for generating and labeling the training data, utilizing cutting-edge <strong>AI techniques</strong> like <strong>auto-labeling</strong>, <strong>reinforcement learning</strong>, <strong>anomaly detection</strong>, and more, ensuring a robust model capable of learning from and predicting complex system behaviors.</p><p><strong>How would this approach scale when dealing with a large number of data centers, each running multiple Kubernetes clusters across many servers and racks?</strong></p><p>In a scenario where there are <strong>25 data centers</strong>, each hosting <strong>250 servers</strong>, it becomes crucial to not only <strong>collect</strong> and <strong>label performance data</strong>, but also to integrate and annotate each data point with <strong>rich metadata</strong>. This includes essential identifiers such as <strong>Cluster ID</strong>, <strong>Server ID</strong>, <strong>rack location</strong>, and even <strong>hardware profiles</strong> (e.g., <strong>CPU architecture</strong>, <strong>GPU specifications</strong>, <strong>memory configurations</strong>). By associating this additional metadata with each performance metric, we can <strong>segment the data</strong> more effectively, track <strong>system behavior</strong> at the <strong>cluster level</strong> and <strong>server level</strong>, and <strong>analyze trends</strong> with <strong>granular precision</strong>.</p><p>This <strong>multidimensional labeling</strong> enables the identification of performance anomalies or bottlenecks at a <strong>micro level</strong>, allowing for <strong>root cause analysis</strong> (RCA) to be carried out more efficiently. It also facilitates the training of <strong>machine learning models</strong> (especially <strong>predictive models</strong> using <strong>supervised learning</strong>) that can forecast <strong>hardware failures</strong>, <strong>resource exhaustion</strong>, or <strong>degradation trends</strong> specific to certain clusters or server types. By tracking issues based on these fine-grained labels, we can build <strong>failure prediction systems</strong> that leverage <strong>time-series forecasting</strong> or <strong>anomaly detection</strong> techniques, such as <strong>autoencoders</strong> or <strong>LSTM networks</strong>, to predict when specific servers or clusters might fail based on their <strong>historical performance patterns</strong>.</p><p>The inclusion of <strong>metadata</strong> like <strong>cluster configuration</strong>, <strong>hardware profiles</strong>, and <strong>environmental variables</strong> (such as temperature or power consumption) also paves the way for the implementation of <strong>model interpretability</strong> techniques like <strong>SHAP</strong> or <strong>LIME</strong>, enabling stakeholders to understand the reasons behind specific performance degradation predictions.</p><p>As the infrastructure scales, maintaining <strong>clean, organized, and standardized labeling</strong> becomes critical for ensuring that training data remains <strong>reliable</strong>, <strong>actionable</strong>, and aligned with the model’s <strong>predictive accuracy</strong>. To support this at scale, <strong>automated data pipelines</strong> should be implemented, possibly leveraging <strong>containerized microservices</strong> or <strong>serverless architectures</strong>, which can ensure that performance data is continuously ingested, labeled, and processed in real-time. Moreover, <strong>data versioning</strong> tools such as <strong>DVC</strong> (Data Version Control) can be used to track changes to the dataset over time, ensuring that historical training data is maintained for <strong>model retraining</strong> or <strong>hyperparameter optimization</strong>.</p><p>Lastly, as models are trained on this enriched, <strong>metadata-augmented dataset</strong>, <strong>model monitoring</strong> tools should be deployed to track <strong>concept drift</strong> and <strong>data drift</strong>, ensuring that the predictive models remain robust and effective over time as the infrastructure evolves.</p><pre>https://github.com/srijondasgit/perfomance_AI/tree/main/2_Analyze_Cluster</pre><p>The code above includes additional labels Cluster ID and Server ID and I could use the data to train some of my models.</p><p><strong>How frequently should we retrain the model?</strong><br>The <strong>machine learning model</strong> should be <strong>retrained</strong> whenever there are <strong>significant changes</strong> to the <strong>hardware</strong> or <strong>software</strong> components of the system. These changes can substantially affect the <strong>performance characteristics</strong> of the infrastructure, and failing to account for them may result in <strong>performance degradation</strong> or <strong>prediction errors</strong>. For instance, <strong>upgrading CPUs</strong>, adding more <strong>memory</strong>, switching <strong>storage types</strong> (e.g., from HDD to SSD), or updating critical components like the <strong>Kubernetes version</strong> or <strong>system libraries</strong> can drastically alter system behavior in ways that the <strong>current model</strong> may not understand or predict effectively. This is why retraining becomes essential to adapt to these <strong>shifts in system configuration</strong>.</p><p>In addition to retraining triggered by <strong>known changes</strong>, it is a best practice to schedule <strong>periodic model retraining</strong>, for example, on a <strong>monthly</strong> or <strong>quarterly</strong> basis. This is crucial for capturing <strong>gradual shifts</strong> in <strong>workloads</strong>, <strong>usage patterns</strong>, and the <strong>aging of infrastructure</strong>. Over time, as systems evolve, <strong>concept drift</strong> and <strong>data drift</strong> may occur, where the statistical properties of the incoming data change, leading to a mismatch between the model’s training data and the current system behavior. Periodic retraining ensures that the model remains <strong>robust</strong> and <strong>relevant</strong>, maintaining <strong>high prediction accuracy</strong> even as workloads evolve and hardware ages.</p><p>To automate this, an <strong>incremental learning</strong> approach or <strong>online learning</strong> paradigm can be employed, where the model continuously adapts to incoming data without needing a complete retraining cycle. In cases where <strong>batch training</strong> is necessary, it can be managed with <strong>CI/CD pipelines</strong> for <strong>model versioning</strong> and <strong>model deployment</strong>, ensuring seamless transitions between model versions. Utilizing <strong>model drift detection</strong> techniques such as <strong>Kullback-Leibler divergence</strong> or <strong>population stability index (PSI)</strong> can also aid in identifying when retraining is necessary due to shifts in input distributions or system performance.</p><p>Additionally, <strong>hyperparameter optimization</strong> through techniques like <strong>grid search</strong>, <strong>random search</strong>, or <strong>Bayesian optimization</strong> can be incorporated during retraining to fine-tune the model, adapting it better to the new system configurations. <strong>AutoML</strong> tools can assist in automating these retraining cycles by leveraging techniques such as <strong>meta-learning</strong> to optimize model selection and configuration dynamically.</p><p>By scheduling periodic retraining and incorporating automated pipelines for continuous integration, <strong>model monitoring</strong>, and <strong>model performance tracking</strong>, you ensure that the system remains adaptive and resilient to changes in the underlying infrastructure, preventing <strong>model obsolescence</strong> and ensuring <strong>predictive accuracy</strong> over time.</p><p><strong>How do we account for the fact that each data center contains different types of servers with varying processing capabilities?</strong></p><p>When working across multiple <strong>data centers</strong>, each hosting servers with varying <strong>hardware profiles</strong> and <strong>processing capabilities</strong>, it becomes essential to capture <strong>server-specific metadata</strong> during the data collection phase. This metadata not only includes <strong>Cluster ID</strong> and <strong>Server ID</strong>, but also a comprehensive set of <strong>hardware attributes</strong> such as <strong>CPU type</strong>, <strong>core count</strong>, <strong>clock speed</strong>, <strong>memory size</strong>, <strong>storage type</strong> (e.g., <strong>SSD</strong>, <strong>HDD</strong>, <strong>NVMe</strong>), and <strong>network bandwidth</strong>. These details provide a rich set of <strong>contextual features</strong> that can significantly enhance the performance of the model by giving it the necessary information to learn the nuances of each server’s capabilities.</p><p>When preparing the <strong>training data</strong>, incorporating this hardware metadata as <strong>input features</strong> allows the model to differentiate performance expectations across different server types. For instance, a model can learn that a server with a <strong>high-core-count CPU</strong> and <strong>large memory size</strong> will have different <strong>latency</strong> and <strong>throughput</strong> expectations than one with fewer cores or less memory. This leads to <strong>personalized model predictions</strong> based on the server’s specific hardware profile, rather than assuming all servers perform uniformly under identical conditions.</p><p>By <strong>factoring hardware differences</strong> directly into the training data, the model can build a more <strong>context-aware predictive framework</strong>, which enables it to more accurately forecast system behavior based on the <strong>server’s physical and network characteristics</strong>. This approach helps avoid issues of <strong>bias</strong> or <strong>underfitting</strong>, where the model might otherwise fail to recognize the impact of <strong>hardware heterogeneity</strong> on performance metrics like <strong>response time</strong>, <strong>resource utilization</strong>, or <strong>failure rates</strong>.</p><p>Additionally, incorporating hardware metadata can be a key driver in training models that employ <strong>multi-modal learning</strong>, where both system performance data and server specifications are integrated into a <strong>hybrid feature space</strong>. Using techniques like <strong>feature engineering</strong>, the model can learn complex relationships between hardware attributes and system performance, allowing it to account for both <strong>linear</strong> and <strong>nonlinear</strong> dependencies in the data.</p><p>The inclusion of this metadata also paves the way for building <strong>context-aware anomaly detection</strong> systems that can identify when a server is deviating from its typical performance profile, even if it is operating under a new workload or system configuration. <strong>Time-series forecasting</strong> techniques such as <strong>LSTMs</strong> or <strong>GRUs</strong> can leverage this metadata over time to predict <strong>resource exhaustion</strong> or <strong>hardware failure</strong> risks more accurately, enabling <strong>proactive maintenance</strong> or <strong>capacity planning</strong>.</p><p>In a distributed environment like this, the system could also use <strong>edge computing</strong> principles to run real-time predictive models directly on the servers, reducing latency and optimizing the overall <strong>resource allocation</strong> process. Finally, techniques like <strong>reinforcement learning</strong> can be employed to optimize performance across different clusters by dynamically adjusting the <strong>workload distribution</strong> based on real-time predictions influenced by the server metadata.</p><p><strong>How do we reconcile the log lines with the metrics coming from different servers across data centers?</strong></p><p>Due to the increased complexity of the systems involved it might be a reasonable idea to create two distinct LLM instances.</p><p><strong>Performance Monitoring LLM</strong>:<br> This LLM would be fine-tuned on performance metrics (e.g., CPU usage, memory consumption, disk I/O, throughput, etc.) across all data centers and servers. It would focus on identifying trends, predicting resource bottlenecks, and suggesting optimizations. It would respond to queries like, <em>“What’s the expected CPU load for this cluster tomorrow?”</em> or <em>“Alert me if memory usage crosses 80% in any data center.”</em></p><p><strong>Log Analysis LLM</strong>:<br> The second LLM would be fine-tuned specifically on the logs generated by the servers and clusters. It would be trained to understand error messages, stack traces, warnings, and system events. This LLM would provide insights into system failures, correlate errors, and suggest troubleshooting steps. It would answer queries like, <em>“What caused the recent failure in server X?”</em> or <em>“Show me all errors in the last 24 hours from Cluster A.”</em></p><blockquote>That naturally leads us to the next challenge: <strong>how do we query both LLMs (Performance Monitoring LLM and Log Analysis LLM) and make sense of the combined data?</strong> One possible approach is to build an <strong>orchestration layer</strong> that intelligently routes queries, fetches responses from both LLMs, and stitches the results together into a coherent, intelligible output.<br> The orchestration layer would act as a smart mediator, deciding which LLM (or both) to engage based on the nature of the query and then merging their insights into a unified response.<br> Of course, I haven’t tried this yet — but it sounds like a fun and slightly dangerous experiment that could either solve a lot of problems or leave us tangled in a new set of goat-chasing adventures.</blockquote><p>Conclusion — <br>In the end, even LLMs might have a tough time figuring out why our production servers misbehave every time, but they could certainly save us from the madness of staring at graphs that bounce around like there’s no end. Sure, we might still feel like we’re chasing goats through a never-ending maze, but at least now we’ll have an LLM to make sense of it all with a little more precision.</p><p>So, here’s to deploying multiple LLM instances, generating and labeling all that data, and finally wrangling some real insights out of the chaos! Good luck — and leave a comment if you give the full thing a try.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Du6kKSQ-PiBsAG02" /><figcaption>Photo by <a href="https://unsplash.com/@hrmarkley?utm_source=medium&amp;utm_medium=referral">Hannah Markley</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56c0388588d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the AI Curtain: LLMs Explained for Non-Techies]]></title>
            <link>https://medium.com/@srijondas/behind-the-ai-curtain-llms-explained-for-non-techies-e7d41cc6168b?source=rss-d0c6f5fd2135------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7d41cc6168b</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Srijon Das]]></dc:creator>
            <pubDate>Wed, 23 Apr 2025 15:56:04 GMT</pubDate>
            <atom:updated>2025-05-02T11:52:03.294Z</atom:updated>
            <content:encoded><![CDATA[<h3>Behind the AI Curtain: ChatGPT/LLMs Explained for Non-Techies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ItYzrIDJJs1hai0yksn2jA.png" /></figure><p>To many, ChatGPT seems like black magic — an AI that appears to think on its own, delivering answers on everything from writing application code to crafting the perfect breakfast sandwich. But behind the scenes, it’s all mathematics. Researchers have built models that process vast amounts of text from countless sources, learning patterns and structures to generate responses that feel natural and easy to understand.</p><p>In this guide, we’ll break down the math behind it — what powers these models, what the key configurations are, and what the common AI buzzwords (especially in the context of LLMs) actually mean. We’ll also use simple analogies from real life to help connect these concepts to everyday experiences, making it easier for laypeople and students to grasp the intricacies of AI for the first time.</p><h3>The Transformer Model</h3><h3>1. Tokenization :</h3><p>Let’s start with the input — what actually happens when you type a question like <strong>“Why is the cat running?”</strong> into ChatGPT or any other large language model (LLM)?</p><ul><li>The first step is <strong>tokenization</strong>. This means the sentence is broken down into smaller chunks called <strong>tokens</strong>. Tokens can be whole words, parts of words, or even punctuation marks — whatever makes it easier for the model to process and understand the input. For example, your sentence might get split into: “<em>why”, “is”, “the”, “cat”, “run”, “ing”</em></li></ul><blockquote>Notice how the word <strong>“running”</strong> is split into <strong>“run”</strong> and <strong>“*ing”</strong>. This kind of splitting helps the model generalize better. Instead of memorizing every form of every word, it learns the root (“run”) and the suffix (“*ing”), allowing it to understand grammar, tenses, and similar words more efficiently.</blockquote><h3>2. Embedding:</h3><p>Next, for each of these tokens, the model assigns a <strong>meaning</strong> using what you can think of as a <strong>digital dictionary</strong>. This process is called <strong>embedding</strong>.</p><blockquote>In simple terms, each token — like <strong>“cat”</strong> or <strong>“run”</strong> — is translated into a long list of numbers, often with <strong>768 dimensions</strong> . You can think of dimensions as meanings of a word. It is similar to assigning <strong>768 </strong>different<strong> “meanings”</strong> to each token, covering every possible meaning that the word might have in the English language.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8p3ATo3n9COf9tY3" /><figcaption>Photo by <a href="https://unsplash.com/@brett_jordan?utm_source=medium&amp;utm_medium=referral">Brett Jordan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>3. Self Attention :</h3><p>To understand the next part lets play a small game.</p><p>We’ll try to guess the meaning of a few German sentences. Even if you don’t know German, don’t worry — you might recognize some words because they’re quite similar to English. Ready to give it a try?</p><p><strong>Ich trinke Wasser.<br>Wasser ist gut.<br>Wasser ist kalt.</strong></p><p>These are roughly areas which comes to your mind to try and understand the sentences.</p><ul><li>What are these sentences about? (Wasser seems to be the common thing)</li><li>Can I recognize some of the words? (Wasser is probably water)</li><li>If Wasser is water how is it related to the other words?</li></ul><p>These three questions are answered using math. Q, V, K are used to denote these three questions.</p><pre>Q - What are these sentences about? <br>V - Can I recognize some of the words? <br>K - How is one word related to the other words?</pre><p>At the end of this layer, the three layer Q, V, K are combined using a Softmax function which gives a single matrix as an output.</p><blockquote>The math used to find the values for Q, V, K (Self-Attention in Transformers)are :</blockquote><blockquote>Stochastic Gradient Descent</blockquote><blockquote>Softmax</blockquote><blockquote>Dot Product and Cosine similarity</blockquote><h3><strong>4. Feedforward Network (FFN)</strong> :</h3><p>The next step is FFN(Feedforward Network) <br>Think of a <strong>Feedforward Network (FFN)</strong> like a <strong>mini decision-making filter</strong> inside your brain — it takes a bunch of thoughts (input), processes them in stages, and gives you a clearer idea (output).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*84CsbBOUd2kGfR_g" /><figcaption>Photo by <a href="https://unsplash.com/@daphne_befrenchie?utm_source=medium&amp;utm_medium=referral">Daphné Be Frenchie</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Lets think your friend tells you this, “We’re going on a trip, and you can bring 3 things: a snack, a sports item, and a book.”</p><p>Immediately, your brain sparks with ideas — dozens of snacks, toys, and books come to mind! But you don’t pack everything. Instead, you filter through the chaos and pick something sensible.</p><p>That’s exactly what the FFN does.</p><ol><li><strong>First Layer (Hidden Layer)</strong> — This is where your brain explores <strong>all the possibilities</strong>. It takes your initial thoughts and transforms them into a bigger set of ideas — things like “I can take chocolates to the trip”, “I can take a hockey stick to the trip”, “I can take a cricket bat to the trip”, “Will the chocolates melt?”, “Will my friends like to play hockey during the trip?”, “Should I take a big book?”, “Do I take a comics book?”</li><li><strong>ReLU Activation</strong> — Now your mind says: “Forget the bad ideas!” The ReLU step removes negative or unhelpful thoughts and keeps only the useful ones. In this case you will have three good ideas: “I will take a chocolate bar”, “I will take a cricket bat”, “I will take a comics book”.</li><li><strong>Second Layer (Output Layer)</strong> — Finally, your brain condenses the three good ideas into a single smart choice: a chocolate bar, a cricket bat, and your favorite comic book.</li></ol><p>In a Transformer, the FFN layer acts exactly like this — taking the raw output from self-attention and refining it into something more focused and meaningful.</p><blockquote>One thing you often hear in AI and LLMs is ‘<strong>weights and biases</strong>’ — these are values inside the neural network that are mainly altered (trained) in the <strong>Attention layers</strong> and <strong>Feedforward (FFN) layers</strong>.</blockquote><h3>5. Residual Connection:</h3><p>For the next step consider that the input to the FFN layer was how to ride a mountain bike and the output of the FFN layer is a filtered set of instructions about how to ride a mountain bike. But now you have a new problem these set of instructions from the FFN layer has totally forgotten how to ride a regular bike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0Uxne451yNKdPchV" /><figcaption>Photo by <a href="https://unsplash.com/@dhika88?utm_source=medium&amp;utm_medium=referral">Andhika Soreng</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So, now we need to mix the input of the FFN layer back to the output of the FFN layer so that we get the best results.</p><blockquote>Always remember this is not a feedback loop, we are just adding the input to the output, so that we do not lose the information contained in the input.</blockquote><h3>6. LM Head (Language Modeling Head):</h3><p>The final step is predicting the next word based on all the previous processing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c0kTpryVxAipXzeE" /><figcaption>Photo by <a href="https://unsplash.com/@jupp?utm_source=medium&amp;utm_medium=referral">Jonathan Kemper</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This prediction happens iteratively, one word at a time. When we type a query into ChatGPT, we can actually see this in action — each word appears as it is generated in real-time.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7d41cc6168b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Istio Demystified]]></title>
            <link>https://medium.com/@srijondas/istio-demystified-c3170472430c?source=rss-d0c6f5fd2135------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3170472430c</guid>
            <category><![CDATA[istio-service-mesh]]></category>
            <category><![CDATA[istio-service-tutorial]]></category>
            <category><![CDATA[service-mesh]]></category>
            <category><![CDATA[istio]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Srijon Das]]></dc:creator>
            <pubDate>Thu, 20 Jun 2024 13:24:00 GMT</pubDate>
            <atom:updated>2024-06-20T13:41:24.331Z</atom:updated>
            <content:encoded><![CDATA[<p>Why do we need yet another proxy server when we got Nginx, Apache, Node, Tomcat and others?</p><ol><li>Dynamic Configuration — The ability to use APIs for dynamic configuration changes is highly sought after due to the large-scale deployment of cloud-based applications.</li></ol><p>Apache and Tomcat provide very limited ability to change the configurations once the application has been deployed. Though Nginx does provide the ability to dynamically change configurations, the configuration files of Nginx are itself clumsy and not well structured. (Nginx was built at a time, when webservers had just one purpose — to serve static content fast, and Nginx did that really well). Due to the advent of cloud technologies and growth of internet in general, we have the problem of organizing the configuration files of proxy servers in a better way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3170472430c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>