<?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 Moinuddin on Medium]]></title>
        <description><![CDATA[Stories by Moinuddin on Medium]]></description>
        <link>https://medium.com/@moin_tech?source=rss-70235290c506------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_D1F6SWJaF2wEaqmDBxq7g.png</url>
            <title>Stories by Moinuddin on Medium</title>
            <link>https://medium.com/@moin_tech?source=rss-70235290c506------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 22:38:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@moin_tech/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[Prompting 101: Everyone Can Build Now, So Why Is Everyone Still Debugging?]]></title>
            <link>https://medium.com/@moin_tech/prompting-101-everyone-can-build-now-so-why-is-everyone-still-debugging-e3763c86146f?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3763c86146f</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[writing-prompts]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 06:34:48 GMT</pubDate>
            <atom:updated>2026-11-16T06:34:48.503Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LSxyLuopoTIczR8vZViJvQ.png" /></figure><p><em>Well… well… go ahead and read this fun non-AI generated blog on generative AI</em></p><p>Everyday, I watch someone with almost no coding experience build a working application using an AI coding assistant.</p><p>It was impressive. A few prompts, some generated files, a decent-looking UI, a backend, and suddenly there was something that actually worked.</p><p>I remember thinking, <em>this is incredible. The barrier to building software has changed forever.</em></p><p>But then came the interesting part.</p><p>The developer wanted to add a small feature. The AI changed three existing files. Something else stopped working. Another prompt followed. That fix broke the previous feature. Another prompt. Another refactor. And before long, the developer was spending more time explaining errors to the AI than actually building the product.</p><p>Sound familiar?</p><p>I’ve seen this happen with experienced developers too. In fact, some of the most frustrating AI coding sessions I’ve witnessed involved people who knew exactly what they were doing technically.</p><p>And that’s when it hit me.</p><p><strong>The problem isn’t that AI can’t write good code. It’s that we’re still learning how to tell it what good code looks like.</strong></p><p>We have made building software incredibly accessible. But accessibility doesn’t automatically translate into good engineering.</p><p>Today, almost anyone can build an application. The difference between someone who ships it and someone who spends three days fixing it often comes down to one thing: how they approach prompting.</p><p>Let’s talk about that.</p><h3>1. Stop treating AI like a genie. Start treating it like a naive developer.</h3><p>Imagine walking into an engineering team and telling a developer:</p><p>“Build me an application. It should have login, a dashboard, payments, and look modern.”</p><p>Then walking away.</p><p>Would you expect a great product?</p><p>Probably not.</p><p>Yet that’s exactly how many of us interact with AI coding tools.</p><p>We give them a vague requirement and expect them to magically understand our architecture, design preferences, business rules, and technical constraints.</p><p>The AI doesn’t know that you prefer Riverpod over Bloc. It doesn’t know that your backend is already built using Go. It doesn’t know that you have an existing authentication flow that must not be touched.</p><p>So it guesses.</p><p>And AI is exceptionally good at making confident guesses.</p><p><strong>The trick: Give it boundaries before giving it responsibilities.</strong></p><p>Instead of:</p><p>“Build me a login screen.”</p><p>Try:</p><p>“I’m building a Flutter application using Riverpod for state management and GoRouter for navigation. Create a login screen using Material 3. Keep the UI separate from business logic, use the existing authentication service, and follow the current project structure. Do not introduce additional dependencies or modify the authentication service.”</p><p>See the difference?</p><p>You’re not just describing what you want. You’re defining the environment in which the AI must operate.</p><p>A little context upfront can save you a lot of debugging later.</p><h3>2. Before asking it to code, ask it to think.</h3><p>This is probably one of the most underrated habits when building with AI.</p><p>We get excited about an idea, open Cursor or Antigravity, and immediately ask it to implement everything.</p><p>But here’s the problem: AI can generate code much faster than we can review architectural decisions.</p><p>And once a bad architectural decision becomes part of the codebase, fixing it gets progressively more expensive.</p><p>Think about building a house.</p><p>You wouldn’t ask someone to start laying bricks before deciding where the kitchen, bedrooms, and staircase go.</p><p>So why do we do that with software?</p><p><strong>The trick: Separate planning from execution.</strong></p><p>Before asking for implementation, try this:</p><p>“I’m planning to build a product inventory management system. First, understand the requirements and propose the architecture. Explain the components, database structure, API flow, dependencies, and files that need to be created or modified. Identify potential technical challenges. Do not write any code yet.”</p><p>Read the response.</p><p>Challenge the assumptions. Correct the design. Ask questions.</p><p>Once you’re happy, ask it to implement one component at a time.</p><p>You don’t need to approve every semicolon, but you should understand the decisions that shape your application.</p><p>Remember, <strong>AI can be your fastest developer, but you still need to be the architect.</strong></p><h3>3. Debugging? Stop saying “It doesn’t work.”</h3><p>We’ve all done this.</p><p>Something breaks, we copy the terminal output, paste it into the AI assistant, and type:</p><p>“Please fix this.”</p><p>Sometimes it works. Sometimes it introduces three new problems while fixing the original one.</p><p>Why?</p><p>Because an error message is only a symptom. It doesn’t necessarily explain the actual problem.</p><p>A good developer doesn’t just look at the error. They investigate what led to it.</p><p>The same approach works with AI.</p><p><strong>The trick: Give it the situation, not just the stack trace.</strong></p><p>Whenever something breaks, explain three things:</p><ul><li>What were you trying to achieve?</li><li>What actually happened?0</li><li>What have you already tried?</li></ul><p>For example, instead of:</p><p>“Fix this API error.”</p><p>Try:</p><p>“The API is expected to return the user’s portfolio details after authentication. However, when a user with an empty portfolio makes the request, the endpoint returns a 500 error. The database query succeeds, but the response mapper fails because the portfolio list is null. Investigate the root cause and suggest the smallest possible fix without changing the existing response contract.”</p><p>Now the AI has something meaningful to investigate.</p><p>One more thing: <strong>Ask it to explain the root cause before modifying the code.</strong></p><p>You want to fix the problem, not simply silence the error.</p><h3>4. One prompt, one responsibility. Please!</h3><p>This is where things get particularly interesting.</p><p>Imagine asking someone to:</p><ul><li>Build your authentication system.</li><li>Design the dashboard.</li><li>Integrate payment gateways.</li><li>Add notifications.</li><li>Write unit tests.</li><li>Optimize database queries.</li></ul><p>All in one conversation.</p><p>Even a very good developer would need clarification.</p><p>AI tools are no different.</p><p>As conversations grow, the model has to work with more files, more instructions, more previous decisions, and more context. Eventually, important details can get lost or competing instructions can create confusion.</p><p>This is often what developers experience as context rot.</p><p>You might have seen this yourself:</p><p>You ask the AI to fix a button. It changes the entire screen.</p><p>You ask it to optimize a function. It introduces a new dependency.</p><p>You ask it to add one field. It decides your database schema needs a complete makeover.</p><p>Nobody asked for a renovation!</p><p><strong>The trick: Break your work into smaller, verifiable tasks.</strong></p><p>For example:</p><ol><li>Design the database schema.</li><li>Review and validate it.</li><li>Implement the backend APIs.</li><li>Test the APIs independently.</li><li>Connect the frontend.</li><li>Add error handling and tests</li></ol><p>Each step should have a clear outcome.</p><p>And don’t be afraid to start a fresh conversation when the existing one becomes confusing. Carry forward the important project context, current architecture, and working code rather than dragging every previous debugging attempt into the next task.</p><p>Fresh context is sometimes the cheapest optimization you can make.</p><h3>5. Don’t hire an AI assistant. Hire an expert.</h3><p>Here’s something I’ve noticed.</p><p>When you ask an AI to review your code, it often behaves like a very polite colleague.</p><p>“Great implementation! A few minor improvements could make this even better.”</p><p>Meanwhile, you’ve accidentally exposed an API key, forgotten input validation, and introduced a race condition.</p><p>Thanks, but no thanks!</p><p>The problem is that generic instructions often produce generic reviews.</p><p><strong>The trick: Give the AI a role that matches the job.</strong></p><p>For example:</p><p>“Act as a senior backend engineer reviewing production code. Focus on security vulnerabilities, concurrency issues, performance bottlenecks, error handling, and maintainability. Be critical. Don’t praise code unless there’s a specific reason. Prioritize issues based on their actual impact.”</p><p>Or:</p><p>“Act as a senior ML engineer reviewing this RAG architecture. Evaluate retrieval quality, chunking strategy, embedding selection, reranking, hallucination risks, latency, and inference cost. Identify architectural weaknesses before suggesting optimizations.”</p><p>The idea isn’t to make the AI sound authoritative.</p><p>It’s to give it a clear perspective and evaluation criteria.</p><p>You can even ask different AI models or separate sessions to review the same implementation from different perspectives.</p><p>A developer, a security engineer, and a QA engineer will notice different things.</p><p>Why not use that to your advantage?</p><h3>6. Don’t blindly accept everything AI generates.</h3><p>This one deserves special attention, especially for developers who are relatively new to programming.</p><p>AI-generated code can look extremely convincing.</p><p>It can have clean formatting, meaningful variable names, comments, and even a well-structured folder hierarchy.</p><p>But clean-looking code doesn’t necessarily mean good code.</p><p>I’ve seen implementations where:</p><ul><li>A simple problem was solved using an unnecessarily complicated architecture.</li><li>A package was introduced when the functionality could have been implemented in a few lines.</li><li>Error handling was added without addressing the underlying failure.</li><li>Tests were generated that simply repeated the implementation’s assumptions.</li></ul><p>And the dangerous part? Everything looks reasonable until you run it in production.</p><p><strong>The trick: Treat generated code as a proposal, not a final answer.</strong></p><p>Ask yourself:</p><ul><li>Does this fit the existing architecture?</li><li>Do I understand what this code is doing?</li><li>Are there unnecessary dependencies?</li><li>What happens when the input is empty or invalid?</li><li>Have I actually tested the happy path and failure scenarios?</li></ul><p>If you don’t understand a piece of generated code, ask the AI to explain it.</p><p>Don’t just merge code because the AI says it’s ready.</p><p>You’re still responsible for what you ship.</p><h3>7. Give AI feedback like you would give a teammate.</h3><p>One thing that makes AI coding surprisingly effective is iterative feedback.</p><p>But there’s a difference between useful feedback and repeatedly asking the model to try again.</p><p>Consider these two conversations.</p><p><strong>Conversation A:</strong></p><p>“Make the UI better.”</p><p>“Not good enough.”</p><p>“Try something else.”</p><p>“Still not what I want.”</p><p><strong>Conversation B:</strong></p><p>“The layout is good, but the spacing between the cards is inconsistent. Keep the existing colour palette and typography. Reduce the vertical spacing, make the primary action more prominent, and don’t modify the navigation structure.”</p><p>Which one do you think will get you closer to the desired result?</p><p>Exactly.</p><p>AI doesn’t need you to be polite or diplomatic. It needs you to be precise.</p><p>Tell it what worked, what didn’t, and what must remain unchanged.</p><p>This is particularly useful when working with UI generation, design systems, and existing production codebases.</p><h3>The Bigger Picture: AI Has Changed Who Can Build, Not What Good Engineering Means.</h3><p>We’re living through an interesting transition.</p><p>A few years ago, building a reasonably complex application required a team of developers, weeks of implementation, and a fair amount of boilerplate.</p><p>Today, a single person with a good idea and an AI coding assistant can produce a working prototype in an afternoon.</p><p>That’s a massive shift.</p><p>But here’s something I think we need to talk about more often.</p><p><strong>The ability to generate software and the ability to engineer software are two very different things.</strong></p><p>Generating a login screen is easy. Building authentication that is secure, maintainable, and reliable is not.</p><p>Generating a RAG pipeline is easy. Building one that retrieves the right information, controls hallucinations, handles changing data, and stays within an inference budget is a different challenge altogether.</p><p>AI has reduced the effort required to produce the first version. It hasn’t eliminated the engineering required to make that version dependable.</p><p>And that’s perfectly fine.</p><p>The goal isn’t to stop using AI. It’s to get better at working with it.</p><p>If there’s one thing I’d want every developer, beginner or experienced, to take away from this article, it’s this:</p><ul><li>Think before you prompt.</li><li>Give context before instructions.</li><li>Plan before implementation.</li><li>Debug the cause, not the symptom.</li><li>Break large tasks into smaller ones.</li><li>Review what AI generates.</li><li>Never outsource your engineering judgment.</li></ul><p><strong>You don’t need a 500-line mega-prompt.</strong> You don’t need to memorize some secret prompting framework you found on LinkedIn.</p><p>You need to know what you’re building, why you’re building it, and how to communicate that clearly.</p><p><strong>The best developers in the AI era won’t necessarily be the ones who generate the most code. They’ll be the ones who know what to ask, what to question, and what not to accept.</strong></p><p>So the next time your AI coding assistant breaks something while fixing something else, don’t immediately type “Try again.”</p><p>Take a breath.</p><p>Maybe the problem isn’t the model.</p><p>Maybe it’s the prompt.</p><p>Thank you if you made it till here 💌</p><p><em>A blog By</em></p><p><em>M.D. Moinuddin<br>SDE-III<br>Lead — AI Community Hyderabad<br>AI | FinTech | Quant | SaaS</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3763c86146f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Day I Killed 2,000 Lines of Agent Glue Code with Lyzr]]></title>
            <link>https://medium.com/@moin_tech/the-day-i-killed-2-000-lines-of-agent-glue-code-with-lyzr-ff41ab52a5f6?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff41ab52a5f6</guid>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[lyzr]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 10:29:10 GMT</pubDate>
            <atom:updated>2026-09-28T10:29:10.666Z</atom:updated>
            <content:encoded><![CDATA[<h3>What I learned as an AI engineer after realizing that building the agent wasn’t the hard part.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ni_7y5HVkYCU3feyYVCV7g.png" /></figure><p><em>(This is not a paid promotion)</em></p><p>It was 2:30 AM on a Tuesday.</p><p>The demo had worked beautifully.</p><p>The AI assistant I built could read financial reports, find anomalies, summarize them and send the result to telegram. <br>Ten minutes earlier, I was congratulating myself and was ready to present this demo at a tech event on the stage with 500 people in the room.</p><p>Then production happened.</p><pre>Retrying failed task...<br>ValidationException: Schema drift<br>Prompt injection detected<br>Tool execution failed<br>Context limit exceeded</pre><p>The LLM wasn’t the problem. (Well… the LLM is never the problem)</p><p><strong>Everything around it was.</strong></p><p>I had built an impressive collection of infrastructure around a model: an agent framework, RAG pipeline, vector database, memory layer, custom retries, security filters, logging and a growing collection of Python glue code connecting everything together.</p><p>Nearly 2,000 lines of it.</p><p>And that night, I started asking a question that has changed the way I look at agent architecture:</p><blockquote><strong><em>Why are we spending so much engineering effort building everything around the intelligence instead of building the actual product?</em></strong></blockquote><h3>The Agent Was the Easy Part</h3><p>If you’re new to AI agents, here’s the simplest way to think about one.</p><p>An LLM by itself is essentially a reasoning engine.</p><p>An agent adds capabilities around it:</p><pre>┌── RAG<br>                 ├── Memory<br>User → Agent → LLM ├── Tools<br>                 ├── Guardrails<br>                 └── APIs</pre><p>A prototype can be surprisingly small.</p><p>You connect an LLM, give it some instructions, attach your documents and expose a few tools.</p><p>Done.</p><p>Until somebody asks:</p><p><strong>“What happens when this goes into production?”</strong></p><p>Then the architecture starts growing.</p><p>RAG needs ingestion, chunking, embeddings and retrieval.</p><p>Memory needs persistence and session management.</p><p>Tools need authentication, validation and failure handling.</p><p>Security needs prompt-injection protection and PII handling.</p><p>Production needs monitoring, evaluation, auditability and deployment.</p><p>Suddenly, your 20-line agent has become a system.</p><p>And that’s where most of the engineering time goes.</p><h3>The Glue Code Problem</h3><p>There is nothing inherently wrong with building these components yourself.</p><p>In fact, that’s often exactly what you should do when the infrastructure itself is part of your product.</p><p>The problem is that most companies don’t want to build another vector-retrieval infrastructure or another memory system.</p><p>They want to build:</p><p><strong>a financial analyst, a customer-support agent, an internal knowledge assistant, a research agent, or an automation system.</strong></p><p>Yet engineering teams can end up spending weeks connecting:</p><pre>LLM<br> ↓<br>Agent framework<br> ↓<br>RAG<br> ↓<br>Vector DB<br> ↓<br>Memory<br> ↓<br>Tools<br> ↓<br>Guardrails<br> ↓<br>Observability<br> ↓<br>Deployment</pre><p>Each component is reasonable.</p><p>The complexity comes from <strong>owning the connections between them</strong>.</p><p>That’s what I started calling <em>agent glue code</em>.</p><p><strong><em>And this is where my interest in Lyzr began.</em></strong></p><h3>Looking at Lyzr Differently</h3><p>When I first came across Lyzr, I approached it with the usual AI engineer’s skepticism.</p><p>“Another AI platform.”</p><p>I’ve seen enough of them to know that putting a nice UI around an LLM doesn’t solve architecture.</p><p>What caught my attention was a different proposition.</p><p>Lyzr isn’t only trying to make it easier to call an LLM. Its platform brings together agent creation, knowledge/RAG capabilities, memory, tools, responsible-AI controls and deployment, with both visual tooling and developer APIs/ADK. (<a href="https://docs.lyzr.ai/lyzr-adk/overview?utm_source=chatgpt.com">Lyzr</a>)</p><p>That changes the architectural question.</p><p>Instead of asking:</p><blockquote><em>“How do I build every component?”</em></blockquote><p>you can start asking:</p><blockquote><strong><em>“Which components actually need to be mine?”</em></strong></blockquote><p>That’s a much more interesting question.</p><h3>The First Difference: Security Moves Closer to the Agent</h3><p>One of the things that stood out to me was how Lyzr approaches guardrails.</p><p>In a conventional system, you might build something like:</p><pre>User<br> ↓<br>Input Filter<br> ↓<br>Agent<br> ↓<br>LLM<br> ↓<br>Output Filter<br> ↓<br>User</pre><p>And suddenly your application owns the security middleware.</p><p>Lyzr’s Responsible AI system allows policies to be configured for agents, including checks around prompt injection, PII, secrets, toxicity and other safety categories. It also supports connecting external guardrail systems such as AWS Bedrock Guardrails or Google Model Armor. (<a href="https://docs.lyzr.ai/enterprise/agent-studio/connections/guardrails?utm_source=chatgpt.com">Lyzr</a>)</p><p>For me, the interesting part isn’t simply:</p><p><strong>“Lyzr has guardrails.”</strong></p><p>It’s that guardrails become part of the <strong>agent configuration and execution architecture</strong>.</p><p>That is a different way of thinking about responsible AI.</p><h3>The Second Difference: RAG Becomes a Capability</h3><p>RAG is another area where prototypes hide a lot of engineering.</p><p>A beginner sees:</p><pre>Documents → Embeddings → Vector DB → LLM</pre><p>An engineer sees:</p><pre>Parsing<br>Chunking<br>Embedding<br>Metadata<br>Indexing<br>Retrieval<br>Ranking<br>Context construction<br>Updates<br>Access control<br>Evaluation</pre><p>That’s a lot of infrastructure to repeatedly build.</p><p>Lyzr provides knowledge-base and RAG capabilities as part of its agent tooling, so the developer can work at a higher level: <em>what knowledge should this agent have and how should it use it?</em> (<a href="https://docs.lyzr.ai/lyzr-adk/agents/overview?utm_source=chatgpt.com">Lyzr</a>)</p><p>That doesn’t make retrieval quality magically disappear.</p><p>You still have to think about your data, retrieval strategy and evaluation.</p><p>But you don’t necessarily have to rebuild the plumbing every time.</p><p>And that’s the distinction I care about.</p><h3>The Third Difference: Memory and Tools Become First-Class Features</h3><p>The same pattern appears with memory and tools.</p><p>Instead of treating them as completely separate infrastructure projects, Lyzr’s ADK exposes them as agent capabilities. Agents can be configured with memory, tools, contexts, knowledge bases and Responsible AI policies. (<a href="https://docs.lyzr.ai/lyzr-adk/agents/agent-features?utm_source=chatgpt.com">Lyzr</a>)</p><p>For someone learning agents, this is actually quite useful.</p><p>You can understand the architecture as:</p><pre>Agent<br> ├── Instructions<br> ├── Knowledge<br> ├── Memory<br> ├── Tools<br> └── Guardrails</pre><p>Rather than immediately getting lost inside five different infrastructure systems.</p><p>That doesn’t remove the underlying engineering concepts.</p><p>It makes them easier to reason about.</p><h3>And Then There Is Agent Studio</h3><p>This was another part I found interesting.</p><p>AI systems rarely belong exclusively to engineers.</p><p>A product manager might want to change an agent’s behaviour.</p><p>A domain expert might want to test its responses.</p><p>A compliance team might need to review its policies.</p><p>A developer still needs to integrate the agent into the actual application.</p><p>Lyzr’s Agent Studio provides a visual environment for building and testing agents, while the ADK provides a Python developer interface for creating, configuring and running them. (<a href="https://docs.lyzr.ai/introduction/getting-started/quickstarts?utm_source=chatgpt.com">Lyzr</a>)</p><p>So you get something closer to:</p><pre>Business / Product<br>        ↓<br>    Agent Studio<br>        ↓<br>     Agent<br>        ↓<br>   Developer API<br>        ↓<br> Existing Product</pre><p>That separation can be useful because not every change to an AI system necessarily needs to become a code deployment.</p><h3>The Moment It Clicked</h3><p>The biggest change in my thinking wasn’t a specific feature.</p><p>It was realizing that <strong>we had been measuring engineering effort incorrectly.</strong></p><p>We were proud of how much infrastructure we’d built.</p><p>But when I looked at the codebase, I started categorizing it.</p><p>How much code actually represented our business logic?</p><p>How much existed because we needed RAG?</p><p>How much existed because we needed memory?</p><p>How much existed because we needed security?</p><p>How much existed simply because two systems needed to talk to each other?</p><p>That last category was enormous.</p><p>And that’s the part that made me appreciate what platforms like Lyzr are trying to solve.</p><p><strong>Not “write less code because less code is better.”</strong></p><p>Rather:</p><blockquote><strong><em>Don’t spend your best engineering hours rebuilding infrastructure that isn’t your competitive advantage.</em></strong></blockquote><h3>This Doesn’t Mean “Never Build It Yourself”</h3><p>This is where I would put an important qualifier on any review of an AI platform.</p><p>There are absolutely situations where I’d build components myself.</p><p>If retrieval is a core differentiator, build it.</p><p>If your company already has mature security infrastructure, integrate with it.</p><p>If your orchestration system is itself part of the product, own it.</p><p>If you need extremely specialized infrastructure, a platform abstraction may become a constraint rather than an advantage.</p><p>That’s the trade-off.</p><p>Lyzr doesn’t eliminate architecture.</p><p><strong>It changes where the architecture boundary can sit.</strong></p><p>And that’s the part I find valuable.</p><h3>What About All the AI Coding Agents?</h3><p>There is an even bigger reason I think this conversation matters now.</p><p>AI-assisted development is making code incredibly cheap to produce.</p><p>Give an agent a specification and it can generate:</p><pre>RAG pipeline<br>+ API layer<br>+ retry logic<br>+ memory<br>+ database integration<br>+ tool calling<br>+ authentication<br>+ tests</pre><p>very quickly.</p><p>That’s fantastic.</p><p>But there’s a dangerous assumption hiding underneath it:</p><p><strong>If AI can generate the code, we should generate the code.</strong></p><p>I don’t think that’s necessarily true.</p><p>The more code AI can produce, the more important architectural judgment becomes.</p><p>Because the difficult question isn’t:</p><blockquote><em>“Can we build this?”</em></blockquote><p>It’s:</p><blockquote><strong><em>“Should we own all of this?”</em></strong></blockquote><h3>From Building Agents to Operating Agents</h3><p>That, ultimately, is what changed for me.</p><p>The first phase of GenAI development was about proving that models could do interesting things.</p><p>Then we learned how to connect them to our data.</p><p>Then we connected tools.</p><p>Now we’re entering the much harder phase:</p><p><strong>operating these systems reliably.</strong></p><ul><li>Security.</li><li>Governance.</li><li>Evaluation.</li><li>Observability.</li><li>Memory.</li><li>Data.</li><li>Deployment.</li><li>Failure handling.</li></ul><p>Those things aren’t as exciting as watching an LLM produce a clever answer.</p><p>But they’re what separates a demo from a production system.</p><h3>My Take</h3><p>I don’t think Lyzr’s most interesting proposition is that it gives you another way to build an AI agent.</p><p>It’s that it asks a more mature architectural question:</p><blockquote><strong><em>How much of the agent infrastructure should an application team really have to build and maintain?</em></strong></blockquote><p>For teams that want complete control over every layer, assembling the stack themselves can still make sense.</p><p>For teams that want to move faster while keeping capabilities such as RAG, memory, tools and Responsible AI within a more integrated agent platform, Lyzr presents an interesting alternative. (<a href="https://docs.lyzr.ai/lyzr-adk/overview?utm_source=chatgpt.com">Lyzr</a>)</p><p>And that’s why the “2,000 lines” mattered to me.</p><p>I didn’t remove 2,000 lines because writing Python was bad. I removed the parts of the system that weren’t actually helping us build the product.</p><p><strong>In the age of agentic development, generating code is becoming cheap.</strong></p><p><strong>Knowing which code you shouldn’t have to write in the first place is becoming an architectural skill.</strong></p><p>Building an agent is relatively easy today.</p><p>Building everything required to <strong>operate that agent responsibly in production</strong> is where the real engineering effort appears.</p><p>That’s the gap platforms like Lyzr are trying to address.</p><p>And for teams experimenting with agentic development, that is probably the question worth asking:</p><blockquote><strong><em>Do we really want to spend our engineering time building another piece of agent infrastructure, or is that infrastructure already available for us to use?</em></strong></blockquote><p>Because in the age of AI-assisted development, writing more code is no longer necessarily the goal.</p><p><strong>Building the right system is.</strong></p><p><a href="https://docs.lyzr.ai/?utm_source=chatgpt.com">Explore Lyzr’s documentation</a></p><p><em>A blog By</em></p><p><em>M.D. Moinuddin<br>SDE-III<br>Lead — AI Community Hyderabad<br>AI | FinTech | Quant | SaaS</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff41ab52a5f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Can Build Your Flutter App. But Who Builds the Foundation?]]></title>
            <link>https://medium.com/@moin_tech/ai-can-build-your-flutter-app-but-who-builds-the-foundation-e8570e7e8006?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8570e7e8006</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[foundation]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 07:32:59 GMT</pubDate>
            <atom:updated>2026-09-22T07:32:59.475Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmkNSmEh4VM_SfD-Q6A9JA.png" /></figure><p>One thing that we all can agree upn is that we are entering a strange and exciting phase of software development.</p><p>A few years ago, building a mobile application meant spending a significant amount of time setting up the project itself: networking, storage, theming, error handling, connectivity, feature flags, update flows, reusable components, and the countless small utilities that every serious application eventually needs.</p><p>Today, agentic development has changed that equation.</p><p>You can describe an application to an AI coding agent, let it generate screens, connect APIs, create models, write services, and even refactor entire features. The barrier between an idea and a working prototype has never been lower.</p><p>But there is an interesting problem hiding underneath all of this.</p><p><strong>AI makes it incredibly easy to build features. It does not automatically make sure you build the foundations correctly.</strong></p><p>And those foundations are usually the things nobody notices — until they become a problem.</p><h3>The things AI-generated applications tend to overlook</h3><p>Imagine asking an agent:</p><blockquote><em>“Build a Flutter application with login, a dashboard, API integration and dark mode.”</em></blockquote><p>Within minutes, you may have something that looks surprisingly complete.</p><p>But what happens when:</p><ul><li>The API suddenly changes user_id to account_id?</li><li>The user’s internet connection disappears halfway through a request?</li><li>The backend returns a 500?</li><li>You need to force users onto a minimum app version?</li><li>Product wants to remotely disable a feature?</li><li>QA needs to simulate a slow network?</li><li>Different developers start using slightly different spacing and radius values?</li><li>You need persistent secure storage?</li><li>The application needs a maintenance screen?</li><li>You need to inspect what the application is actually doing in development?</li></ul><p>None of these are particularly exciting features.</p><p>They are <strong>engineering necessities</strong>.</p><p>And because they aren’t part of the feature request, they are easy to miss.</p><p>This is where I think a project like <strong>starter_kit_flutter</strong> becomes interesting.</p><h3>What is starter_kit_flutter?</h3><p><a href="https://pub.dev/packages/starter_kit_flutter">starter_kit_flutter on pub.dev</a> is essentially a collection of common application foundations brought together behind a single package.</p><p>The current package provides networking, storage, theming, design-system tokens, feature flags, safe JSON parsing, connectivity monitoring, update/maintenance flows, a debug development panel, and several utilities.</p><p>The interesting part isn’t that any one of these ideas is revolutionary.</p><p>They aren’t.</p><p>The value is in <strong>standardizing the boring parts of application development</strong> so that every new project doesn’t have to reinvent them.</p><h3>The real value: engineering guardrails</h3><p>One feature that particularly caught my attention is the package’s approach to configuration.</p><p>Instead of individually initializing several services throughout main.dart, the package provides a central StarterKitApp and StarterKitConfig.</p><p>You can configure things such as:</p><ul><li>Network</li><li>Storage</li><li>Theme</li><li>Connectivity</li><li>Updater</li><li>Feature flags</li><li>UI behavior</li><li>Design-system tokens</li></ul><p>and then access the initialized services through the StarterKit interface.</p><p>That creates an interesting development pattern:</p><pre>                    Application<br>                         │<br>                  StarterKitApp<br>                         │<br>        ┌────────────────┼────────────────┐<br>        │                │                │<br>     Network          Storage          Theme<br>        │                │                │<br>   Connectivity      Feature Flags    Design System<br>        │                │                │<br>      Updater         Dev Panel        Utilities</pre><p>The application developer can therefore spend more time thinking about <strong>the product</strong>, rather than repeatedly establishing the same infrastructure.</p><h3>AI makes this more important, not less</h3><p>There is a common assumption that AI-assisted development will eliminate the need for boilerplate.</p><p>To some extent, that’s true.</p><p>But there are two different types of boilerplate.</p><h3>Type 1 — Repetitive implementation</h3><pre>class UserService {<br>  ...<br>}</pre><p>AI is extremely good at generating this.</p><h3>Type 2 — Engineering conventions</h3><p>Things like:</p><blockquote><em>“All network operations must have predictable error handling.”</em></blockquote><blockquote><em>“Feature flags must be centrally controlled.”</em></blockquote><blockquote><em>“The application must have a consistent design system.”</em></blockquote><blockquote><em>“Production builds must not expose debugging tools.”</em></blockquote><blockquote><em>“Backend schema changes shouldn’t immediately crash the UI.”</em></blockquote><p>These aren’t really code-generation problems.</p><p>They’re <strong>architecture problems</strong>.</p><p>And this distinction becomes increasingly important as coding agents become more capable.</p><p>An agent can generate 20 API calls very quickly.</p><p>That doesn’t necessarily mean those 20 API calls share a coherent error model.</p><h3>One example: API error handling</h3><p>The package uses a sealed Result / AppError approach for network and storage operations rather than exposing raw exceptions directly to the UI.</p><p>For example, application code can handle different categories such as:</p><pre>NetworkError<br>ConnectionError<br>StorageError<br>ValidationError<br>ConfigurationError<br>UnknownError</pre><p>This is a small architectural decision, but it matters.</p><p>Without a defined error model, applications tend to evolve into:</p><pre>try {<br>  ...<br>} catch (e) {<br>  print(e);<br>}</pre><p>Then another developer does:</p><pre>catch (e) {<br>  showToast(&quot;Something went wrong&quot;);<br>}</pre><p>And another does:</p><pre>catch (e) {<br>  return null;<br>}</pre><p>Six months later, the application has three different philosophies for handling the same problem.</p><p>A foundation layer can prevent that drift.</p><h3>Safe JSON parsing is another small but useful idea</h3><p>Backend APIs evolve.</p><p>Sometimes a field gets renamed:</p><pre>{<br>  &quot;user_id&quot;: &quot;123&quot;<br>}</pre><p>becomes:</p><pre>{<br>  &quot;account_id&quot;: &quot;123&quot;<br>}</pre><p>A conventional parser may simply fail.</p><p>Starter Kit provides SafeJsonReader helpers that allow multiple possible keys and fallbacks.</p><p>For example:</p><pre>final id = json.asString(<br>  [&#39;account_id&#39;, &#39;user_id&#39;, &#39;id&#39;],<br>  fallback: &#39;&#39;,<br>);</pre><p>Again, this isn’t groundbreaking technology.</p><p>But it is the kind of small defensive engineering that prevents avoidable runtime failures.</p><h3>Feature flags without building a feature-flag system</h3><p>Another useful foundation is feature flags.</p><p>The package provides runtime flags, local overrides and conditional UI through StarterKitSlot.</p><p>Conceptually:</p><pre>StarterKitSlot(<br>  featureFlag: &#39;new_checkout&#39;,<br>  flaggedChild: const NewCheckout(),<br>  fallback: const OldCheckout(),<br>  child: const SizedBox.shrink(),<br>)</pre><p>This becomes particularly useful when development is increasingly AI-driven.</p><p>An AI agent might generate a feature in an afternoon.</p><p>That doesn’t mean you’re ready to expose it to 100% of your users.</p><p>Feature flags give the engineering team another layer of control.</p><h3>The Dev Panel is probably one of the more practical features</h3><p>One feature I particularly like conceptually is the debug-only in-app development panel.</p><p>The package provides tools for inspecting things such as:</p><ul><li>Network requests</li><li>Storage</li><li>Design tokens</li><li>Connectivity states</li><li>Feature flags</li><li>Maintenance/update states</li></ul><p>It is explicitly gated behind kDebugMode, so the development tooling isn&#39;t intended to be exposed in production builds.</p><p>This is a good example of something that is easy to forget when building an application feature-by-feature.</p><p>A coding agent can generate a beautiful UI.</p><p>But having a deliberate mechanism for <strong>testing failure states</strong> is a different problem.</p><h3>The bigger idea</h3><p>This is where I think starter kits are going to become increasingly relevant in the age of agentic development.</p><p>The future isn’t necessarily:</p><blockquote><strong><em>Humans write less code.</em></strong></blockquote><p>It’s closer to:</p><blockquote><strong><em>Humans specify more intent, while agents produce more implementation.</em></strong></blockquote><p>When that happens, reusable engineering foundations become more valuable.</p><p>You don’t want every AI-generated project to independently invent:</p><pre>Network architecture<br>Error handling<br>Storage abstraction<br>Feature flags<br>Theme architecture<br>Connectivity handling<br>Update handling<br>Debug tooling<br>Design tokens</pre><p>You want those things to be <strong>known constraints</strong>.</p><p>Then the agent can work inside those constraints.</p><h3>Think of it as an engineering baseline</h3><p>I wouldn’t look at starter_kit_flutter as something that replaces Flutter architecture.</p><p>I’d look at it as a <strong>baseline layer</strong>.</p><p>Your application still needs to decide:</p><ul><li>Which state-management architecture makes sense?</li><li>How should business logic be structured?</li><li>Where should repositories live?</li><li>How should authentication work?</li><li>How should domain models be designed?</li><li>What belongs locally versus remotely?</li></ul><p>Those decisions remain application-specific.</p><p>Starter Kit instead tries to answer a different question:</p><blockquote><strong><em>“What are the common foundations that almost every application needs?”</em></strong></blockquote><p>That distinction is important.</p><h3>Is it worth using?</h3><p>For a small throwaway prototype, probably not necessarily.</p><p>Flutter itself makes it relatively easy to start from scratch.</p><p>But if you’re repeatedly building applications — particularly applications that are expected to become production products — having a standardized foundation can save considerable setup and reduce architectural drift.</p><p>And in an AI-assisted development workflow, that advantage becomes even more interesting.</p><p>Instead of telling your coding agent:</p><blockquote><em>“Build a networking layer.”</em></blockquote><p>You can tell it:</p><blockquote><em>“Use the application’s existing Starter Kit networking abstraction.”</em></blockquote><p>Instead of:</p><blockquote><em>“Create a feature flag mechanism.”</em></blockquote><p>You already have one.</p><p>Instead of:</p><blockquote><em>“Implement a debug tool for testing offline states.”</em></blockquote><p>You have a foundation for it.</p><p>The AI can focus on <strong>what makes your application different</strong>.</p><h3>The future of development may be less about generating code</h3><p>We’re moving toward a world where generating code is becoming cheap.</p><p>The scarce resource is increasingly <strong>good engineering decisions</strong>.</p><p>An AI agent can create a screen in seconds.</p><p>A senior engineer asks:</p><blockquote><em>What happens when the API fails?</em></blockquote><p>The agent can create an authentication flow.</p><p>A senior engineer asks:</p><blockquote><em>What happens when the token expires halfway through five concurrent requests?</em></blockquote><p>The agent can generate a feature.</p><p>A senior engineer asks:</p><blockquote><em>How do we disable it without shipping another build?</em></blockquote><p>That’s the gap tools like Starter Kit can help narrow.</p><p>Not by replacing engineering.</p><p>But by <strong>encoding some engineering decisions into reusable foundations</strong>.</p><h3>Final thoughts</h3><p>starter_kit_flutter isn&#39;t trying to solve every architectural problem in Flutter, and it shouldn&#39;t.</p><p>Its more practical proposition is simpler:</p><p><strong>Don’t repeatedly rebuild the foundations that your applications already have in common.</strong></p><p>In an era where agentic development allows almost anyone to go from an idea to a functioning application incredibly quickly, this becomes increasingly important.</p><p>The speed of implementation is no longer the only challenge.</p><p><strong>The challenge is making sure that the speed doesn’t cause us to forget the boring, non-negotiable parts of engineering.</strong></p><p>That’s where I see the real value of a foundation layer like starter_kit_flutter.</p><p>AI can help us build faster.</p><p>Tools like this can help make sure we’re still building like engineers.</p><p><em>A blog By</em></p><p><em>M.D. Moinuddin<br>SDE-III <br>Lead — AI Community Hyderabad<br>AI | FinTech | Quant | SaaS</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8570e7e8006" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sharpe Ratio and an anxious ML Engineer]]></title>
            <link>https://medium.com/@moin_tech/sharpe-ratio-and-an-anxious-ml-engineer-49fcc70ed1cd?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/49fcc70ed1cd</guid>
            <category><![CDATA[sharpe-ratio]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Sun, 11 Jan 2026 20:51:42 GMT</pubDate>
            <atom:updated>2026-01-11T20:51:42.758Z</atom:updated>
            <content:encoded><![CDATA[<p>Taking a glance on why predicting returns is easy — and surviving volatility is not.</p><p>The Sharpe ratio itself doesn’t inherently make ML engineers anxious; rather, the <strong>challenges in achieving a high, stable Sharpe ratio</strong> and its potential pitfalls can be a source of stress in fields like quantitative finance. The metric is often used to evaluate the performance of machine learning-driven trading strategies, creating pressure to perform well.</p><p>If you’re a machine learning engineer stepping into the finance world for the first time, you probably look at the <strong>Sharpe Ratio</strong> and think:</p><blockquote>“Why are these finance people so obsessed with a fraction?”</blockquote><p>I get it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LhHCpJ61s0LAjQHt.jpg" /></figure><p>In the ML world, we worship clean metrics — <strong>MSE, Log-Loss, F1-score</strong>. If your model predicts the target well, you win. Leaderboard logic. Clear rules.</p><p>That mental model works perfectly in notebooks and Kaggle kernels.<br>It starts breaking down the moment real money enters the picture.</p><p>Let’s get real.</p><h3>The “Heart Attack” Metric</h3><p>Imagine you’re experimenting with a simple open-source trading setup.</p><p>You pull daily S&amp;P 500 data from Yahoo Finance.<br>You train two models using the same features — momentum, volatility, maybe a moving average crossover.</p><p>You backtest both.</p><p><strong>Model A — The Rockstar</strong><br>It predicts a <strong>20% annual return</strong>. Impressive.<br>But the equity curve looks like an earthquake. Big spikes up, violent drops down. One week you’re up double digits, the next you’re questioning your life choices.</p><p><strong>Model B — The Boring One</strong><br>It predicts a modest <strong>8% return</strong>.<br>The curve is smooth. Gradual. Almost… dull.</p><p>In a typical ML setup, Model A wins instantly.<br>Higher return = better model. End of discussion.</p><p>In real trading?<br>Model A is how people stop trusting your system.<br>Model A is how you blow up risk limits.<br>Model A is how your model gets turned off.</p><h3>What the Sharpe Ratio Actually Measures</h3><p>The <strong>Sharpe Ratio</strong> isn’t about being anti-profit.</p><p>It’s about asking a more uncomfortable question:</p><blockquote>“How much stress did it take to earn this return?”</blockquote><p>Think of it as an <strong>Anxiety-to-Profit ratio</strong>.</p><p>If your model makes great money but drags your portfolio through emotional chaos, the Sharpe Ratio punishes you. Ruthlessly.</p><p>High returns divided by high volatility still equals mediocrity.</p><p>That’s why finance people care.<br>They’re not chasing the highest peak — they’re chasing a <strong>climb they can survive</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qr-KwERIZ3Hu5-MO.jpg" /></figure><h3>Why ML Engineers Usually Hate Sharpe (At First)</h3><p>From a machine learning perspective, Sharpe feels hostile.</p><p><strong>1. It breaks the IID assumption</strong><br>Most loss functions treat each row independently. Sharpe is computed over <em>time windows</em>. You need a sequence. Order matters.</p><p><strong>2. It’s not optimizer-friendly</strong><br>Sharpe isn’t smooth or convex. It’s jumpy. Try backpropagating through it and you’ll quickly understand the pain.</p><p><strong>3. Outliers are devastating</strong><br>In normal ML tasks, an outlier slightly nudges your error metric.<br>In trading, one extreme move — a flash crash, a rate shock — can destroy months of good performance.</p><p>This is where many technically strong ML models fail.</p><h3>The Problem with “Just Predict the Market”</h3><p>Most beginner trading models are obsessed with <strong>direction</strong>.</p><p>“Will the market go up or down tomorrow?”</p><p>But markets don’t just care about <em>being right</em>.<br>They care about <em>how aggressively you act on that belief</em>.</p><p>A confident model that’s occasionally wrong is dangerous.<br>A cautious model that knows when to scale down is valuable.</p><p>This is why many open-source trading systems don’t just output a buy/sell signal — they output <strong>position size</strong>, <strong>confidence</strong>, or <strong>allocation weight</strong>.</p><p>It’s the model saying:</p><blockquote>“I think this trade is good… but I’m not sure enough to go all-in.”</blockquote><p>The Sharpe Ratio rewards that restraint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4bBZgyc0WOEOWT_k" /></figure><h3>Sharpe Is a Calibration Test, Not a Profit Test</h3><p>You can think of Sharpe as a brutal calibration exam.</p><p>It rewards models that:</p><ul><li>Know when to go big</li><li>Know when to go small</li><li>Know when to do nothing</li></ul><p>It punishes models that:</p><ul><li>Overreact</li><li>Chase noise</li><li>Confuse confidence with correctness</li></ul><p>In that sense, Sharpe isn’t a finance metric.</p><p>It’s a <strong>behavior metric</strong>.</p><h3>A Simple Reality Check</h3><p>Ask yourself this:</p><p>If you had to bet your <strong>actual rent money</strong> on your model’s predictions every day for a year, what would you care about more?</p><ul><li>Your <strong>Mean Absolute Error</strong>?</li><li>Or how calm you feel checking your portfolio on a Friday afternoon?</li></ul><p>That calmness — or lack of it — is volatility.</p><p>And profit divided by that emotional cost?<br>That’s the Sharpe Ratio.</p><h3>The Question That Actually Matters</h3><p>So here’s the real ML question:</p><blockquote>How do you design a loss function that penalizes “sweat” as much as “error”?</blockquote><p>Do you:</p><ul><li>Approximate Sharpe directly?</li><li>Penalize variance in returns?</li><li>Regularize position size?</li><li>Train the model to learn when <strong>not</strong> to trade?</li></ul><p>This is where machine learning stops being academic — and starts becoming capital-aware.</p><p><strong>Woah! you made it till here Thanks for reading! ❤️</strong></p><p>if you wanna reach out <a href="https://linkedin.com/in/moinuddin9777">click me</a> for my LinkedIn<br>Do check out my other articles on my <a href="https://medium.com/@moinuddin9777">Medium profile</a></p><p><em>A blog By</em></p><p><em>M.D. Moinuddin<br>SDE III — Quantana<br>Lead — TenosorFlow User Group Hyderabad<br>AI | FinTech | Quant</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49fcc70ed1cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why JAX exists ?]]></title>
            <link>https://medium.com/@moin_tech/why-jax-exists-db5c53520fdc?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/db5c53520fdc</guid>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Tue, 16 Dec 2025 17:18:54 GMT</pubDate>
            <atom:updated>2025-12-16T17:18:54.826Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why JAX exists ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EvYojUrWOptgw1K8kcUe9Q.png" /></figure><p>Ive been doing ML since ages and I always had this one thought, you too probably had this:</p><blockquote><em>“My math is correct. My code runs.<br> So why is it slow… and why is scaling this such a pain?”</em></blockquote><p>That exact frustration is why <strong>JAX exists</strong>.</p><p>Well… this pretty much explains but you can go ahead and read this fun non-AI generated blog about AI.</p><p>Well it was never meant to replace anything especially NumPy.<br>But as a <strong>clean, principled way to write mathematical code that scales</strong> — without rewriting everything when you move from a laptop to GPUs or TPUs.</p><p>Let’s break it down in a simple way.</p><h3>The Problem JAX Was Built to Solve</h3><p>Machine learning code lives in two worlds:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hkK28nIRD9FMJwDDr4ud3w.png" /><figcaption>Generated from Nano banana</figcaption></figure><p><strong>In Research world</strong></p><ul><li>Clean math</li><li>Vectorized equations</li><li>“This is how the paper describes it”</li></ul><p><strong>In Production world</strong></p><ul><li>Performance bottlenecks</li><li>Distributed systems</li><li>GPUs, TPUs, memory constraints</li></ul><p><strong>Most frameworks force you to choose one. (Personal opinions XD )</strong></p><ul><li>NumPy is beautiful… but slow and CPU-bound.</li><li>TensorFlow is powerful… but verbose and rigid.</li><li>PyTorch is flexible… but scaling and optimization often require extra engineering.</li></ul><p><strong>JAX was created to collapse this gap.</strong></p><h3>JAX at its core</h3><blockquote><strong><em>JAX can be seen as NumPy, but differentiable, compiled, and accelerator-native.</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eyz2epWND5I9azU79MDRYA.png" /><figcaption>Source: Web</figcaption></figure><p>You write <strong>normal-looking NumPy code</strong>, and <strong>JAX</strong>:</p><ul><li>automatically computes gradients</li><li>compiles your code using XLA</li><li>runs it efficiently on CPU, GPU, or TPU</li><li>parallelizes it when needed</li></ul><p>All without changing how you think about the math. That last part is as important as rice to biriyani.</p><h3>Why NumPy Wasn’t Enough</h3><p>NumPy is fantastic for numerical computing, but it has limitations:</p><ul><li>No automatic differentiation</li><li>No built-in GPU/TPU execution</li><li>No easy way to optimize large computation graphs</li></ul><p>In modern ML, we don’t just compute values — <br>we compute <strong>gradients of computations</strong>, repeatedly, at scale.</p><p>JAX keeps the <strong>NumPy mental model</strong>, but adds:</p><ul><li>grad → for differentiation</li><li>jit → for compilation</li><li>vmap → for vectorization</li><li>pmap → for parallelism</li></ul><p>You see a dream in arrays and math — JAX handles the rest.</p><h3>A Simple Example (Real World Intuition)</h3><p>Say you write a loss function:</p><pre>def loss(w):<br>    return w**2 + 3*w + 1</pre><p>In NumPy, that’s just a function.</p><p>In JAX, you can instantly do:</p><pre>from jax import grad<br>grad(loss)(2.0)</pre><p>No graph building.<br>No session.<br>No backward pass code.</p><p>That function is now <strong>mathematically differentiable</strong>.</p><p>This is what makes JAX feel like writing math, not framework code.</p><h3>Why JIT Compilation Matters (More Than You Think)</h3><p>Python is slow.<br>We all know it. We live with it.</p><p>JAX solves this using <strong>XLA (Accelerated Linear Algebra)</strong>.</p><p><strong>When you do:</strong></p><pre>from jax import jit</pre><pre>@jit<br>def compute(x):<br>    return x @ x</pre><p><strong>JAX:</strong></p><ul><li>traces your function</li><li>converts it into an optimized computation graph</li><li>fuses operations</li><li>runs it as a compiled kernel</li></ul><p>Result:</p><ul><li>near C++ speed</li><li>fewer memory copies</li><li>massive performance gains</li></ul><p>Same Python code. Completely different execution.</p><h3>Functional Programming (The Quiet Superpower)</h3><p>JAX enforces <strong>pure functions</strong>:</p><ul><li>no hidden state</li><li>no in-place mutation</li><li>same input → same output</li></ul><p><strong>At first, this feels restrictive (well… it did to me maybe not to you… ).</strong></p><p><strong><em>Later, you realize it’s the reason:</em></strong></p><ul><li>gradients are reliable</li><li>parallelization is safe</li><li>distributed training “just works”</li></ul><p>This design choice is why JAX scales so well to:</p><ul><li>multi-GPU</li><li>multi-TPU</li><li>massive models</li></ul><p>It’s not accidental. It’s architectural.</p><h3>Why Big Research Teams Love JAX</h3><p>There’s a reason JAX shows up in:</p><ul><li>DeepMind</li><li>Google Brain</li><li>Alot of AI GDE blogs and projects (pun intended)</li><li>large-scale LLM research</li><li>diffusion models</li><li>reinforcement learning systems</li></ul><p><strong>Its buttery easy to</strong></p><ul><li>trust the math</li><li>prototype new ideas quickly</li><li>scale without rewriting everything</li></ul><p>Libraries like <strong>Flax</strong>, <strong>Haiku</strong>, and <strong>Optax</strong> exist because JAX provides a rock-solid core.</p><p>JAX is the engine.<br>Those libraries are the dashboard.</p><h3>Why JAX Is Not for Everyone (And That’s Okay)</h3><p>Let’s be honest. Ive been seeing people overengineering stuff which is not necessary</p><p><strong>JAX is not ideal if:</strong></p><ul><li>you want quick UI demos</li><li>you prefer imperative debugging</li><li>you rely heavily on prebuilt layers</li><li>you’re new to ML</li></ul><p><strong>JAX assumes you care about:</strong></p><ul><li>super fine correctness</li><li>performance</li><li>scalability in long run</li><li>clean abstractions</li></ul><p>Jax is a <strong>power tool</strong>, not a Swiss army knife <em>(Nice line na ? will tweet this too)</em>.</p><h3>The Real Reason JAX Exists</h3><p>JAX exists because ML engineers wanted:</p><ul><li>to write <strong>math, not framework glue</strong></li><li>to scale from notebook → cluster seamlessly</li><li>to trust gradients and performance equally</li><li>to stop rewriting models for every new accelerator</li></ul><p>In one sentence:</p><blockquote><strong><em>JAX exists to make mathematical thinking first-class in large-scale machine learning.</em></strong></blockquote><p>And once you’ve built something serious with it,<br>going back feels… noisy.</p><p><strong>Woah! you made it till here Thanks for reading! ❤️</strong></p><p>if you wanna reach out <a href="https://linkedin.com/in/moinuddin9777">click me</a> for my LinkedIn<br>Do check out my other articles on my <a href="https://medium.com/@moinuddin9777">Medium profile</a></p><p><em>A blog By</em></p><p><em>M.D. Moinuddin<br>SDE III — Quantana<br>Lead — TenosorFlow User Group Hyderabad<br>AI | FinTech | Quant</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db5c53520fdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does Google Play’s New 16KB Page Size Requirement affect your Flutter apps ?]]></title>
            <link>https://medium.com/@moin_tech/how-does-google-plays-new-16kb-page-size-requirement-affect-your-flutter-apps-efd34352cade?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/efd34352cade</guid>
            <category><![CDATA[google-play]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 15:08:40 GMT</pubDate>
            <atom:updated>2025-09-15T15:08:40.750Z</atom:updated>
            <content:encoded><![CDATA[<h3>How does Google Play’s New 16KB Page Size Requirement affect your Flutter apps ?</h3><p>Starting <strong>November 1, 2025</strong>, all new apps and updates that support <strong>Android 15 (API level 35) or higher</strong> must work with a <strong>16KB memory page size</strong> on 64-bit devices.</p><p>Google Play is always moving forward to make apps faster, smoother, and more reliable for users. But with that progress, developers sometimes need to catch up with new rules. One of the big changes rolling out soon is around <strong>memory page size</strong>.</p><p>Sounds tiny, right? Just a “page size” thing. But it’s actually a big deal — especially for Flutter developers. Let’s break it down in simple terms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*q6bQaxsw3ZUzBgvZ.png" /></figure><h3>What’s Changing?</h3><p>Traditionally, Android devices have used <strong>4KB memory pages</strong>. With Android 15, Google is pushing apps to support <strong>16KB pages</strong>.</p><h3>Why this change?</h3><ul><li><strong>Better performance:</strong> Apps launch faster (in some cases, 30% faster!). Even the camera starts up quicker.</li><li><strong>Less memory fragmentation:</strong> Helpful for apps that use a lot of memory.</li><li><strong>Improved battery life:</strong> Smarter memory management means less wasted energy.</li></ul><p>But here’s the catch: if your app or any native library assumes the page size is always 4KB, it might <strong>crash or misbehave</strong> on devices running Android 15 with 16KB pages.</p><h3>Are Flutter Apps Affected?</h3><p>Most likely, <strong>yes</strong>.</p><p>Even if you’ve never touched a line of C or C++, Flutter itself relies on native code. And many plugins you use (ads, camera, analytics, ML, etc.) include native libraries too.</p><p>If any of those libraries aren’t updated for 16KB, your app could be in trouble.</p><h3>How to Check If Your App is Ready</h3><ol><li><strong>Google Play Console</strong> → App Bundle Explorer can show warnings about 16KB alignment.</li><li><strong>Test on Android 15 emulators</strong> with 16KB enabled.</li><li><strong>Physical Pixel devices (Android 15)</strong> → turn on <em>Developer Options &gt; Use 16KB memory pages</em>.</li><li>Run:</li></ol><pre>adb shell getconf PAGE_SIZE</pre><ul><li>If it prints 16384, your device is using 16KB pages.</li></ul><h3>Steps to Make Your Flutter App 16KB-Ready</h3><p>Good news: most of this is about keeping your tools updated.</p><h3>1. Update Your Toolchain</h3><ul><li><strong>Flutter SDK:</strong> Always use the latest stable release.</li><li><strong>Android Gradle Plugin (AGP):</strong> Version <strong>8.5.1+</strong>.</li><li><strong>NDK:</strong> Version <strong>R28+</strong>.</li><li><strong>Dependencies:</strong> Update all Flutter plugins in pubspec.yaml. Most major ones are already fixing this.</li></ul><p>👉 These updates make sure your builds produce 16KB-compatible binaries.</p><h3>2. Rebuild Your App</h3><p>Once updated, rebuild your app from scratch. All the native code (from Flutter + plugins) will be recompiled with the right settings.</p><pre>flutter clean<br>flutter pub get<br>flutter build appbundle</pre><h3>3. Test Thoroughly</h3><ul><li>Use Android 15 emulator with 16KB pages.</li><li>Run on Pixel devices (with the option turned on).</li><li>Watch for crashes or weird behavior, especially in plugins that rely on native libraries.</li></ul><h3>4. Analyze App Size</h3><p>Run:</p><pre>flutter build appbundle --analyze-size</pre><p>Open the results in <strong>Flutter DevTools</strong> to see what’s taking space and ensure no outdated native binaries are sneaking in.</p><h3>Migration Checklist ✅</h3><ul><li>Update Flutter SDK flutter upgrade</li><li>Update AGP classpath &#39;com.android.tools.build:gradle:8.5.1&#39;</li><li>Update Gradle gradle-8.7-all.zip in wrapper</li><li>Update NDK 28.0.12433566 in gradle.properties</li><li>Update Dependencies pubspec.yaml latest versions</li><li>Rebuild App flutter clean &amp;&amp; flutter build appbundle</li><li>Test on Emulator Android 15 emulator with 16KB enabled</li><li>Test on Device Pixel (Android 15, 16KB option enabled)</li><li>Verify Page Size adb shell getconf PAGE_SIZE</li><li>Analyze App Size flutter build appbundle --analyze-size</li></ul><h3>What If You Don’t Update?</h3><p>If your app isn’t compatible:</p><ul><li>It may crash on Android 15+ devices.</li><li>Performance will suffer.</li><li>Google Play will <strong>reject your submission</strong> after Nov 1, 2025.</li></ul><p>Not a good situation.</p><h3>Final Thoughts</h3><p>This 16KB requirement isn’t just another checkbox from Google. It’s part of making Android apps faster, smoother, and more battery-friendly for users.</p><p>For Flutter devs, the solution is straightforward:</p><ul><li><strong>Update your SDKs, plugins, and NDK.</strong></li><li><strong>Rebuild and test on Android 15.</strong></li></ul><p>Do it early so you’re not scrambling at the deadline. Future-you (and your users) will thank you. 🚀</p><p><strong>Woah! you made it till here Thanks for reading! ❤️</strong></p><p>if you wanna reach out <a href="https://linkedin.com/in/moinuddin9777">click me</a> for my LinkedIn<br>Do check out my other articles on my <a href="https://medium.com/@moinuddin9777">Medium profile</a></p><p><em>A blog By</em></p><p><em>M.D. Moinuddin<br>SDE III — Quantana<br>Lead — TenosorFlow User Group Hyderabad<br>AI | FinTech | Quant</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efd34352cade" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why “Nano Banana” is Making Waves in the AI World. An engineer’s perspective beyond the hype ]]></title>
            <link>https://medium.com/@moin_tech/why-nano-banana-is-making-waves-in-the-ai-world-an-engineers-perspective-beyond-the-hype-33385ada27ae?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/33385ada27ae</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[banana]]></category>
            <category><![CDATA[gemini]]></category>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Thu, 28 Aug 2025 15:43:01 GMT</pubDate>
            <atom:updated>2025-08-28T15:43:01.233Z</atom:updated>
            <content:encoded><![CDATA[<h4>Well… well… go ahead and read this fun non-AI generated blog on generative AI 😆 🍌</h4><h4>A Long-Standing Hurdle</h4><p><strong>Let’s cut to the chase,</strong> the single biggest, most frustrating problem in generative image AI has been <strong>character consistency</strong>. This isn’t just an aesthetic inconvenience; it’s a deep-seated technical challenge that has plagued us for years.</p><p>Imagine you’re trying to generate a series of images of the same person — perhaps for a storyline, a product catalog, or even just a fun personal project. You get a fantastic initial image. Then, you ask the AI to change their outfit, put them in a different environment, or alter their pose. More often than not, the resulting image, while technically new, features a slightly different person. The eyes might be a fraction wider, the jawline subtly reshaped, the hair color nudged just enough to break the illusion. It’s that uncanny valley effect, where the output is <strong>“close but not quite,”</strong> rendering it practically unusable for any task requiring a persistent identity.</p><p><strong><em>From an engineering standpoint, this is incredibly difficult to solve.</em></strong> It demands a model that can disentangle the core “identity” of a subject from its mutable attributes (clothing, background, pose, expression) within its latent space. Previous models struggled because their internal representations weren’t robust enough to isolate and preserve these identity markers across diverse transformations. They were essentially creating a new person with each major edit.</p><h4>Lets see how “Nano Banana” Changes the Equation by taking a technical deep dive.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*i6iiLAe9rlxF_KFRSwJtxQ.jpeg" /><figcaption>Credits to: Imagen with Gemini</figcaption></figure><p><strong><em>Concept at play: Semantic Disentanglement</em></strong></p><p>I’ve spent countless hours in the lab wrestling with this very issue, so when I saw the results from this new model, my first thought was <strong>“how?”</strong></p><p>The real magic here, from an engineering perspective, is that Google seems to have cracked the code on <strong>semantic disentanglement</strong>. Think of an image’s digital DNA. Before, it was all jumbled up — a person’s face was inseparable from their background and clothing. With the “nano banana,” it’s as if they’ve found a way to neatly categorize and separate these elements. This allows the model to alter one part of the “DNA” (like the background) without messing up the others (like the person’s face).</p><p>This isn’t just a fancy trick; it fundamentally changes the way we can use these tools.</p><ul><li><strong>For developers:</strong> It means we can build applications that require persistent characters without having to write complex code to manually fix every inconsistency. The heavy lifting is done by the model itself.</li><li><strong>For creators:</strong> It means a seamless workflow. Imagine creating a visual story where your hero remains the same person, whether you place them in a futuristic city or a fantasy forest. You don’t need a PhD in prompt engineering or a team of artists to make it happen. You just need to tell the AI what you want.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RCje2N0DfZP2MAqyRl-1CQ.png" /><figcaption>(This is not how nano banana’s transformer looks like LOL)</figcaption></figure><p><strong><em>Concept at play: Multi-Modal Contextual Understanding</em></strong></p><p>The “nano banana” also showcases an exceptional ability to process and fuse information from multiple inputs. The capacity to combine a picture of a user with a separate picture of their pet and intelligently integrate them into an entirely new scene speaks volumes about its multi-modal contextual understanding. This isn’t just a simple cut-and-paste operation; it involves deep semantic reasoning to harmonize lighting, perspective, and style across disparate sources. This suggests a powerful encoder-decoder architecture that’s not just generating images but is built upon Gemini’s broader “world knowledge,” enabling it to synthesize diverse visual elements into a coherent whole, maintaining spatial and stylistic consistency that feels natural.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*msnSgo60LBv3lg-BzhtrBQ.png" /></figure><p><strong><em>Concept at play: Iterative Refinement and Memory</em></strong></p><p>The multi-turn editing capability is another engineering marvel that often gets overlooked in the flashier demos. Remembering previous edits is absolutely crucial for any meaningful, conversational interaction. This implies a stateful interaction, where the model maintains an internal representation of the modified image and applies subsequent prompts to that refined state, rather than starting from scratch each time. Implementing this efficiently, especially at scale, involves clever memory mechanisms and computational optimizations to ensure the model’s “working memory” of the image remains intact without incurring prohibitive costs or latency. This significantly enhances the user experience and opens doors for complex, guided creative workflows, removing the tedious need to painstakingly describe the entire scene anew for every minor tweak.</p><p>The consistent, high-fidelity results across these complex operations indicate a neural architecture that is not only vast but also incredibly well-tuned to understand and manipulate the underlying semantics of images. It’s a testament to the hard work put into training data curation, architectural design, and iterative refinement.</p><h4>Breaking Down Barriers: Creativity for Everyone!</h4><p>Beyond the raw technical achievement, the “nano banana” makes waves because it radically <strong>democratizes professional-grade image editing</strong>. For too long, the power to precisely manipulate visuals at a high level was confined to those with extensive training in complex software.</p><p>Now, with natural language prompts, anyone can articulate their creative vision and see it brought to life. You don’t need to understand layers, masks, or complex selection tools. You simply tell the AI what you want, in everyday language. This shifts the creative burden from technical execution to imaginative ideation, unlocking advanced capabilities for a far wider audience — from small business owners creating marketing materials to aspiring storytellers crafting visual narratives, or just individuals having fun with family photos.</p><h4>Validated by the Toughest Critics: The Community</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7bgvNfvHQDHCdK9tTVQVMw.png" /><figcaption>Image credits to: Google MENA Blog Team</figcaption></figure><p>Finally, what gives “nano banana” its undeniable gravitas isn’t just Google’s internal claims, but its performance on public, community-driven leaderboards. These platforms, often powered by blind user tests, provide an unfiltered, real-world assessment of an AI’s capabilities. Gemini 2.5 Flash Image quickly rose to the top for image editing, outperforming many established and highly-regarded models like GPT-4o, Midjourney, and DALL-E. This isn’t just about winning a benchmark; it’s about winning the hearts and minds of users who put these tools through their paces every single day.</p><p>From my perspective, this signals a pivotal moment. The “nano banana” isn’t just another shiny new object; it’s a robust, reliable tool that tackles a fundamental problem in generative AI. It’s making advanced creative power accessible and consistent, and that’s precisely the kind of progress that truly drives the field forward. This isn’t just about pixels and algorithms anymore; it’s about reshaping how we interact with, and contribute to, the digital visual world.</p><p><strong>Woah! you made it till here Thanks for reading! ❤️</strong></p><p>if you wanna reach out <a href="https://linkedin.com/in/moinuddin9777">click me</a> for my LinkedIn<br>Do check out my other articles on my <a href="https://medium.com/@moinuddin9777">Medium profile</a></p><p><em>A blog By</em></p><p><em>M.D. Moinuddin<br>SDE III — Quantana<br>Lead — TenosorFlow User Group Hyderabad<br>AI | FinTech | Quant</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33385ada27ae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Prompt to Response — How Large Language Models (LLMs) Actually Work Ft. Biriyani]]></title>
            <link>https://medium.com/@moin_tech/from-prompt-to-response-how-large-language-models-llms-actually-work-ft-biriyani-f1d83f80f1ef?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1d83f80f1ef</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Fri, 22 Aug 2025 15:09:39 GMT</pubDate>
            <atom:updated>2025-08-22T15:09:39.114Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Prompt to Response — How Large Language Models (LLMs) Actually Work Ft. Biriyani</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nF4BHVSJyf2AQlWgqp7M-A.png" /></figure><p>If you’ve ever typed a question into ChatGPT or any LLM based chat and observed how quickly it responds with coherent answers despite the language you ask in or the type of question you ask…</p><p>you’ve seen a <strong>Large Language Model (LLM)</strong> in action.</p><h4>Let’s break it down step by step — from your question about finding the best biriyani (of course Hyderabadi).</h4><h3>1️ — Your Words Become Numbers</h3><p><strong><em>concept at play: Tokenization &amp; Embeddings</em></strong></p><p>LLMs can’t directly understand “Which biriyani is the best?”. So the first step is <strong>tokenization</strong>.</p><ul><li>The sentence is split into tokens like [&quot;Which&quot;, &quot;biriyani&quot;, &quot;is&quot;, &quot;the&quot;, &quot;best&quot;, &quot;?&quot;].</li><li>Each token is mapped to a number (an ID).</li><li>These IDs are converted into <strong>embedding vectors</strong> — high-dimensional numbers that capture meaning.</li></ul><p>This way, “biriyani” and “pulao” will be closer in embedding space than “biriyani” and “laptop.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*kKofN_9sAj7a_8aew1WOrQ.png" /></figure><h3>2 — The Transformer Brain — Self-Attention</h3><p><strong><em>concept at play: Attention Mechanism</em></strong></p><p>Now comes the <strong>Transformer architecture</strong>, the backbone of all modern LLMs.</p><p>When the model sees “Which biriyani is the best?”, it doesn’t just look at “biriyani” in isolation. Through <strong>self-attention</strong>, it learns the relationships between words:</p><ul><li>“Which” tells it that you’re asking a question.</li><li>“Biriyani” tells it the topic is food.</li><li>“Best” tells it you’re looking for a comparison.</li></ul><p>Self-attention assigns <strong>weights</strong> to each token based on its importance in the sentence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tBt_xcB3qSjtdtwz.png" /></figure><h3>3 — Layers Refine the Understanding</h3><p><strong>concept at play: <em>Stacked neural networks with residual connections</em></strong></p><p>Transformers have <strong>multiple layers</strong> of attention + feed-forward networks.</p><p>Each layer takes the representation of your prompt and makes it richer:</p><ul><li>Early layers: understand the basic words (“biriyani = food”).</li><li>Middle layers: catch context (“best biriyani = preference, comparison”).</li><li>Deeper layers: abstract reasoning (“users expect an answer with multiple biriyani styles”).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kbR4UljPo1kM14r2" /></figure><h3>4 — Predicting the Next Word</h3><p><strong>concept at play: <em>Softmax probability + sampling strategies (Top-k, Top-p)</em></strong></p><p>Now that the model has processed your question, it starts generating an answer.</p><p>How? By predicting <strong>one token at a time</strong>.</p><p><em>For example:</em></p><ul><li>Step 1: Highest probability next word → “The”</li><li>Step 2: Next word → “best”</li><li>Step 3: Next word → “biriyani”</li><li>Step 4: Next word → “is”</li><li>Step 5: Next word → “Hyderabadi”</li><li>…and so on.</li></ul><p>This continues until the model completes a natural-sounding response like:</p><blockquote><em>AI Says: “The best biriyani depends on your taste — Hyderabadi biriyani is known for its flavour, Kolkata biriyani for its potatoes, and Lucknowi biriyani for its rich taste.”</em></blockquote><h3>5 — Wait… How It actually Learned About Biriyani?</h3><p><strong>concept at play: <em>Gradient Descent + Backpropagation</em></strong></p><p>Why does the model even know about biriyani? Because it was trained on massive amounts of text books, articles, recipes, blogs, Wikipedia. In terms of data they are called as corpus</p><p>During training, the LLM repeatedly tried to predict the <strong>next token</strong> correctly. For example:</p><blockquote><em>“Hyderabadi ___ is famous for its flavour.”<br> Model predicts → “biriyani.”</em></blockquote><p>Billions of these predictions, over billions of parameters, gradually tuned the model’s weights to capture <strong>language, facts, and patterns</strong>.</p><h3>6 — Bringing It All Together</h3><p>So when you ask <strong>“Which biriyani is the best?”</strong>, here’s what happens:</p><ol><li>Text → Tokens → Embeddings</li><li>Self-Attention figures out what’s important</li><li>Layers refine meaning and context</li><li>Next-token prediction generates the answer word by word</li><li>Training knowledge helps it recall biriyani types from text data</li></ol><p>And boom — you get a flavorful response that feels like a foodie friend wrote it.</p><h3>🌟 Woah you came all the way till here</h3><p>Thanks alot! So lets sum up all the concepts behind this play</p><ul><li><strong>Embeddings</strong> (to capture meaning)</li><li><strong>Attention</strong> (to understand context)</li><li><strong>Neural Networks</strong> (to learn representations)</li><li><strong>Probability &amp; Sampling</strong> (to generate text)</li></ul><p>And when scaled up with billions of parameters, you get a system that can talk about anything — not just biriyani.</p><p><strong>Thanks for reading!</strong></p><p>if you wanna reach out <a href="https://linkedin.com/in/moinuddin9777">click me</a> for my LinkedIn</p><p><em>By</em></p><p><em>M.D. Moinuddin<br>SDE III — Quantana<br>Lead — TenosorFlow User Group Hyderabad<br>AI | FinTech | Quant</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1d83f80f1ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ironwood TPU, the game changer. Powering the Age of "Thinking Models"]]></title>
            <link>https://medium.com/@moin_tech/ironwood-tpu-the-game-changer-powering-the-age-of-thinking-models-1e447c1cfd0a?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e447c1cfd0a</guid>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[tpu]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 04:33:12 GMT</pubDate>
            <atom:updated>2025-07-30T04:39:51.415Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Powering the Age of “Thinking Models” — Ironwood TPU, the game changer.</strong></h3><p>By: Moinuddin</p><p>---</p><p><em>Well… you can go ahead and read since I didn’t chatGPT all of this content 😂</em></p><p>As engineers, we’re used to thinking about CPUs, GPUs, and sometimes TPUs — the hardware behind our code. But when it comes to building AI models that do more than just autocomplete a sentence — models that reason, reflect, and generate — traditional chips are starting to hit their limits.</p><p>That’s why Google introduced Ironwood TPU, a next-generation chip purpose-built for “thinking models” like Large Language Models (LLMs), Mixture of Experts (MoEs), and deep reasoning systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P4waw2rUmuNhmBYvYIFlvA.jpeg" /></figure><p>In this article, I’ll break down what Ironwood TPU is, why it matters, and how it helps us build the future of AI — in plain language, from one engineer to another.</p><p><strong>Why Do We Even Need a New Chip?</strong></p><p><strong><em>Let’s rewind</em></strong>.</p><p>In the early days, AI models were small. We could run them on CPUs or GPUs without much issue. But now, models like GPT, Gemini, Claude, and others have exploded in size — crossing trillions of parameters. These aren’t just models anymore. They’re machines that reason, recall, and react in real-time.</p><p>This next level of intelligence demands three things:</p><p>1. Massive parallel computation (do lots of math at once)</p><p>2. Fast access to huge amounts of memory</p><p>3. Low latency and minimal data movement (to avoid delays)</p><p>Traditional GPUs can do this to an extent, but they weren’t designed specifically for AI inference at this level of complexity. That’s where Ironwood TPU comes in.</p><p><strong>So What Is Ironwood TPU?</strong></p><p>Ironwood is Google’s latest Cloud TPU, a specialized chip designed from the ground up for AI training and inference — especially for extremely large, complex models.</p><p>You can think of a TPU as a super-optimized calculator for AI math (tensor operations). But Ironwood isn’t just faster — it’s smarter in how it handles memory, power, and coordination across thousands of chips.</p><p><strong>Key Features of Ironwood (Explained Simply)</strong></p><p>Let’s break this down like a generic engineer would:</p><p>1. Massive Scale for Massive Models</p><p>Ironwood comes in two pod sizes:</p><p>256-chip pods for normal large-scale AI workloads</p><p>9,216-chip pods for the really heavy stuff</p><p>To put this in perspective — a 9,216-chip Ironwood pod can deliver 42.5 Exaflops, which is 24x faster than El Capitan, the world&#39;s biggest supercomputer.</p><p>Each chip alone does 4,614 TFLOPs, which is insane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*BEqp41ADZgPElzUGslrHhg.webp" /></figure><p>2. Built for Reasoning and Large Models</p><p>Ironwood is optimized for:</p><p>LLMs (like GPT-style models)</p><p>MoEs (where different “experts” in a model activate based on the input)</p><p>Ultra-large embedding tables (used in recommender systems)</p><p>These aren’t just text models. They’re being used in finance, scientific computing, search, and even protein folding. And Ironwood is built to handle the unique memory and compute needs of all of these.</p><p>3. Supercharged Memory Access</p><p>Each chip has 192 GB of High Bandwidth Memory (HBM) — 6x more than the previous gen.</p><p>Bandwidth? 7.37 TB/s per chip. That means the chip can load a crazy amount of data super fast.</p><p>Why this matters: In AI, speed is often bottlenecked not by compute but by how fast you can fetch data. Ironwood removes that bottleneck.</p><p>4. High-Speed Interconnect Between Chips</p><p>When you have thousands of chips working on one giant model, they need to talk to each other — fast.</p><p>Ironwood uses a high-speed Inter-Chip Interconnect (ICI) that can move data at 1.2 TBps bidirectional between chips — making sure training and inference stay coordinated and don&#39;t get stuck waiting.</p><p>5. SparseCore for Specialized Workloads</p><p>Ironwood has an upgraded SparseCore, a special hardware block that’s great at handling:</p><p>Sparse data (like huge recommendation models)</p><p>Lookup tables</p><p>Financial workloads that aren’t dense matrix ops</p><p>This expands TPUs beyond just AI — into things like finance, logistics, ranking systems, and more.</p><p>6. Power Efficiency That Actually Matters</p><p>Running AI at this scale isn’t just about speed — it’s about not melting the datacenter.</p><p>Ironwood delivers:</p><p>2x better performance per watt compared to the last-gen Trillium TPU</p><p>30x better efficiency than Google’s first TPU (from 2018)</p><p>Advanced liquid cooling, not just air cooling — allowing sustained performance</p><p>This is critical because power constraints are becoming a real bottleneck for scaling AI.</p><p>7. Software to Tie It All Together: Pathways</p><p>All of this hardware would be useless without smart software.</p><p>Google’s Pathways runtime allows AI workloads to scale across hundreds of thousands of chips. It takes care of:</p><p>Task distribution</p><p>Load balancing</p><p>Data flow between chips and pods</p><p>It makes the hardware usable — no matter how massive your model is.</p><p><strong>What Problems Does Ironwood Actually Solve?</strong></p><p>Let’s be real. As engineers, we only care if it solves real problems. Here’s what it helps with:</p><p>✅ Running massive LLMs and MoEs at real-world speeds<br>✅ Handling huge embeddings for ranking/search systems<br>✅ Keeping latency low for fast inference<br>✅ Scaling up without blowing your power budget<br>✅ Reducing infrastructure complexity at multi-pod scale<br>✅ Expanding AI into finance, science, and edge use cases</p><p><strong>Why It’s a Big Deal</strong></p><p>We’re no longer building simple models for classification. We&#39;re building intelligent systems that generate, reason, plan, and adapt.</p><p>That means inference has gone from a lightweight task to a full-blown computational challenge. Ironwood is Google’s answer — a chip designed from day one to handle the AI of tomorrow, not just today.</p><p>And the best part? It’s available in Google Cloud for those of us building large-scale systems — whether you’re training your next LLM or scaling recommendation systems to millions of users.</p><p><strong>Final Thoughts</strong></p><p><strong><em>As engineers, we’re often excited by “more power,” but Ironwood is about more smartly applied power</em></strong> — tuned for the specific needs of the new AI generation.</p><p>Whether you&#39;re working in ML, systems, or even application layers, Ironwood is the kind of foundational tech worth understanding — because chances are, the next-gen AI tool you build will rely on this kind of compute.</p><p>Let me know your thoughts — or if you’re planning building with Ironwood, I’d love to learn from your experience!</p><p>Written by — Moinuddin<br>SDE — III | AI |</p><p>Leading TFUG Hyderabad</p><p><a href="https://linkedin.com/in/moinuddin9777">Linkedin</a></p><p>#AI #MachineLearning #TPU #Ironwood #CloudEngineering #LLMs #Inference #GoogleCloud #HardwareEngineering #DeepLearning</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e447c1cfd0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proof of Work explained in simple words with a bar of chocolate.]]></title>
            <link>https://medium.com/@moin_tech/proof-of-work-explained-in-simple-words-with-a-bar-of-chocolate-a88b12ed17f2?source=rss-70235290c506------2</link>
            <guid isPermaLink="false">https://medium.com/p/a88b12ed17f2</guid>
            <dc:creator><![CDATA[Moinuddin]]></dc:creator>
            <pubDate>Sat, 20 May 2023 20:02:42 GMT</pubDate>
            <atom:updated>2023-05-20T20:02:42.868Z</atom:updated>
            <content:encoded><![CDATA[<p>Instead of lots of technical terms and lots of copy-pasted data from documentation, this article will really help you out in understanding proof of work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*twS_Do1OIeqopvesyhqqsQ.jpeg" /></figure><p>Imagine you have a group of friends who love chocolate, and you want to distribute a big bar of it fairly among the group and you don’t want anyone to take more part than they deserve. So this is how you can implement PoW(proof of work) in this scenario.</p><p>So first things first, your friends ask for their part of the chocolate so let&#39;s imagine this as the requests received to send a response.</p><p>Now, to be fair enough and prevent anyone from grabbing a disproportionate amount of the chocolate bar, you create a simple puzzle. In this case, the puzzle’s rule is to find a number that, when combined with the friend’s name, results in a hash that ends with two zeros. The hash function takes an input (friend’s name + number) and produces a unique output (the hash value).</p><p>For example, my name is Moin I keep trying different numbers until I find that when I combine my name with the number 97, the resulting hash ends with “00.” I find that Moin97” hashes to some value like “13b5f42d7e1f9800.”</p><p>PS: Not real values.</p><p>Now, your friends start guessing different numbers, adding them to their names, and hashing the combined string until they find a hash that ends with two zeros. As soon as one comes up with a solution you first verify if the person has given the correct output or not. If correct you give that person a piece from the bar of chocolate(allocation) and the same continues for others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*3babYy_9VoCdyPxyUz2e-w.jpeg" /></figure><p>The puzzle acts as proof that the friends have done some computational work to earn their share. The puzzle difficulty can be adjusted to ensure a fair distribution by making it harder or easier to find a solution (e.g., requiring more or fewer zeros at the end of the hash).</p><p>Just like this example what happens in the blockchain is miners, who are participants in the network, gather a set of pending transactions and aim to create a new block. Each block includes a reference to the previous block’s hash, forming a chain of blocks. Here, miners use their computational powers and start hashing the block’s data, which includes the transactions and the previous block’s hash, combined with different nonce values. They try different nonce values until they find the right one. Once the solution is verified by the network, the miner adds the new block to the blockchain. The block includes the verified transactions, the solution (proof of work) in the form of the nonce value, and a timestamp.</p><p>By using PoW, the blockchain achieves consensus among network participants, ensures the integrity of the blockchain, and makes it computationally very difficult for malicious actors to manipulate past transactions.</p><p>Woah, you made it to the end!<br>Thank you so much for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a88b12ed17f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>