<?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 Anujaya Vidmal on Medium]]></title>
        <description><![CDATA[Stories by Anujaya Vidmal on Medium]]></description>
        <link>https://medium.com/@anujayavidmal_71144?source=rss-a2dbb5b19f6c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ySDR0Zx8JLae2WqZ</url>
            <title>Stories by Anujaya Vidmal on Medium</title>
            <link>https://medium.com/@anujayavidmal_71144?source=rss-a2dbb5b19f6c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:00:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anujayavidmal_71144/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[Ever wondered how does SSH work?]]></title>
            <link>https://medium.com/@anujayavidmal_71144/ever-wondered-how-does-ssh-work-8d9d328338c5?source=rss-a2dbb5b19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d9d328338c5</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Anujaya Vidmal]]></dc:creator>
            <pubDate>Tue, 26 May 2026 04:01:09 GMT</pubDate>
            <atom:updated>2026-05-26T04:01:09.415Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PYpqaNlYNPn0apAsAQSI8A.png" /></figure><p>Ever wondered what actually happens under the hood when you type ssh user@remote? It feels like magic, but it’s actually a highly coordinated dance between your machine (the <strong>SSH Client</strong>) and the remote machine (the <strong>SSH Server). </strong>Before we look at the steps, let’s define who is talking:</p><p><strong>The SSH Client:</strong> This is <strong>you</strong> (your laptop or local machine). It’s the requester initiating the connection because you want to control something remotely.</p><p><strong>The SSH Server:</strong> This is the <strong>remote machine</strong> (a cloud instance, a company server, or a Raspberry Pi across the room). It’s the host that stays put, listens for incoming connections, and runs your commands once you’re let in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*Z-EZv43RLRmzCqGn_oW3pA.jpeg" /></figure><h3>Phase 1: The Handshake &amp; Secret Agreement</h3><p>Before any secure data can pass through, the client and the server need to introduce themselves and agree on how they are going to talk.</p><ol><li><strong>Establish TCP Connection:</strong> The client knocks on the server’s door (usually on Port 22) to establish a basic connection.</li><li><strong>Version Negotiation:</strong> They swap notes on what version of the SSH protocol they are running to make sure they’re compatible.</li><li><strong>Supported Algorithms Negotiation:</strong> They agree on a “crypto-recipe” — picking the best encryption algorithms they both support to protect the upcoming session.</li></ol><h3>Phase 2: Key Exchange &amp; Authentication</h3><p>This is where the actual security kicks in. The goal here is twofold: create a temporary session key to encrypt the data, and prove the client actually has permission to log in.</p><p><strong>4. Generate Key Pairs:</strong> The client generates a temporary pair of keys (a public one and a private one).</p><p><strong>5. Send Public Key:</strong> The client sends its public key over to the server.</p><p><strong>6. Initiate a Login Request:</strong> The client asks to log in. <em>Crucially, around this time, both sides independently calculate a temporary </em><strong><em>Session Key</em></strong><em>. This key is what will encrypt all future data.</em></p><p><strong>7. Found Matching Key:</strong> The server checks its ~/.ssh/authorized_keys file. If it finds a match for the client, it generates a random number and encrypts it using the client’s public key.</p><p><strong>8. Return an Encrypted Random Number:</strong> The server sends this encrypted puzzle back to the client. Only the true owner of the private key can solve it.</p><p><strong>9. Decrypt Data Using Private Key:</strong> The client uses its secret private key to decrypt the number.</p><p><strong>10. Send Decrypted Data:</strong> The client sends the solved number back to the server.</p><p><strong>11. Verify Client’s Decryption:</strong> The server checks the answer. If it matches, the server says, <em>“Awesome Anujaya </em>😎<em> , you are who you say you are.”</em></p><h3>Phase 3: The Secure Session</h3><p>Now that the identity is verified and the tunnel is secure, the real work begins.</p><p><strong>12. Session Request and Response:</strong> The formal secure session is officially opened.</p><p><strong>13 &amp; 14. Send Encrypted Commands:</strong> You type a command. Your client encrypts it using that <strong>Session Key</strong> we calculated earlier, sends it over, and the server decrypts it to run it.</p><p><strong>15 &amp; 16. Send Encrypted Result:</strong> The server runs your command, encrypts the output with the session key, and sends it back. Your client decrypts it and displays it on your screen.</p><p>And there you have it! The next time you fire up your terminal and run an SSH command, you’ll know exactly what’s happening in that split second before your prompt changes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d9d328338c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Records — Discovering the Man Behind the Champion]]></title>
            <link>https://medium.com/@anujayavidmal_71144/beyond-the-records-discovering-the-man-behind-the-champion-63be09044313?source=rss-a2dbb5b19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/63be09044313</guid>
            <dc:creator><![CDATA[Anujaya Vidmal]]></dc:creator>
            <pubDate>Tue, 03 Feb 2026 18:54:26 GMT</pubDate>
            <atom:updated>2026-02-03T18:54:26.907Z</atom:updated>
            <content:encoded><![CDATA[<h3>Beyond the Records — Discovering the Man Behind the Champion</h3><p>Recently, I had the chance to look more deeply into the character of Novak Djokovic not because of his records, but because of the person he is beyond the trophies.</p><p>Yes, the numbers are extraordinary. Yes, the titles are historic. But what truly captured my heart was not his greatness as an athlete, it was his greatness as a human being.</p><p>Every time I listen to his post-match speeches, I notice the same beautiful pattern: genuine respect for his opponent, sincere appreciation for their team, and a deep understanding of the effort it takes to reach that level. And just when the moment becomes intense and emotional, he often adds a light, playful joke effortlessly turning tension into warmth, and even critics into smiling listeners.<br> That rare blend of humility, confidence, and kindness says far more about him than any statistic ever could.</p><h3>Grace in Defeat and Respect for the Next Generation</h3><p>What moved me most is how Novak behaves when he loses.</p><p>I have watched several of his defeats, and in every single one of them he openly and generously praised his opponent’s skills, preparation, and courage. There was no bitterness. No excuses. Only respect.</p><p>He accepts defeat with remarkable grace, showing the world how a true champion loses: with dignity, emotional control, and deep sportsmanship. The ability to absorb disappointment without resentment is extremely rare, and it reflects a level of maturity and inner strength that few people reach.</p><p>I was especially touched when I watched him lose against Carlos Alcaraz in a 2026 Australian Open final. Even at this stage of his career, he speaks about young players with genuine admiration. He celebrates the new generation instead of protecting his own legacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x5uf4UR5fY_Bxg4K3VlgyQ.jpeg" /></figure><p>After Alcarz won the semi final match, he personally went to congratulate Alcaraz and, true to his character, even added a small, warm joke. It was a simple moment, yet incredibly powerful.The same gesture can be seen even aftr the he lost the final.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*aNxKQdlyQAMwDYIt77Zd3A.jpeg" /></figure><p>I also clearly remember his words after the <a href="https://youtu.be/867mtHTsaDo?si=FQPdTvoc7onoKPAZ">Wimbledon final in 2023</a> against Alcaraz:</p><blockquote><strong><em>“I lost to a better player, and I have to congratulate him.”</em></strong></blockquote><p>Such honesty from a champion of his stature is not weakness.<br> It is strength.</p><h3>Humility, Maturity, and a Lesson That Goes Beyond Sport</h3><p>What I admire most is that Novak never forgets the people who helped shape his journey. He consistently speaks with deep respect about his greatest rivals Roger Federer and Rafael Nadal acknowledging how they pushed him, inspired him, and elevated the sport together.</p><p><em>He is not afraid to face the world in defeat.<br>He never hides behind excuses.<br>He never diminishes others to protect his own image.</em></p><p>This humility became even clearer to me during <a href="https://youtu.be/_6A4Z1_VvXg?si=K-G5ESbJYtAjnT6c">his interview with Piers Morgan</a>, when he was asked whether he is the greatest of all time. His answer deeply impressed me.He explained that,</p><blockquote><em>“Calling myself the greatest can feel disrespectful to the generations who paved the way especially players like Federer and Nadal and to the history of tennis that all of us enjoy today.”</em></blockquote><p>Hearing such words from one of the most successful athletes in the world was truly inspiring. It takes real emotional intelligence, maturity, and a deep understanding of life to think this way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HkyjRL_pbxqvX0A479aNuA.jpeg" /></figure><p>I also watched his <a href="https://youtu.be/QoAoefT3VJc?si=VOh8OUVyTaxKfWEx">conversation with Jay Shetty</a>, where he spoke about his mindset, emotional discipline, and inner struggles. I was genuinely fascinated by how thoughtfully and honestly he described the mental side of competition and of life itself. Once again, his self-awareness and maturity stood out even more than his achievements.</p><p>For me, Novak Djokovic represents something far bigger than winning titles.</p><p>He reminds us that we must be humble in victory, humble in defeat and above all, humane.</p><p>I admire Novak not only as a sportsman, but as a person.I will continue to admire and learn from his sportsmanship both on and off the court.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63be09044313" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keeping LLMs Up-to-Date: Fine-Tuning vs Retrieval-Augmented Generation (RAG)]]></title>
            <link>https://medium.com/@anujayavidmal_71144/keeping-llms-up-to-date-fine-tuning-vs-retrieval-augmented-generation-rag-3c5d98592cb4?source=rss-a2dbb5b19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c5d98592cb4</guid>
            <dc:creator><![CDATA[Anujaya Vidmal]]></dc:creator>
            <pubDate>Tue, 19 Aug 2025 05:19:28 GMT</pubDate>
            <atom:updated>2025-08-19T05:19:28.044Z</atom:updated>
            <content:encoded><![CDATA[<p>Large Language Models (LLMs) like GPT, LLaMA, and Claude are trained on massive datasets, but their knowledge is <strong>frozen at the time of training</strong>. This means that a model trained in 2021 won’t know about events, discoveries, or trends from 2023.</p><p>So, how do we update LLMs with new knowledge? There are two main approaches: <strong>fine-tuning</strong> and <strong>Retrieval-Augmented Generation (RAG)</strong>. Let’s explore both.</p><h3>1. Fine-Tuning LLMs</h3><p>Fine-tuning updates the <strong>internal weights</strong> of a model so it directly incorporates new knowledge.</p><h3>How Fine-Tuning Works</h3><ol><li><strong>Prepare a dataset</strong> with the new knowledge or domain-specific information.</li></ol><ul><li>Examples: medical research papers, product manuals, or recent news articles.</li></ul><p><strong>2. Select a fine-tuning method</strong>:</p><ul><li><strong>Full fine-tuning:</strong> Updates all model parameters (computationally heavy).</li><li><strong>LoRA/QLoRA:</strong> Trains small adapter modules while keeping the main model frozen (memory-efficient).</li></ul><p><strong>3. Train the model</strong> on the dataset.</p><p><strong>4. Deploy:</strong> The model now “knows” the updated knowledge internally.</p><h3>Pros of Fine-Tuning</h3><ul><li>Knowledge is embedded <strong>directly in the model</strong>.</li><li>No external data retrieval needed at inference time.</li><li>Allows teaching <strong>custom behavior or style</strong> (e.g., formal tone, domain-specific instructions).</li></ul><h3>Cons of Fine-Tuning</h3><ul><li>Can be <strong>compute- and memory-intensive</strong>.</li><li>Updating for new information requires retraining.</li><li>Risk of <strong>catastrophic forgetting</strong> — the model may lose some of its old knowledge.</li></ul><p><strong>Analogy:</strong> Fine-tuning is like <strong>rewiring the brain of the model</strong> to remember new facts.</p><h3>2. Retrieval-Augmented Generation (RAG)</h3><p>RAG leaves the base model frozen and supplements it with <strong>external knowledge</strong> at inference time.</p><h3>How RAG Works</h3><ol><li>Convert all documents in your knowledge base into <strong>vector embeddings</strong>.</li><li>At inference:</li></ol><ul><li>Convert the user query into embeddings.</li><li>Retrieve the <strong>most relevant documents</strong> from the database.</li><li>Append retrieved context to the prompt for the model.</li></ul><p>3. The model generates responses using both its internal knowledge and the retrieved context.</p><h3>Pros of RAG</h3><ul><li>Handles <strong>frequently updated knowledge</strong> without retraining.</li><li>Less compute and memory-intensive.</li><li>No risk of forgetting old knowledge.</li></ul><h3>Cons of RAG</h3><ul><li>Slightly slower inference due to the retrieval step.</li><li>Output quality depends on the relevance of retrieved documents.</li><li>Model can hallucinate if context is missing or ambiguous.</li></ul><p><strong>Analogy:</strong> RAG is like giving the model a <strong>searchable encyclopedia</strong>. It consults the encyclopedia whenever it needs current facts.</p><h3>3. When to Use Fine-Tuning vs RAG</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RWgeMNcwwrbEAhcZtFsdlA.png" /></figure><h3>4. Combining Fine-Tuning and RAG</h3><p>Many modern applications use <strong>both</strong>:</p><ul><li>Base model is fine-tuned for <strong>domain expertise or behavior</strong>.</li><li>RAG provides <strong>up-to-date knowledge</strong> dynamically at inference time.</li></ul><p>This approach combines the <strong>best of both worlds</strong>: specialized behavior plus current information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c5d98592cb4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transformers: The Brain Behind Large Language Models (LLMs)]]></title>
            <link>https://medium.com/@anujayavidmal_71144/transformers-the-brain-behind-large-language-models-llms-58c99cb21b81?source=rss-a2dbb5b19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/58c99cb21b81</guid>
            <dc:creator><![CDATA[Anujaya Vidmal]]></dc:creator>
            <pubDate>Tue, 19 Aug 2025 04:23:18 GMT</pubDate>
            <atom:updated>2025-08-19T04:23:18.099Z</atom:updated>
            <content:encoded><![CDATA[<p>Large Language Models (LLMs) like GPT, LLaMA, and Claude have revolutionized AI, enabling machines to generate text, summarize content, translate languages, and more. But what powers these models under the hood? The answer is <strong>Transformers</strong> — the neural network architecture that allows LLMs to understand context, handle long sequences, and generate coherent text.</p><p>In this article, we’ll explore why transformers are necessary, how they work, and how they fit into the broader picture of LLMs.</p><p><strong>Why Do We Need Transformers?</strong></p><p>Before transformers, models like <strong>RNNs</strong> (Recurrent Neural Networks) and <strong>LSTMs</strong> (Long Short-Term Memory networks) were the standard for sequential data. However, they had major limitations:</p><ol><li><strong>Long-Range Dependencies:</strong> RNNs process sequences step by step. Words early in a sentence often “fade” from memory, making it difficult to capture long-term context.</li></ol><ul><li>Example: In “The cat that chased the mouse yesterday is sleeping now,” predicting “is sleeping” requires remembering “cat,” not “mouse.”</li></ul><p><strong>2. Sequential Processing:</strong> RNNs cannot process tokens in parallel, which slows training and inference for long sequences.</p><p>Transformers solve both problems by using <strong>self-attention</strong>, allowing the model to see all tokens at once, and enabling <strong>parallel computation</strong>. This is why modern LLMs rely almost exclusively on transformers.</p><h3>The Transformer Architecture: Step by Step</h3><p>Transformers consist of several building blocks, primarily <strong>attention mechanisms</strong> and <strong>feed-forward networks</strong>.</p><h3>1. Input Embeddings + Positional Encoding</h3><ul><li>Tokens are converted into <strong>vectors (embeddings)</strong>.</li><li><strong>Positional encodings</strong> are added to maintain the order of words since transformers process tokens in parallel.</li></ul><p>Example: “The cat sleeps” → embeddings + position [0,1,2]</p><h3>2. Self-Attention</h3><p>Self-attention allows each token to “look at” every other token to understand context.</p><ol><li>Compute <strong>Queries (Q), Keys (K), and Values (V)</strong></li><li>Compute attention scores</li><li><strong>Multi-head attention</strong>: Multiple Q/K/V sets allow the model to capture different types of relationships in parallel.</li></ol><p><strong>Intuition:</strong> Each word decides how much attention to give to every other word.</p><p>Example: In “The cat sat on the mat,” when predicting “sat,” the model pays more attention to “cat” than “mat.”</p><h3>3. Feed-Forward Layers</h3><p>After attention, each token vector passes through a <strong>fully connected feed-forward network</strong>, adding non-linear transformations and enriching token representations.</p><h3>4. Residual Connections + Layer Normalization</h3><ul><li>Helps <strong>stabilize training</strong> and prevent vanishing gradients.</li></ul><h3>5. Stacking Layers</h3><ul><li>Transformers stack multiple layers (12, 24, or even 70+) to refine token embeddings.</li><li>Each layer adds more <strong>contextual understanding</strong>, making LLMs capable of complex reasoning.</li></ul><h3>6. Output (Logits)</h3><ul><li>Final embeddings are projected into the <strong>vocabulary space</strong>, generating <strong>logits</strong> — probabilities for the next token.</li><li>The model then selects the next token using a decoding strategy (greedy, top-k, top-p, or temperature-controlled sampling).</li></ul><h3>How Transformers Fit Into LLMs</h3><ol><li><strong>Input:</strong> Text → tokenized → embeddings</li><li><strong>Transformer layers:</strong> Contextualize embeddings via multi-head self-attention + feed-forward layers</li><li><strong>Output logits:</strong> Predict next token</li><li><strong>Iterate:</strong> Autoregressive generation for full text</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58c99cb21b81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Large Language Models (LLMs): From Basics to Quantization and Fine-Tuning]]></title>
            <link>https://medium.com/@anujayavidmal_71144/understanding-large-language-models-llms-from-basics-to-quantization-and-fine-tuning-6ad30eb0ca3a?source=rss-a2dbb5b19f6c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ad30eb0ca3a</guid>
            <dc:creator><![CDATA[Anujaya Vidmal]]></dc:creator>
            <pubDate>Tue, 19 Aug 2025 04:08:43 GMT</pubDate>
            <atom:updated>2025-08-19T04:08:43.114Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial Intelligence has transformed the way we interact with technology, and Large Language Models (LLMs) are at the heart of this revolution. Tools like ChatGPT, Claude, and LLaMA have shown that machines can generate human-like text, answer questions, summarize information, and even write code. But how do these models actually work? And how can we use them efficiently, even on limited hardware?</p><p>In this article, we’ll explore LLMs step by step,from the fundamentals to advanced concepts like quantization and fine-tuning,so you can understand the full picture.</p><p><strong>What is an LLM?</strong></p><p>A Large Language Model is a neural network trained to <strong>predict the next word or token in a sequence of text</strong>. Think of it like a super-smart predictive keyboard. When you type “AI will change the future of…”, the model can predict words like “technology,” “society,” or “education” based on what it has learned.</p><p>Larger models generally understand context better and can generate more accurate or coherent text. However, bigger models also require more memory and computing power.</p><p><strong>How LLMs “see” text</strong></p><p>LLMs don’t understand text like humans. They process <strong>tokens</strong>, which are numerical representations of words or word pieces.</p><p><strong><em>Tokenization</em></strong><em>: Converts text into numbers.</em></p><p><strong>Embeddings</strong>: Each token is converted into a vector of numbers, capturing its meaning in context.</p><h4>These embeddings are the “language understanding” that the model uses to make predictions.</h4><h3>How LLMs Generate Text (Inference)</h3><p>Generating text, or inference, is a step-by-step process:</p><ol><li><strong>Tokenize</strong> the input text.</li><li><strong>Forward pass</strong>: Run tokens through transformer layers to get probabilities (logits) for the next token.</li><li><strong>Decoding</strong>: Pick the next token using strategies like:</li></ol><ul><li>Greedy: always pick the most likely token</li><li>Top-k / Top-p: sample among likely candidates</li><li>Temperature: control randomness</li></ul><p><strong>4. Repeat</strong> until reaching a stop condition (max length or special end-of-sequence token).</p><p><strong>KV cache</strong> helps with long sequences, storing past attention values to avoid recomputation, which speeds up generation.</p><h3>Why Inference Can Be Expensive</h3><p>Each token requires a full forward pass through all layers. For large models and long sequences, this can become very computationally expensive. Attention mechanisms also scale quadratically with sequence length, making efficient hardware and optimizations crucial.</p><h3><strong>Quantization: Making LLMs Smaller and Faster</strong></h3><p><strong>Quantization</strong> is the process of reducing the precision of model weights (and sometimes activations):</p><ul><li>FP16 → 16-bit floating point</li><li>INT8 → 8-bit integers</li><li>INT4 → 4-bit integers</li></ul><p><strong>Why use it?</strong></p><ul><li>Reduces memory usage → run bigger models on smaller GPUs.</li><li>Speeds up inference → smaller numbers = faster calculations.</li><li>Slight accuracy loss is often acceptable for most tasks.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ad30eb0ca3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>