<?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 Itsthanga on Medium]]></title>
        <description><![CDATA[Stories by Itsthanga on Medium]]></description>
        <link>https://medium.com/@itsthanga?source=rss-2e752534b03e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*_aqWN_WjE3iaxr6T29vt7w.jpeg</url>
            <title>Stories by Itsthanga on Medium</title>
            <link>https://medium.com/@itsthanga?source=rss-2e752534b03e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:32:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itsthanga/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[ Inside the Minds of Large Language Models: How They Work and Why They Matter]]></title>
            <link>https://medium.com/@itsthanga/inside-the-minds-of-large-language-models-how-they-work-and-why-they-matter-29484202a65f?source=rss-2e752534b03e------2</link>
            <guid isPermaLink="false">https://medium.com/p/29484202a65f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[llmops]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Itsthanga]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 11:40:17 GMT</pubDate>
            <atom:updated>2025-08-05T11:40:17.123Z</atom:updated>
            <content:encoded><![CDATA[<p><em>From chatbots to operating systems — LLMs are transforming how we think about computing.</em></p><h3>Introduction</h3><p>Large Language Models (LLMs) are reshaping how we interact with technology. They generate human-like text, answer complex questions, write code, and even create images. But how do they work? What powers their intelligence, and what risks do they bring?</p><p>In this blog, I’ll take you through key insights from a detailed talk on LLMs. We’ll explore their architecture, training process, capabilities, limitations, security threats, and the evolving future of this groundbreaking technology — with Meta’s LLaMA 2 70B as our guide.</p><h3>What Is a Large Language Model?</h3><p>At the heart of every LLM are two core components:</p><p>A <strong>massive parameter file</strong> (e.g., 140GB for LLaMA 2 70B), which contains billions of weights representing what the model has learned.</p><p>A <strong>lightweight executable program</strong>, often written in C or Python, that enables inference (i.e., making predictions).</p><p>These weights don’t store exact facts but encode a <strong>lossy, compressed summary</strong> of the internet’s knowledge. Instead of memorizing, LLMs abstract patterns, semantics, and structures — allowing them to <em>generate plausible text</em>, not just repeat what they’ve seen.</p><h3>The Core Task: Next-Word Prediction</h3><p>LLMs are trained to do one thing well: <strong>predict the next word</strong> in a sequence.</p><p>It may sound trivial, but this task forces the model to internalize:</p><p>Language structure and grammar</p><p>Factual world knowledge</p><p>Reasoning and logic</p><p>Social norms and tone</p><p>This is why models trained on next-word prediction can write essays, summarize articles, solve math problems, and simulate conversation. They’ve learned how the world <em>talks</em> — and by extension, how it <em>thinks</em>.</p><h3>How LLMs Learn: Pretraining, Fine-Tuning, and RLHF</h3><p>Training an LLM involves multiple stages:</p><p><strong>Pretraining</strong>: The model ingests massive, unfiltered datasets from the internet (Reddit, Wikipedia, books, etc.). It learns general language and knowledge patterns.</p><p><strong>Fine-tuning</strong>: Smaller, curated datasets with high-quality, human-annotated Q&amp;A examples help shape the model’s tone, helpfulness, and safety.</p><p><strong>RLHF (Reinforcement Learning from Human Feedback)</strong>: Human raters rank model responses, guiding further optimization to align outputs with human preferences.</p><p>Increasingly, <strong>AI assists humans</strong> in this process, accelerating training and improving cost-efficiency.</p><h3>Scaling Laws: Why Bigger Means Better</h3><p>One of the most important discoveries in modern AI is the <strong>scaling law</strong>: model performance improves predictably as we increase:</p><p>Model size (parameters)</p><p>Dataset size</p><p>Training compute</p><p>This insight fuels today’s “bigger is better” arms race. Training top-tier LLMs costs millions and involves <strong>thousands of GPUs</strong> running for weeks. Only a handful of organizations can afford to build these frontier models (OpenAI, Google, Meta, Anthropic, etc.).</p><h3>Beyond Text: Tool Use and Multimodality</h3><p>LLMs are evolving from text generators into <strong>AI-powered digital assistants</strong>. They can now:</p><p>🧮 Use tools like calculators and code interpreters</p><p>🌐 Browse the web</p><p>🎨 Generate and interpret images</p><p>🎤 Understand and respond to speech</p><p>This <strong>multimodal capability</strong> transforms LLMs into powerful agents capable of completing complex tasks across formats — not just text.</p><h3>A New Computing Paradigm: LLMs as Operating Systems</h3><p>Here’s a radical idea: LLMs are becoming the <strong>kernel</strong> of a new computing paradigm.</p><p>Just like operating systems manage memory, processes, and files, LLMs manage:</p><p>Knowledge (via parameters and retrieval)</p><p>Context (via memory and prompts)</p><p>Tools (via plugins and APIs)</p><p>Interaction (via language and multimodal input/output)</p><p>Soon, we won’t just “use” LLMs — we’ll <strong>build ecosystems around them</strong>, with apps, agents, and specialized copilots for every domain.</p><h3>The Security Problem: Jailbreaks, Injections, and Backdoors</h3><p>But LLMs also come with serious <strong>security challenges</strong>, including:</p><p>🔓 <strong>Jailbreaks</strong>: Prompt tricks that bypass safety filters</p><p>💣 <strong>Prompt injection</strong>: Hidden commands embedded in user input</p><p>🕵️‍♂️ <strong>Data poisoning &amp; backdoors</strong>: Training data modified to produce malicious outputs</p><p>These vulnerabilities aren’t just hypothetical — they’ve been demonstrated repeatedly. Securing LLMs will require <strong>multi-layered defense strategies</strong>, robust refusal behavior, and ongoing monitoring.</p><h3>Looking Forward: What’s Next for LLMs?</h3><p>The future of LLMs is unfolding fast. Here’s what’s on the horizon:</p><h3>🧠 System 2 Thinking</h3><p>Current models are fast but shallow — “System 1” thinkers. The next leap involves <strong>deliberate, step-by-step reasoning</strong>, similar to human logic and planning.</p><h3>🔄 Self-Improvement</h3><p>Like AlphaGo, future models may learn from themselves — <strong>training beyond human examples</strong> to surpass current performance ceilings.</p><h3>🧑‍⚕️ Domain Specialization</h3><p>Rather than one general model, we’ll see <strong>many fine-tuned LLMs</strong> for law, medicine, education, finance, and more — each acting as an expert assistant in its field.</p><h3>Conclusion: The LLM OS Era Is Just Beginning</h3><p>Large Language Models are more than just AI chatbots. They’re the foundation for a new way of computing — <strong>language-first, knowledge-driven, and deeply collaborative</strong>.</p><p>From predicting the next word to orchestrating entire toolchains, LLMs are already reshaping industries. But they also bring new responsibilities — around safety, ethics, and governance.</p><p>Whether we’re developers, researchers, or everyday users, now is the time to engage, learn, and help shape the future of this powerful technology.</p><p><em>If you found this blog insightful, share it with others exploring AI or working with LLMs. And if you have thoughts or questions, drop them in the comments below. Let’s keep the conversation going.</em></p><h3>👇 Follow me for more posts on:</h3><ul><li>Generative AI &amp; LLMs</li><li>Applied Machine Learning</li><li>Data Engineering</li><li>Career insights for ML Engineers</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29484202a65f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Non-Technical Intro to Generative AI]]></title>
            <link>https://medium.com/@itsthanga/non-technical-intro-to-generative-ai-e736b6849782?source=rss-2e752534b03e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e736b6849782</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Itsthanga]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 09:35:57 GMT</pubDate>
            <atom:updated>2025-08-04T09:35:57.509Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*yUcmkWUgMoVIRns3rwHenQ.jpeg" /></figure><p>This extensive non-technical introduction to generative AI explores the evolution, key technological breakthroughs, and current landscape of large language models (LLMs) and generative AI systems. It highlights the transition from traditional AI, focused on classification and recognition, to generative AI, which creates new content such as text, code, images, audio, and video. The narrative explains the foundational role of Transformer architectures, the rise of multimodal models, and how large language models are leveraged for various applications, including Q&amp;A systems, chatbots, retrieval-augmented generation (RAG), and intelligent AI agents. The content also covers the technical underpinnings such as GPUs, CUDA, model training, fine-tuning, quantization, and the challenges of inference. It discusses the practical deployment of LLMs via APIs, the importance of open source models, and the emerging paradigm of decentralized AI to address issues of data privacy and control.</p><p>Furthermore, it provides a mental framework of five levels of LLM applications — ranging from simple Q&amp;A to chatbots with short-term memory, extending to RAG systems that incorporate long-term memory and external data sources, and culminating in agents capable of function calling and autonomous task execution. The course touches on ethical and operational challenges such as hallucination, training data transparency, copyright concerns, and regulatory questions. Finally, it envisions a future of LLM operating systems (LLMO) integrating memory, agents, tools, internet connectivity, and multimodality to form a highly intelligent, interactive AI system.</p><p><strong>Highlights</strong></p><p>🤖 Generative AI creates new content (text, code, images) rather than just analyzing existing data. <br>🔥 Transformer-based architectures are the backbone of modern large language models. <br> 🌐 Multimodal models handle multiple data types like text, images, audio, and video simultaneously. <br>🧠 Retrieval-Augmented Generation (RAG) combines LLMs with external knowledge for more accurate responses. <br>🛠️ Function calling enables LLMs to interact with APIs and external tools, foundational for AI agents. <br>🌍 Open source models and decentralized AI promote data privacy, customization, and innovation. <br>⚠️ Challenges include hallucination, training data transparency, copyright issues, and ethical rule-setting.</p><p><strong>Key Insights</strong></p><p>🧩 From Classification to Generation: Traditional AI focused on recognizing patterns (e.g., image classification, named entity recognition), whereas generative AI synthesizes novel outputs, revolutionizing creative tasks and knowledge work. This shift marks a fundamental change in AI’s capabilities and applications.</p><p>💡 Transformers and Attention Mechanism: The Transformer model architecture, utilizing attention mechanisms, enables LLMs to process large context windows efficiently, resulting in credible and sometimes superhuman outputs such as writing Shakespeare-like text or coding complex applications. This technical breakthrough is pivotal to generative AI’s success.</p><p>⚙️ Hardware and Compute Requirements: Deep learning demands massive parallel computation, primarily enabled by Nvidia GPUs and CUDA software. This dependence drives the cloud-based inference API model, as most users cannot afford personal high-end GPUs, influencing the AI ecosystem’s centralization.</p><p>🔄 Retrieval-Augmented Generation (RAG) Enhances Context: By integrating external databases, documents, and APIs, RAG addresses the limited context window of LLMs, allowing them to provide accurate, up-to-date, and customized answers beyond their fixed training data. This approach is critical in enterprise applications.</p><p>🤖 AI Agents as the Next Frontier:** Agents combine LLMs with function calling and external tools, enabling autonomous multi-step task execution, decision making, and multi-agent collaboration. This represents a leap from passive chatbots to active AI collaborators, transforming automation and productivity.</p><p>🔓 Open Source and Decentralization: Open models and decentralized AI frameworks empower users to self-host and customize AI without data sharing risks, challenging proprietary models controlled by big tech. This democratization is essential for ethical, transparent, and adaptable AI deployments.</p><p>⚠️ Ethical and Practical Challenges: Hallucination (fabricated or incorrect outputs), unclear training data provenance, copyright infringement, and governance of AI behavior raise complex issues. These need careful attention as AI becomes integral to education, creative industries, and knowledge work.</p><p>This introduction provides a holistic yet accessible overview of generative AI’s foundations, current state, and future directions, empowering learners to understand not only how these models work but also the broader implications and applications across industries.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e736b6849782" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling multiple date formats in AWS Athena]]></title>
            <link>https://medium.com/@itsthanga/handling-multiple-date-formats-in-aws-athena-a06c513a5e4?source=rss-2e752534b03e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a06c513a5e4</guid>
            <dc:creator><![CDATA[Itsthanga]]></dc:creator>
            <pubDate>Wed, 15 Sep 2021 11:28:06 GMT</pubDate>
            <atom:updated>2021-09-15T11:28:06.225Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*5LKy81BkGhP-SdReOlk8AQ.png" /></figure><p>What will you do when your date column was in strig format in AWS Athena?</p><p>obviously, we will use data_parse to parse the string into DateTime with a specific date format as mentioned below</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/700d061a3b45f327b5a3da2c3ce1758d/href">https://medium.com/media/700d061a3b45f327b5a3da2c3ce1758d/href</a></iframe><p>What if we have a different format in each row as below?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d455a743a7c49cbe95481c8ea78b1f8e/href">https://medium.com/media/d455a743a7c49cbe95481c8ea78b1f8e/href</a></iframe><p>okay let&#39;s make it as SQL</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8097a79739002efa97b056dd68811391/href">https://medium.com/media/8097a79739002efa97b056dd68811391/href</a></iframe><p>for the above problem we are going to use three functions</p><ol><li>The <strong>DATE_PARSE</strong> function performs the date conversion.</li><li>The <strong>TRY </strong>function handles errors by returning NULL if they do occur.</li><li>The <strong>COALESCE </strong>function takes the first non-null value.</li></ol><p>The resultant query will be</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/94cd23a516ee594f50d3e1da5576c7d0/href">https://medium.com/media/94cd23a516ee594f50d3e1da5576c7d0/href</a></iframe><p>Referance</p><ol><li><a href="https://prestodb.io/docs/current/functions/datetime.html">https://prestodb.io/docs/current/functions/datetime.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a06c513a5e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark Lazy Evaluation]]></title>
            <link>https://medium.com/@itsthanga/spark-lazy-evaluation-c3d1449c861b?source=rss-2e752534b03e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3d1449c861b</guid>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[pyspark]]></category>
            <dc:creator><![CDATA[Itsthanga]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 08:44:37 GMT</pubDate>
            <atom:updated>2021-08-11T08:44:37.218Z</atom:updated>
            <content:encoded><![CDATA[<p>better to be lazy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANdITX-WsAzPBJ48giJG4g.jpeg" /><figcaption>a lazy cat will do something in action</figcaption></figure><p>…..In programming language theory, <strong>lazy evaluation</strong>, or <strong>call-by-need, delays an expression&#39;s evaluation</strong> until its value is needed…………</p><p>How lazy evaluation work in spark</p><ol><li>will not stat the execution until an action is called</li><li>when the action is called it will create a DAG (Directed acyclic graph). In simple terms, we can say a list of operations that are coded to conclude our transformations</li><li>Spark won’t evaluate all transformation</li></ol><p>example (here I am using pyspark)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4693f7e56f5c9ce1649a92e1b192b6b5/href">https://medium.com/media/4693f7e56f5c9ce1649a92e1b192b6b5/href</a></iframe><p>in the above code, only the rdd3 called for action “collect”</p><p><strong>What is an advantage of Lazy Evaluation?</strong></p><p>okay now, what is the purpose? let us see in action</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a43101c4fc20545590ae0a79341e4cbd/href">https://medium.com/media/a43101c4fc20545590ae0a79341e4cbd/href</a></iframe><p>from the above piece of code, line no:5 took 1 second to run and line no:6 took 100s to run. okay, this is what happens inside spark. It builds entire DAG and using optimization techniques it understands either spark have to read the entire file or not.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3d1449c861b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scraping Data from Web]]></title>
            <link>https://medium.com/@itsthanga/scraping-data-from-web-b1a3c554be4a?source=rss-2e752534b03e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1a3c554be4a</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[sentiment-analysis]]></category>
            <category><![CDATA[web-scraping]]></category>
            <dc:creator><![CDATA[Itsthanga]]></dc:creator>
            <pubDate>Wed, 10 Apr 2019 09:41:54 GMT</pubDate>
            <atom:updated>2019-04-10T09:45:10.202Z</atom:updated>
            <content:encoded><![CDATA[<p>Web scraping is the process of extracting data from Web and store local as a file or into database for further analysis</p><h4>Why we need to scrap data from Web ?</h4><ol><li>Do we have insufficient data to solve business problems?</li><li>Do you thinking your all business related data reside within your organisation ? if yes what about your customer reviews on your business and your employee reviews (Glass door\indeed)</li><li>The secret is no employee or Customer will review the organisation in social network until unless they get frustration</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*-AzYMEutFrmzptGxbxZZUg.png" /><figcaption>Simplified Web Scraping Architecture</figcaption></figure><h4>How to do web scrap ?</h4><p>Really “How to Scrap” is hard question? if you meet the question fire below questions</p><ol><li>Does scraping web is legal or illegal ?</li><li>Does the source website is reliable ?</li><li>Which language we are going to use ? (python/R/PHP/Java…… a long list)</li></ol><p>Most of the time scraping data from web is illegal until unless you don’t have authority to get data from the website which you are going to scrap.</p><p>Blindly if the website “A” give more data then website “B” then website “A” is reliable.</p><p>But in many case we have to check popularity of the website we are going to scrap.</p><h4>What are the tools we can use to get data?</h4><ol><li>Requests <a href="http://docs.python-requests.org/en/master/">http://docs.python-requests.org/en/master/</a></li><li>bs4 <a href="https://www.crummy.com/software/BeautifulSoup/bs4/doc/">https://www.crummy.com/software/BeautifulSoup/bs4/doc/</a></li><li>Scrapy <a href="https://scrapy.org/">https://scrapy.org/</a></li><li>Apache Nutch <a href="https://nutch.apache.org/">https://nutch.apache.org/</a></li><li>Selenium chrome python (we can use it for navigation)</li></ol><h4>What we can do with scrapped data ?</h4><ol><li>Social Media Analytics</li><li>Competitor Analysis</li></ol><p><a href="https://public.tableau.com/profile/itsthanga#!/vizhome/Election2019/Election2019">Tableau Public</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*DeqHQEoquNFCDCK3LB-I5g.png" /></figure><p>Please find the above Data Analysis done with twitter data using tableau</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1a3c554be4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>