<?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 Sharadsisodiya on Medium]]></title>
        <description><![CDATA[Stories by Sharadsisodiya on Medium]]></description>
        <link>https://medium.com/@sharadsisodiya9193?source=rss-4d343a4fdad9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*PAziP9OTh9XXhFnXCD_0jg.jpeg</url>
            <title>Stories by Sharadsisodiya on Medium</title>
            <link>https://medium.com/@sharadsisodiya9193?source=rss-4d343a4fdad9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 04:57:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sharadsisodiya9193/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[Hack the thought process of LLM in realtime - Streering]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.gopenai.com/hack-the-thought-process-of-llm-in-realtime-streering-7597b8c6152b?source=rss-4d343a4fdad9------2"><img src="https://cdn-images-1.medium.com/max/2552/1*JyqKKAqXK2Od2FfsIWnqkg.png" width="2552"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://blog.gopenai.com/hack-the-thought-process-of-llm-in-realtime-streering-7597b8c6152b?source=rss-4d343a4fdad9------2">Continue reading on GoPenAI »</a></p></div>]]></description>
            <link>https://blog.gopenai.com/hack-the-thought-process-of-llm-in-realtime-streering-7597b8c6152b?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7597b8c6152b</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[reasoning]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Sat, 20 Dec 2025 18:31:13 GMT</pubDate>
            <atom:updated>2025-12-23T07:55:06.721Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Understand How Reasoning Works In LLMs(LRMs)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-and-beyond/understand-how-reasoning-works-in-llms-lrms-29e43bc9e04e?source=rss-4d343a4fdad9------2"><img src="https://cdn-images-1.medium.com/max/1456/0*aAsxzSxSPHDSGgU1.png" width="1456"></a></p><p class="medium-feed-link"><a href="https://medium.com/data-and-beyond/understand-how-reasoning-works-in-llms-lrms-29e43bc9e04e?source=rss-4d343a4fdad9------2">Continue reading on Data And Beyond »</a></p></div>]]></description>
            <link>https://medium.com/data-and-beyond/understand-how-reasoning-works-in-llms-lrms-29e43bc9e04e?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/29e43bc9e04e</guid>
            <category><![CDATA[reasoning]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[deepseek]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 10:06:23 GMT</pubDate>
            <atom:updated>2025-11-10T10:50:09.193Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How Oracle Secretly Controls Every AI Company: The Story You’ve Never Heard]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@sharadsisodiya9193/how-oracle-secretly-controls-every-ai-company-the-story-youve-never-heard-edb380e74b7f?source=rss-4d343a4fdad9------2"><img src="https://cdn-images-1.medium.com/max/860/0*joFBMWMZmjZyOy0M" width="860"></a></p><p class="medium-feed-snippet">Non Members can read here &#x2014; Click here</p><p class="medium-feed-link"><a href="https://medium.com/@sharadsisodiya9193/how-oracle-secretly-controls-every-ai-company-the-story-youve-never-heard-edb380e74b7f?source=rss-4d343a4fdad9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@sharadsisodiya9193/how-oracle-secretly-controls-every-ai-company-the-story-youve-never-heard-edb380e74b7f?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/edb380e74b7f</guid>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[billionaires]]></category>
            <category><![CDATA[earn-money-online]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Sun, 19 Oct 2025 17:51:52 GMT</pubDate>
            <atom:updated>2025-10-19T17:52:47.537Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The 7 Million Parameter Giant Slayer: Samsung’s Tiny Model That’s Redefining AI Reasoning]]></title>
            <link>https://medium.com/@sharadsisodiya9193/the-7-million-parameter-giant-slayer-samsungs-tiny-model-that-s-redefining-ai-reasoning-d85322d50aa0?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d85322d50aa0</guid>
            <category><![CDATA[samsung]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Sun, 12 Oct 2025 18:43:51 GMT</pubDate>
            <atom:updated>2025-10-12T18:47:23.419Z</atom:updated>
            <content:encoded><![CDATA[<h3>Can a 7M Model Beat a 100B+ LLM? Samsung’s TRM Says Yes.</h3><p>For years, the world of Artificial Intelligence has been ruled by one idea:<br> <strong>“Bigger models mean smarter AI.”</strong></p><p>Tech companies have been in a nonstop race to build massive language models (LLMs) with <strong>hundreds of billions or even trillions of parameters</strong>. These huge systems can write essays, code software, and chat like humans. But they also come with some serious problems:</p><ul><li>They <strong>consume enormous amounts of energy</strong>.</li><li>They <strong>cost millions of dollars to train</strong>.</li><li>And surprisingly, they often <strong>struggle with real logical reasoning</strong> — the ability to think through problems step-by-step like humans do.</li></ul><p>Now, imagine a model that’s <strong>tiny — only 7 million parameters</strong> that performs reasoning tasks <strong>as well as or even better than</strong> these gigantic models.<br> Sounds impossible, right?</p><p>That’s precisely what a recent <a href="https://arxiv.org/pdf/2510.04871v1">paper from Samsung </a>proposes with their <strong>Tiny Recursive Model (TRM)</strong>, and it’s shaking up the foundations of AI research. Let’s dive deep into why this tiny model is such a monumental breakthrough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*bke5rvNfrI2bcQNSLOZqxg.png" /><figcaption>Tiny Recursion Model (TRM) recursively improves its predicted answer y with a tiny network. It starts with the embedded input question x and initial embedded answer y, and latent z. For up to Nsup = 16 improvements steps, it tries to improve its answer y. It does so by i) recursively updating n times its latent z given the question x, current answer y, and current latent z (recursive reasoning), and then ii) updating its answer y given the current answer y and current latent z. This recursive process allows the model to progressively improve its answer (potentially addressing any errors from its previous answer) in an extremely parameter-efficient manner while minimizing overfitting.</figcaption></figure><h3>What Makes TRM Different</h3><p>The secret lies in its architecture.<br> Unlike traditional large models that process everything in one huge forward pass, <strong>TRM uses recursion</strong> — a method where the model <strong>calls itself</strong> repeatedly to refine its reasoning.</p><p>Think of it like this:</p><ul><li>A big model tries to do everything at once — like lifting a car in one go.</li><li>TRM, instead, lifts the car <strong>bit by bit</strong>, reasoning over each piece until it gets the full answer.</li></ul><p>This recursive loop allows TRM to <strong>simulate deep reasoning</strong> without needing a massive number of parameters.</p><p><strong>Let’s explore this concept as if we’re the ones inventing it ourselves — step by step — so we can truly grasp the thinking and analogies behind the researchers’ approach.</strong></p><h3>Part 1: The Training Pipeline — Teaching a Model to Think</h3><p>Our fundamental problem with traditional LLMs was their training objective. They are trained to be phenomenal parrots. On a massive dataset of text, their only goal is to predict the next word. This is called <strong>autoregressive next-token prediction</strong>. While powerful for language, it’s a terrible way to teach reasoning. It’s like learning to solve a Rubik’s Cube by memorizing millions of solved sequences without understanding the underlying logic. A single wrong move, and the whole solution is garbage.</p><p>We needed a different approach. We had to teach the model to refine a solution, not just spit out a sequence. Here is how we designed the TRM training pipeline, step-by-step, and how it radically differs from an LLM’s.</p><h3>TRM Training Pipeline: A Cycle of Refinement</h3><p>Imagine we’re teaching the model to solve a Sudoku puzzle.</p><p><strong>Step 1: The Initial State</strong> For each puzzle in our (small) training set, we don’t just give the model the puzzle board. We provide three things:</p><ol><li><strong>The Problem (</strong><strong>x):</strong> The initial Sudoku grid.</li><li><strong>An Initial Guess (</strong><strong>y):</strong> This is a &quot;draft&quot; of the answer. To start, it could be the puzzle board itself or a board with some random (but valid) numbers filled in.</li><li><strong>A Latent Reasoning State (</strong><strong>z):</strong> This is the crucial part. Think of it as the model&#39;s &quot;scratchpad&quot; or internal monologue. It&#39;s a hidden vector of numbers that represents the model&#39;s current &quot;thoughts&quot; about the puzzle. Initially, it&#39;s just a blank slate (e.g., a vector of zeros).</li></ol><blockquote><strong><em>Comparison to LLMs:</em></strong><em> An LLM is just given an input prompt (the puzzle) and is expected to produce the output sequence. It has no concept of an initial guess or an explicit “reasoning” state that gets refined.</em></blockquote><p><strong>Step 2: The Recursive Forward Pass (The “Thinking” Loop)</strong> This is the heart of TRM. Instead of one massive forward pass through trillions of parameters, our tiny 7M parameter network runs in a loop. For a set number of steps (e.g., T=16 times):</p><ul><li><strong>A. The Thinking Phase:</strong> We update the model’s “scratchpad.” The network takes the <strong>problem (</strong><strong>x)</strong>, the <strong>current guess (</strong><strong>y)</strong>, and its <strong>current reasoning state (</strong><strong>z)</strong> as input. It processes these and outputs a <em>new, updated</em> reasoning state (z&#39;). This is the model &quot;thinking&quot; about the relationship between the puzzle, its current answer, and its previous thoughts.</li><li>z&#39; = network(x, y, z)</li><li><strong>B. The Action Phase:</strong> Now, using this refined thought process, the model improves its answer. The network takes the <strong>current guess (</strong><strong>y)</strong> and the **new reasoning state (z&#39;)** as input and produces a *new, better* guess (y&#39;`).</li><li>y&#39; = network(y, z&#39;)</li></ul><p>We repeat this z -&gt; y update cycle for the 16 steps. At each step, the model&#39;s guess (y) should be getting closer to the correct solution.</p><blockquote><strong><em>Comparison to LLMs:</em></strong><em> An LLM’s forward pass is linear and massive. It flows through all its layers once to produce a single token. Then the whole process repeats for the next token. It never looks back to revise the full answer. Our TRM, in contrast, repeatedly revises the </em>entire solution<em> in a tight, efficient loop.</em></blockquote><p><strong>Step 3: Calculating Loss (Deep Supervision)</strong> How do we know if the model is learning? After each step in the recursive loop, we compare the model’s current guess (y&#39;) to the ground-truth correct answer. We calculate a loss for <em>every intermediate guess</em>. This is called <strong>deep supervision</strong>. We are not just telling the model &quot;your final answer was wrong.&quot; We are telling it, &quot;your guess at step 1 was okay, but at step 2 you went off track, and at step 3 you corrected a bit...&quot;</p><blockquote><strong><em>Comparison to LLMs:</em></strong><em> An LLM’s loss is calculated at the very end of the generated sequence. If it makes a mistake at the beginning that leads to a wrong answer, it only gets that single error signal. Our deep supervision provides a much richer, step-by-step feedback signal, making learning much more effective.</em></blockquote><p><strong>Step 4: The Backward Pass (Unrolling the Loop)</strong> This was a key innovation. The previous model, HRM, used complex math and made assumptions about convergence to approximate the gradient. We threw that out. We simply “unroll” the entire 16-step recursive loop and perform a standard <strong>backpropagation through time</strong>. It’s computationally more intensive than the HRM’s approximation, but it gives a true, accurate gradient. This single change was responsible for a massive performance jump, like improving Sudoku accuracy from 56.5% to 87.4%.</p><blockquote><strong><em>Comparison to LLMs:</em></strong><em> The backward pass in an LLM is more straightforward as it only has to go back through the single forward pass. Our method is more complex as it has to propagate the error signal back through every step of the unrolled thinking loop.</em></blockquote><h3>Part 2: The Inference Pipeline — Solving a New Puzzle</h3><p>Now that our TRM is trained, how does it solve a puzzle it has never seen before? The inference pipeline is very similar to the training pipeline, but with a crucial difference.</p><h3>TRM Inference Pipeline: Think Until It’s Solved</h3><p><strong>Step 1: The Initial State</strong> Just like in training, we give the model the new <strong>problem (</strong><strong>x)</strong>, a blank <strong>initial guess (</strong><strong>y)</strong>, and a blank <strong>reasoning state (</strong><strong>z)</strong>.</p><p><strong>Step 2: The Recursive Loop</strong> The model begins its “thinking” loop, executing the Thinking Phase and Action Phase to iteratively update its reasoning (z) and its guess (y).</p><p><strong>Step 3: Adaptive Halting (Knowing When to Stop)</strong> Here’s the key difference. In training, we ran the loop for a fixed 16 steps. In inference, that’s inefficient. What if the model solves the puzzle in 5 steps? Or what if it’s stuck and not making progress? We use a mechanism called <strong>Adaptive Computation Time (ACT)</strong>. After each loop, the ACT component looks at how much the answer is changing. If the changes become very small, it signals the model to “halt” and output its current guess as the final answer. This saves computation and prevents the model from looping indefinitely.</p><p>The final output is the model’s refined guess (y) when the ACT mechanism tells it to stop.</p><blockquote><strong><em>Comparison to LLMs:</em></strong><em> Inference in an LLM is a linear, one-way street. It generates the first token, then the second based on the first, the third based on the first two, and so on. This is </em><strong><em>autoregressive generation</em></strong><em>. It can’t stop, go back, and fix the first token if it realizes it made a mistake. Our TRM is fundamentally designed to do exactly that: look at its own answer, think, and fix it. This is why it excels at tasks requiring logic and planning, where a single early mistake is fatal for an LLM.</em></blockquote><h3>More About TRM architecture</h3><p>TRM is not designed for sequential data like language. It’s designed for structured reasoning tasks (like Sudoku, mazes, or ARC puzzles) where the entire problem context is available at once.</p><p>Here’s the core difference in its operational logic:</p><ol><li><strong>Global Context by Default:</strong> At every single step of its recursive loop, the TRM network receives the <strong>entire problem (</strong><strong>x)</strong> and the <strong>entire current solution (</strong><strong>y)</strong> as input. It&#39;s not reading the Sudoku grid one square at a time. It sees the whole board, its complete current answer, and its entire &quot;thought process&quot; (z) all at once, every single time. There is no &quot;past&quot; to forget.</li><li><strong>Learning Spatial/Logical Relationships:</strong> Without attention’s ability to “point” to specific parts of the input, the TRM’s simple feed-forward network is forced to learn the <em>underlying rules and relationships</em> of the task directly. For a Sudoku puzzle, it learns implicit rules like “what is the relationship between this square and all other squares in its row, column, and 3x3 box?” It learns these as functions within its weights, rather than needing an explicit attention mechanism to find them.</li><li><strong>The Reasoning State (</strong><strong>z) as a Context Vector:</strong> The latent reasoning state z acts as a dynamic, evolving summary of the most important information. Think of it as the model&#39;s high-level understanding. In the reasoning step (z&#39; = network(x, y, z)), the model is essentially asking: &quot;Given the whole problem x, my current answer y, and my previous thoughts z, what is the most important thing to focus on now?&quot; The updated z&#39; becomes a compressed vector of that focus, which then guides the update to the solution. It&#39;s a form of <strong>learned, implicit attention</strong>.</li></ol><p><strong>Analogy: The Expert vs. The Speed-Reader</strong></p><ul><li>An <strong>LLM with attention</strong> is like a brilliant <strong>speed-reader</strong>. It can instantly scan a massive book (sequence) and create links between a word on page 300 and a concept introduced on page 5. It excels at finding relationships in vast, linear information.</li><li>The <strong>TRM</strong> is like an <strong>expert engineer</strong> staring at a single, complex blueprint (the problem state). The engineer isn’t reading the blueprint from left to right. They are looking at the <em>entire diagram at once</em>, constantly cross-referencing different components (the inputs x, y, and z) to understand how they interact. Their &quot;thought process&quot; allows them to focus on fixing a specific part while maintaining a holistic understanding of the entire system.</li></ul><p>In essence, TRM doesn’t need a mechanism to <em>find</em> long-range dependencies, because it never operates in a way where that information could be lost. The entire context is perpetually present and fed into the network at every computational step. This is a fundamentally different processing paradigm that is highly optimized for the kind of logical reasoning tasks it was designed to solve.</p><h3>The Future of Efficient Intelligence</h3><p>The Tiny Recursive Model is more than just a clever trick; it’s a paradigm shift. It challenges the fundamental assumption that raw scale is the only path to intelligence. By focusing on <em>how</em> a model thinks, rather than simply <em>what</em> it knows, TRM opens the door to a future where highly capable AI models can run on smaller, more accessible hardware, consume less energy, and provide transparent, verifiable reasoning.</p><p>This research reminds us that sometimes, the most revolutionary breakthroughs come not from building bigger, but from thinking smarter. The 7-million-parameter giant slayer has arrived, and it’s poised to redefine our understanding of efficient AI reasoning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d85322d50aa0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenAI Agent Builder: A Complete Walkthrough to Building Your First AI Agent]]></title>
            <link>https://medium.com/data-and-beyond/openai-agent-builder-a-complete-walkthrough-to-building-your-first-ai-agent-581bcd742226?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/581bcd742226</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Sat, 11 Oct 2025 11:14:06 GMT</pubDate>
            <atom:updated>2025-10-12T06:23:42.473Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Agent Builder transformed what once took months of complex orchestration, custom code, and manual optimizations into just a couple of hours. The visual canvas keeps product, legal, and engineering on the same page, slashing iteration cycles by 70% and getting an agent live in two sprints rather than two quarters.”</blockquote><h4>What is Agent Builder? A Visual Revolution</h4><p>OpenAI has just released <a href="https://openai.com/index/introducing-agentkit/">AgentKit</a> at DevDay 2025, a comprehensive set of tools for building and deploying AI agents. The kit contains</p><ul><li>Agent Builder: A visual drag-and-drop canvas for building agents.</li><li>ChatKit: A toolkit to embed a chat-based agent in your product.</li><li>Connector registry: A central place for managing how tools connect across ChatGPT.</li></ul><p>This was a surprising launch, which shook the internet and posed an existential threat to nearly half of Silicon Valley’s companies. But we are not here for that. Let’s get to the business and understand what Agent Builder is, who it is for, and how to build your first agent with it, so you don’t fall behind in the AI rat race.</p><p><strong>Key Pillars of the Agent Builder:</strong></p><ul><li><strong>Intuitive Orchestration:</strong> Instead of wrestling with complex SDKs for workflow logic, you connect <strong>Nodes</strong> on a canvas. Each node is a distinct step — a decision, a tool, or an action — and the connections between them form the intelligent nervous system of your agent.</li><li><strong>Accelerated Prototyping:</strong> Go from a blank canvas to a functional agent in hours, not months. This radical reduction in development time allows for rapid iteration and experimentation, fostering innovation at an unprecedented scale. As the team at <strong>Ramp</strong> noted, “Agent Builder transformed what once took months… into just a couple of hours… slashing iteration cycles by 70%.”</li><li><strong>Built-in Intelligence and Safety:</strong> The platform is not just a canvas but a comprehensive toolkit. You can seamlessly integrate tools like <strong>Web Search</strong>, enforce safety with configurable <strong>Guardrails</strong>, and run evaluations directly within the builder to ensure your agents are not only effective but also reliable and safe.</li><li><strong>Seamless Deployment:</strong> The journey from concept to customer is now a direct path. Workflows can be published with a click and deployed effortlessly into your product using <strong>ChatKit</strong>, or exported as production-grade code via the <strong>Agents SDK</strong> for deep, custom integrations.</li></ul><h4>The Anatomy of an Agent: Composing with Nodes</h4><p>The core philosophy of Agent Builder revolves around two concepts: <strong>Workflows</strong> and <strong>Nodes</strong>. A workflow is the master blueprint for your agent’s behavior. Nodes are the functional building blocks, the “Lego bricks” of intelligence that you assemble to create that behavior.</p><p>To understand this in practice, let’s deconstruct the “Helpful Travel Agent” example from OpenAI’s launch:</p><ol><li><strong>The Entry Point (Start Node):</strong> The workflow begins when a user asks a question, like, &quot;I need a flight to Tokyo&quot; or &quot;Plan a day trip for me.&quot; This input flows from the <strong>Start Node</strong>.</li><li><strong>The Decision Maker (Classifier Agent Node):</strong> The first challenge is to understand intent. A specialized <strong>Agent Node</strong>, configured as a <em>classifier</em>, analyzes the input. Its sole job is to output a structured piece of data (JSON) labeling the request as either &quot;flight_info&quot; or &quot;itinerary&quot;.</li><li><strong>The Fork in the Road (If/Else Node):</strong> Based on the classifier’s output, a <strong>Logic Node</strong> (If/Else) directs the workflow down one of two paths—a testament to the builder&#39;s ability to handle conditional complexity without code.</li><li><strong>The Specialists (Specialized Agent Nodes):</strong></li></ol><ul><li>If the request is for a flight, it is routed to a Flight Agent. This agent is equipped with a crucial <strong>Tool</strong>: Web Search, giving it the power to access real-time, external flight data.</li><li>If the request is for an itinerary, it is sent to the Itinerary Agent, which is fine-tuned with instructions specifically for creating travel plans.</li></ul><p>5.<strong> The User Experience (Widget Output):</strong> To elevate the experience beyond plain text, the Flight Agent is configured to output its findings using a <strong>Widget </strong>a rich, interactive component that displays flight details in a clean, structured format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*03OemBj6ueQ8XLxV" /></figure><h3>How to Access Agent Builder?</h3><p>Time needed: 2 minutes</p><p>To access Agent Builder, follow these steps:</p><ol><li><strong>Sign in to OpenAI Platform: </strong>Log in to your OpenAI account on their official website.</li><li><strong>Navigate to Agent Builder: </strong>Visit <a href="https://platform.openai.com/docs/guides/agent-builder">this page</a> and click on open Agent Builder.</li><li><strong>Access Agent Builder: </strong>Once in, click on Create workflow.</li><li><strong>Start Building: </strong>Use the visual canvas to drag, drop, and connect components to create your agent workflows.</li></ol><h3>Step-by-Step Guide to Your First AI Agent</h3><p>we explored the core concepts of OpenAI’s Agent Builder, understanding what it is and why it represents a significant step forward in AI development. Now, it is time to move from theory to practice.</p><p>This guide will provide a detailed, step-by-step walkthrough of creating your first functional AI agent using the Agent Builder. We will construct a “Helpful Travel Agent” capable of handling different user requests, a practical example that showcases the builder’s key features, including conditional logic, tool integration, and rich outputs.</p><h3>Prerequisites</h3><p>Before we begin, please ensure you have the following in place:</p><ul><li>An OpenAI account with access to the OpenAI Platform.</li><li>Billing details configured in your account to enable full platform functionality.</li><li>Familiarity with the Agent Builder interface, accessible at platform.openai.com/agent-builder.</li></ul><h3>Building The YouTube Q/A Agent Step by Step</h3><p>For simplicity and clarity, I have broken the flow on a node-by-node basis. Each section covers how to set up, with additional details on the node.</p><p>For the overview, we are going to follow the following flow:</p><pre>User Query -&gt; Safety net -&gt; Rag Query by Agent -&gt; Results Returned</pre><h3>Set Entry Point with Start Node</h3><p>Click on the + Create button. This will open a blank canvas, much like n8n, but with a Start Node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Met39bmAFnqdanIs" /></figure><p>New OpenAI Agent Builder workflow with only the start node</p><p>The start node acts as an entry point to any workflow. It offers two variables:</p><p><strong>Input variables</strong></p><ul><li>Define inputs to the workflow.</li><li>Use input_as_text to ****represent user-provided text / append it to chat history</li><li>Default variable representing input, if no state variable is provided.</li></ul><p><strong>State variables</strong></p><ul><li>Additional input parameters are passed during the input process.</li><li>Persistent across the entire workflow and accessible using state nodes.</li><li>Can be defined just as variables and store a single data type</li></ul><p>For now, let’s keep only the Input variables. Time to add input validation next</p><h3>Input Validation with Guardrail Node</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M_c9rjpPu2CuqZrP" /></figure><p>Next, we need to add input validation/guardrails to ensure that filtered query inputs are only passed to the model for a better chat experience.</p><p>To do this, let’s add a Guardrail node and connect it to the start node. If you click on the Guardrail node, you will find many options</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/0*P_slHoNvQOMkfSdQ" /></figure><p>Here is what each does:</p><ul><li>Name: Name of the node</li><li>Input: Name of the input variable; can vary if text state variable is also defined.</li><li>Personally identifiable information (PII): Detects and Redacts any PII</li><li>Moderation: Classifies and blocks the harmful content if the prompt contains it.</li><li>Jailbreak: Detects prompt injection and jailbreak; tries to keep the model on task</li><li>Hallucination: Verifies the input by validating against the knowledge source (rag vector store) if added.</li><li>Continue on error: Provides an option to set an error path if the guardrail fails to run. Not a suitable choice for production-grade flows.</li></ul><p>Having understood all of this, let’s set them up.</p><ul><li>Moderation: Click ⚙️ → Most Critical → Save → Toggle On</li><li>Jailbreak: Toggle On (keep defaults)</li><li>Hallucinations: Click ⚙️ → Add Vector Store Id (generated in next section) → Save → Toggle On (For later step when mentioned)</li></ul><p><strong>moderation guardrail setup</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bLUQcjPb5-VNbeEb" /></figure><p>Now let’s add the agent — the heart of the flow</p><h3>Adding the Brain with Agent Node, Rube MCP &amp; Vector Store</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2yz4ODM9ZpYHtEGu" /><figcaption>To add an agent, click on the Agent Node in the sidebar and connect it with the pass path.</figcaption></figure><p>Then, inside agents, let’s configure a few things:</p><ul><li>Name: Name of the agent, let’s use YouTube Q/A Agent</li><li>Instructions: Instructions on how the agent should act, use one from the gist, or you can make your own following the OpenAI agent builder prompting guide. Or, use the ✏️ icon to generate a prompt.</li><li>Include Chat History: Whether to include past conversation or not. Suitable for context building, but racks up cost. Let’s set it on.</li><li>Model: Model to use. Let’s go with GPT-5. You can opt for cheaper models if the usage is high gpt5-mini / gpt4o</li><li>Reasoning: Can’t be turned off, can only be set to minimum. Let’s go for medium here.</li><li>Output Format: Supports text, JSON, and widgets. Let’s keep default — text</li><li>Verbosity: Set too low for shorter answers and vice versa. Let go with medium</li><li>Summary: Shows the reasoning summary in chat. I am setting it to null, but you can keep it enabled if you prefer.</li><li>Write Conversation History: Let’s proceed, saving the data to the conversation history state.</li></ul><p>Now, to add Rag Vector Store and MCP support, click on + the tools</p><p>For Vector Store:</p><ul><li>Select File Search from the list</li><li>Add all files</li><li>Save</li><li>Copy the generated vector ID and paste it in the Hallucinations vector_id field and save.</li></ul><h3>Adding MCP to the Agent Builder</h3><p>It comes with a default set of MCP servers, maintained by OpenAI, including Gmail, Drive, and Outlook, among others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mag9QPiM89jAZvbT" /></figure><p>Also, third-party official providers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E6Gzs1shh62pIFPY" /></figure><p>But, we all know the real fun is in adding custom MCP servers; that’s the freedom. OpenAI allows adding them, just click on +server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v-TBD9OhCp2NiabZ" /></figure><p>You can add servers with different authentication methods, No Auth, Access token/API Key and Custom headers.</p><p>For this blog post, we will use Rube MCP. This is our flagship MCP, which dynamically connects to over 500 applications, including HubSpot, Jira, and YouTube, among others.</p><p>For adding Rube MCP to the agent node:</p><ul><li>Select MCP Servers</li><li>Click + Servers</li><li>In the URL, put: <a href="https://rube.app/mcp">https://rube.app/mcp</a> (see above)</li><li>In Name put rube_mcp</li><li>Authentication: API Key → Get it from:<br>- Go to the <a href="https://rube.app/">Rube app</a>,<br>- Select Install Rube<br>- Navigate to N8N &amp; Others Tab<br>-Generate Token<br>- Copy and paste the token under API Key/Auth token box</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K3uLkgUTC2cGmM3V" /></figure><ul><li>Save</li></ul><p>Sample output you see after this step</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/0*NfSTRSAaicWwW04Q" /></figure><p>Apart from this, there are other fields within the OpenAI agent builder agent node as well. You can learn more at the OpenAI agent builder node <a href="https://platform.openai.com/docs/guides/node-reference#agent">docs</a>.</p><p>Finally, the only thing left is to define the Fail Path, so let’s set that.</p><h3>Ending Chat Session with End Node</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>Remember the failure path in the guardrail node, connect it with the End Node by selecting it from the sidebar.</p><p>The end node takes input_as_text and returns a JSON.</p><p>No, you don’t need to write it yourself; use OpenAI Agent Builder’s native JSON Schema Generator and prompt it with your needs in natural language.</p><h3>Testing Time</h3><p>For testing, head to the Preview at the top, and a chat window opens. Enter your query and see the responses along with intermediate querying and reasoning steps.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8HDZ__k4-Bc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8HDZ__k4-Bc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8HDZ__k4-Bc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/70ed1cdd2a8ecf7a7db4ba5eb87d0a4e/href">https://medium.com/media/70ed1cdd2a8ecf7a7db4ba5eb87d0a4e/href</a></iframe><p>Amazing, we built our first multilingual YouTube Q/A agent that:</p><ul><li>has a personality,</li><li>filter’s hate speech input output,</li><li>response based on only vector store searches, and in a friendly manner</li><li>handles jailbreak</li><li>takes multilingual input and responds only in English.</li></ul><p>And all this took like 5 minutes and four nodes — much faster prototyping than N8N.</p><h3>From Builder to Production</h3><p>Once you are satisfied with your agent’s performance, you have two primary options for deployment, accessible via the <strong>Code</strong> button:</p><ol><li><strong>ChatKit:</strong> The simplest method. Publish your workflow to get a workflow ID, which you can pass directly into the ChatKit component to embed the agent experience in your application.</li><li><strong>Agents SDK (Advanced):</strong> For maximum customization, you can export the entire workflow as Python or TypeScript code. This allows you to run the agent on your own infrastructure and integrate it more deeply into your existing systems.</li></ol><h3>Conclusion</h3><p>The OpenAI Agent Builder fundamentally changes the landscape of AI development by abstracting away complex code and orchestration. As demonstrated, it is possible to prototype and build a sophisticated, production-ready agent with specialized tools, conditional logic, and rich user interfaces in a fraction of the time it would traditionally take.</p><p>The key to mastering the builder lies in understanding the logic of the workflow and how data flows between each distinct node. By experimenting with the available nodes — from <strong>Guardrails</strong> for safety to <strong>File Search</strong> for RAG — you can unlock powerful new possibilities for automating complex tasks. Now is the time to start building.</p><p><strong>Reference</strong><br><a href="https://www.youtube.com/watch?v=44eFf-tRiSg">OpenAI Intro Video </a><br><a href="https://openai.com/index/introducing-agentkit/">OpenAI</a><br><a href="https://composio.dev/blog/openai-agent-builder-step-by-step-guide-to-building-ai-agents-with-mcp">Composio Blogs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=581bcd742226" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-and-beyond/openai-agent-builder-a-complete-walkthrough-to-building-your-first-ai-agent-581bcd742226">OpenAI Agent Builder: A Complete Walkthrough to Building Your First AI Agent</a> was originally published in <a href="https://medium.com/data-and-beyond">Data And Beyond</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build Reasoning Model ?]]></title>
            <link>https://medium.com/data-and-beyond/how-to-build-reasoning-model-d7a3b8f4ee4c?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7a3b8f4ee4c</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[llm-reasoning]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 09:51:13 GMT</pubDate>
            <atom:updated>2025-10-07T17:39:35.865Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to build Reasoning Model ?</h3><p>Before go into depth of building Reasoning Model we will understand <strong>What Does “Reasoning” Mean for Large Language Models?</strong></p><p>When we talk about a Large Language Model (LLM) like a chatgpt, deepseek, claudeAI , the word <strong>“reasoning” </strong>doesn’t mean the AI is thinking like human. Instead , it refers to its ability to perform <strong>multi-step, logical, and structured problem -solving </strong>to arrive at a correct conclusion.</p><p>Essentially, for LLMs, reasoning is the leap from being a brilliant <strong>pattern-matcher</strong> to becoming a functional <strong>problem-solver</strong>.</p><ol><li><strong>Beyond Pattern-Matching: The LLM Core<br></strong>To truly understand LLM reasoning, you first need to understand the fundamental mechanics of an LLM.<br>At their core , LLMs are trained to be <strong>next word predictors. </strong>They analysed massive amounts of text data to predict the next word or token in a sequence. And this mechanism is what allow them to generate coherent sentences, write code, or summerize an article.<br><strong>The Problem:</strong> This “System 1” or <strong>fast, intuitive</strong> approach is perfect for generating fluid text but can be prone to errors (hallucinations) when faced with complex, multi-step tasks. Asking a standard LLM, “If I have 5 apples, eat 2, and give half the rest to my friend, how many do I have left?” often forces it to guess the final answer based purely on the patterns of similar math problems it’s seen.</li><li><strong>The Shift to “System 2” Reasoning<br></strong>Reasoning models attempt to simulate human “System 2” or<strong> slow, deliberate, and logical thinking. </strong>They transform the task from a single-step prediction to a <strong>chain of sequential steps</strong>, a process often referred to as a <a href="https://www.promptingguide.ai/techniques/cot"><strong>Chain-of-Thought (CoT)</strong>.</a></li></ol><blockquote>In this context, <strong>“reasoning”</strong> means the model is instructed, either through prompting or fine-tuning, to:</blockquote><ul><li><strong>Decompose the Problem:</strong> Break a complex query into smaller, manageable sub-problems.</li><li><strong>Generate Intermediate Steps:</strong> Articulate the steps required to solve each sub-problem in a logical, sequential trace.</li><li><strong>Self-Correction (Implicitly):</strong> Because each step is generated sequentially, the context for the next step includes the correct output of the previous one, allowing the model to build on its own work accurately.</li><li><strong>Produce the Final Answer:</strong> Output the final, verifiable solution only after the logical sequence is complete.</li></ul><h3>Analogy: Showing Your Work</h3><p>Think back to school when your math teacher insisted you <strong>show your work</strong>. You didn’t just write the answer; you wrote:</p><ul><li><strong>Step 1:</strong> 5−2=3 (The remaining apples)</li><li><strong>Step 2:</strong> Friend gets 3/2=1.5</li><li><strong>Step 3:</strong> 3−1.5=1.5 (My final apples)</li><li><strong>Final Answer:</strong> I have 1.5 apples left.</li></ul><p>This step-by-step trace <em>is</em> what LLM reasoning is. The act of “verbalizing” the thought process dramatically improves the model’s accuracy on tasks that require <strong>logic, mathematics, coding, and multi-step planning.</strong></p><h3>Now We’ll understand how to train our own reasoning model like DeepSeek-R1 ?</h3><p>To do this, we’ll use:</p><ul><li>UnslothAI for efficient fine-tuning.</li><li>Llama 3.1–8B as the LLM to add reasoning capabilities to.</li></ul><h4>1) Load the model</h4><p>We start by loading the Llama 3.1–8B model and the tokenizer using Unsloth.</p><pre># pip install unsloth vllm<br><br>from unsloth import FastLanguageModel<br>import torch<br><br>MODEL = &quot;meta-llama/meta-Llama-3.1-8B-Instruct&quot;<br><br>model, tokenizer = FastLanguageModel.from_pretrained(<br>    model_name = MODEL,<br>    max_seq_length = 512,<br>    load_in_4bit = True,<br>    fast_inference = True,<br>    max_lora_rank = 32,<br>)</pre><p>You can use any other open-weight LLM here.</p><h4>2) Define LoRA config</h4><p>We must use efficient techniques like <a href="https://arxiv.org/abs/2106.09685">LoRA</a> to avoid fine-tuning the entire model weights.</p><pre>model = FastLanguageModel.get_peft_model(<br>    model,<br>    r = 16,<br>    target_modules = [&quot;q_proj&quot;, &quot;k_proj&quot;, &quot;v_proj&quot;, &quot;o_proj&quot;],<br>    use_gradient_checkpointing = &quot;unsloth&quot;,<br>    lora_alpha = 16,<br>)<br></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_M2R3aGByMb0yNbgGYz6nw.png" /></figure><p>In this code, we use Unsloth’s PEFT by specifying:</p><ul><li>The model</li><li>LoRA low-rank (r)</li><li>Modules for fine-tuning</li><li>and a few more parameters.</li></ul><h4>3) Create the dataset</h4><p>We load GSM8K (a math word problem dataset) and format prompts for reasoning.</p><p>The heart of this process is the <strong>GSM8K</strong> dataset — a collection of math word problems. This dataset <em>forces</em> the model to practice multi-step reasoning, making it ideal. Crucially, the <strong>SYSTEM_PROMPT</strong> acts as our core instruction, compelling the model to structure its entire output into <strong>&lt;reasoning&gt;...&lt;/reasoning&gt;</strong> and <strong>&lt;answer&gt;...&lt;/answer&gt;</strong> tags. This enforced structure is what we will reward in the next step.</p><p><strong>Dataset Loading and Preparation:</strong></p><pre>from datasets import load_dataset<br><br># Load and prep dataset<br>SYSTEM_PROMPT = &quot;&quot;&quot;<br>Respond in the following format:<br>&lt;reasoning&gt;<br>...<br>&lt;reasoning&gt;<br>&lt;answer&gt;<br>...<br>&lt;/answer&gt;<br>&quot;&quot;&quot;</pre><p><strong>Dataset Creation Function:</strong></p><pre>def create_dataset(split = &quot;train&quot;):<br>    data = load_dataset(&#39;openai/gsm8k&#39;, &#39;main&#39;)[split]<br>    data = data.map(lambda x: {<br>        &#39;prompt&#39;: [<br>            {&#39;role&#39;: &#39;system&#39;, &#39;content&#39;: SYSTEM_PROMPT},<br>            {&#39;role&#39;: &#39;user&#39;, &#39;content&#39;: x[&#39;question&#39;]}<br>        ],<br>        &#39;answer&#39;: extract_hash_answer(x[&#39;answer&#39;])<br>    })<br>    return data<br><br>dataset = create_dataset()</pre><p>Each sample includes:</p><ul><li>A system prompt enforcing structured reasoning</li><li>A question from the dataset</li><li>The answer in the required format</li></ul><h4>4) Define reward functions</h4><p>The reward functions are the ‘coach’ that tells the LLM whether its ‘thoughts’ (its reasoning trace) are good or bad. Since we’re using Reinforcement Learning (RL), the model learns by getting a ‘score’ for every output it generates. We define five different rewards to enforce both <strong>correctness</strong> and <strong>structure</strong>:”</p><ul><li><strong>correctness_reward_func:</strong> The highest-priority reward. It gives a big reward (2.0) only if the final answer matches the ground truth.</li><li><strong>strict_format_reward_func &amp; </strong><strong>soft_format_reward_func:</strong> These ensure the output strictly follows the required XML tag format, reinforcing the Chain-of-Thought structure.</li><li><strong>int_reward_func &amp; </strong><strong>xmlcount_reward_func:</strong> Smaller, supportive rewards that penalize small deviations and encourage clean, structured XML generation</li></ul><p>To guide fine-tuning, we define reward functions for:</p><pre>def correctness_reward_func(prompts, completions, answer):<br>    responses = [completion[0][&#39;content&#39;] for completion in completions]<br>    q = prompts[0][-1][&#39;content&#39;]<br>    extracted_responses = [extract_xml_answer(r) for r in responses]<br>    return [2.0 if r == a else 0.0 for r, a in zip(extracted_responses, answer)]<br><br>def int_reward_func(completions):<br>    responses = [completion[0][&#39;content&#39;] for completion in completions]<br>    extracted_responses = [extract_xml_answer(r) for r in responses]<br>    return [0.5 if r.isdigit() else 0.0 for r in extracted_responses]<br><br>def strict_format_reward_func(completions):<br>    pattern = r&quot;&lt;reasoning&gt;\n.*?\n&lt;/reasoning&gt;\n&lt;answer&gt;\n.*?\n&lt;/answer&gt;\n$&quot;<br>    responses = [completion[0][&quot;content&quot;] for completion in completions]<br>    matches = [re.match(pattern, r) for r in responses]<br>    return [0.5 if match else 0.0 for match in matches]<br><br>def soft_format_reward_func(completions):<br>    pattern = r&quot;&lt;reasoning&gt;.*?&lt;/reasoning&gt;\s*&lt;answer&gt;.*?&lt;/answer&gt;&quot;<br>    responses = [completion[0][&quot;content&quot;] for completion in completions]<br>    matches = [re.match(pattern, r) for r in responses]<br>    return [0.5 if match else 0.0 for match in matches]<br><br>def count_xml(text):<br>    count = 0.0<br>    if text.count(&quot;&lt;reasoning&gt;\n&quot;) == 1:<br>        count += 0.125<br>    if text.count(&quot;\n&lt;/reasoning&gt;\n&quot;) == 1:<br>        count += 0.125<br>    if text.count(&quot;\n&lt;answer&gt;\n&quot;) == 1:<br>        count += 0.125<br>    count += len(text.split(&quot;\n&lt;/answer&gt;\n&quot;)[:-1])*0.001<br>    if text.count(&quot;\n&lt;/answer&gt;&quot;) == 1:<br>        count += 0.125<br>    count += (len(text.split(&quot;\n&lt;/answer&gt;&quot;)[-1]) - 1)*0.001<br>    return count<br><br>def xmlcount_reward_func(completions):<br>    contents = [completion[0][&quot;content&quot;] for completion in completions]<br>    return [count_xml(c) for c in contents]</pre><ul><li>Correctness of answers</li><li>Integer formatting</li><li>Strict/soft format adherence</li><li>XML structure compliance</li></ul><p>These help reinforce structured reasoning!</p><h4>5) Use <a href="https://aipapersacademy.com/deepseekmath-grpo/">GRPO</a></h4><p>We employ GRPO, an RL method, to enhance reasoning. GRPO improves model performance without the need for a separate value function used in PPO.</p><blockquote><em>If you don’t understand GRPO or PPO, don’t worry. We shall cover them soon. For now, just understand that these are reinforcement learning algorithms used to optimize decision-making policies (LLMs, in this case).</em></blockquote><p><strong>GRPO Config:</strong></p><pre>from trl import GRPOConfig<br><br>training_args = GRPOConfig(<br>    use_vllm = True,<br>    learning_rate = 5e-6,<br>    weight_decay = 0.1,<br>    warmup_ratio = 0.1,<br>    lr_scheduler_type = &quot;cosine&quot;,<br>    optim = &quot;paged_adamw_8bit&quot;,<br>    gradient_accumulation_steps = 1,<br>    num_generations = 6,<br>    max_completion_length = 200,<br>    max_steps = 250,<br>)</pre><p><strong>GRPO Trainer:</strong></p><pre>from trl import GRPOTrainer<br><br>trainer = GRPOTrainer(<br>    model = model,<br>    processing_class = tokenizer,<br>    reward_funcs = [<br>        xmlcount_reward_func,<br>        soft_format_reward_func,<br>        strict_format_reward_func,<br>        int_reward_func,<br>        correctness_reward_func,<br>    ],<br>    args = training_args,<br>    train_dataset = dataset,<br>)<br><br>trainer.train()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*xmyITBFci4Ga_HKw0TAnYA.png" /><figcaption><strong>Training Output Table</strong></figcaption></figure><p>The setup includes:</p><ul><li>Training config (LR, optimizer, steps)</li><li>Reward functions</li><li>Trainer execution</li></ul><p>Done!</p><h4>Comparison</h4><p>Before fine-tuning, Llama 3 struggles with numerical reasoning and provides incorrect answers.</p><p>After applying GRPO, the model not only gives the correct answer but also explains its reasoning.</p><p>Llama 3 prompting (without reasoning):</p><pre>query = &quot;which is bigger 9.11 or 9.9?&quot;<br><br>text = tokenizer.apply_chat_template([<br>    {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: query},<br>], tokenize = False, add_generation_prompt = True)<br><br>output = model.fast_generate(text,<br>                            lora_request = None<br>                            )[0].outputs[0].text<br><br>print(output)<br></pre><p><strong>Output:</strong></p><pre>9.11 is bigger than 9.9.    #incorrect answer</pre><p><strong>Llama 3 (with reasoning) prompting:</strong></p><pre>query = &quot;which is bigger 9.11 or 9.9?&quot;<br><br>text = tokenizer.apply_chat_template([<br>    {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: SYSTEM_PROMPT},<br>    {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: query},<br>], tokenize = False, add_generation_prompt = True)<br><br>output = model.fast_generate(text,<br>                            lora_request = model.load_lora(&quot;grpo_saved_lora&quot;),<br>                            )[0].outputs[0].text<br><br>print(output)</pre><p><strong>Output:</strong></p><pre>&lt;comparing two decimal numbers&gt;<br>Since both numbers have the same integer part (9), we need to compare their fractional parts (0.11 and 0.9).<br>0.9 is greater than 0.11 because 9 is greater than 11.<br>&lt;/comparing two decimal numbers&gt;<br>&lt;answer&gt;<br>9.9                                                        #Correct response<br>&lt;/answer&gt;</pre><p>The comparison clearly shows the power of Reinforcement Learning for Reasoning. Before GRPO, the model was relying on mere next-token prediction, leading to an obvious error (9.11 is bigger than 9.9).</p><p>After training, the model is now forced to generate a structured, logical analysis its <strong>Chain-of-Thought </strong>before committing to the final answer. This transition from a single, flawed guess to a structured, correct solution is the essence of building a Reasoning Model.</p><p><strong>What made this entire process possible?</strong> The <strong>GRPO algorithm</strong> and its use of these reward signals. In the next section, we’ll dive deep into <strong>PPO and GRPO</strong> to understand the RL mechanics that power this entire transformation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7a3b8f4ee4c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-and-beyond/how-to-build-reasoning-model-d7a3b8f4ee4c">How to build Reasoning Model ?</a> was originally published in <a href="https://medium.com/data-and-beyond">Data And Beyond</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generate Realistic AI Video with Sora 2 — Prompts, Tips & Examples]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-and-beyond/generate-realistic-ai-video-with-sora-2-prompts-tips-examples-cca9ebb4dd37?source=rss-4d343a4fdad9------2"><img src="https://cdn-images-1.medium.com/max/1024/1*O_JByPWZd7VtMN9AQ2x_Sg.png" width="1024"></a></p><p class="medium-feed-snippet">What it does, why it matters, and how anyone can start creating with it</p><p class="medium-feed-link"><a href="https://medium.com/data-and-beyond/generate-realistic-ai-video-with-sora-2-prompts-tips-examples-cca9ebb4dd37?source=rss-4d343a4fdad9------2">Continue reading on Data And Beyond »</a></p></div>]]></description>
            <link>https://medium.com/data-and-beyond/generate-realistic-ai-video-with-sora-2-prompts-tips-examples-cca9ebb4dd37?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cca9ebb4dd37</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[openai-sora]]></category>
            <category><![CDATA[sora]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Wed, 01 Oct 2025 18:27:55 GMT</pubDate>
            <atom:updated>2025-10-06T01:03:26.990Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Qwen3-Max: Alibaba’s Most Powerful AI Model Yet with over 1 Trillion Parameters]]></title>
            <link>https://medium.com/@sharadsisodiya9193/qwen3-max-alibabas-most-powerful-ai-model-yet-with-over-1-trillion-parameters-9ac1c63c6ee2?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ac1c63c6ee2</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[qwen]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 19:04:06 GMT</pubDate>
            <atom:updated>2025-09-25T19:04:06.395Z</atom:updated>
            <content:encoded><![CDATA[<p>Discover Qwen3-Max , Alibaba’s most powerful AI model yet. Learn about its trillion-parameter scale, breakthrough benchmarks, and how to access it today.</p><h3>Introduction</h3><p>Following the release of the Qwen3–2507 series, Alibaba introduces <strong>Qwen3-Max, </strong>its largest and most capable large language model to date. The preview version of <strong>Qwen3-Max-Instruct</strong> currently ranks third on the Text Arena leaderboard, surpassing GPT-5-Chat. The official release pushes performance even further in coding, reasoning, and agent capabilities, setting new state-of-the-art results across benchmarks in knowledge, reasoning, coding, instruction following, human preference alignment, agent tasks, and multilingual understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kc_6YZhAQoMiAMIKnZaRvA.png" /><figcaption>Generated by Nano Banana</figcaption></figure><h3>The Max Trio</h3><h4>The Foundation: Qwen3-Max-Base</h4><p>The cornerstone of this release is Qwen3-Max-Base, an enormous model exceeding one trillion parameters, developed using an extraordinary 36 trillion token dataset. The model maintains the Qwen3 architectural approach while incorporating a groundbreaking global-batch load balancing loss mechanism that bolsters both stability and performance.</p><p>The Mixture-of-Experts architecture proved instrumental in achieving exceptional training stability. The pretraining loss curve remained consistently smooth without disruptions or setbacks, eliminating any need for emergency measures like data reshuffling or training restarts.</p><p>Technical efficiency has seen dramatic improvements. Through PAI-FlashMoE’s multi-tier pipeline parallelism, the model delivers 30% better Model FLOPs Utilization compared to its predecessor, Qwen2.5-Max-Base. The innovative ChunkFlow approach facilitates training on million-token contexts while achieving triple the throughput of conventional context parallelism techniques. Additional optimizations including SanityCheck, EasyCheckpoint, and refined scheduling pipelines have reduced hardware-related downtime to merely 20% of previous levels experienced with Qwen2.5-Max.</p><h4>The Instruction Expert: Qwen3-Max-Instruct</h4><p>Qwen3-Max-Instruct represents the refined, instruction-optimized variant tailored for coding, instruction execution, and agent applications. While the preview achieved global recognition with its top three ranking on LMArena’s text leaderboard, the production release elevates performance substantially.</p><p>Key achievements include:</p><ul><li><strong>69.6 on SWE-Bench Verified:</strong> Establishing itself among elite models in tackling practical coding problems</li><li><strong>74.8 on Tau2-Bench:</strong> Demonstrating superior agent tool-utilization capabilities, exceeding prominent models including Claude Opus 3 and DeepSeek V2.5</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*K9e679opLhFMnJPrEhZpZg.png" /><figcaption>Qwen2-Max-Instruct Benchmark, Source: <a href="https://qwen.ai/blog?id=87dc93fc8a590dc718c77e1f6e84c07b474f6c5a&amp;from=home.latest-research-list">https://qwen.ai/blog?id=87dc93fc8a590dc718c77e1f6e84c07b474f6c5a&amp;from=home.latest-research-list</a></figcaption></figure><h4>The Reasoning Specialist: Qwen3-Max-Thinking</h4><p>The lineup concludes with Qwen3-Max-Thinking, a specialized model engineered for advanced analytical and mathematical challenges. Through the integration of code interpretation capabilities and parallel test-time computation methods, this variant achieves remarkable reasoning abilities.</p><p>Preliminary assessments reveal perfect 100-point performances on challenging evaluations including AIME 25 and HMMT 25, highlighting its capacity to establish new benchmarks in LLM reasoning capabilities. While development continues, Qwen3-Max-Thinking’s early achievements position it as one of the Qwen family’s most eagerly awaited models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*k2CspfzUABmduS-zlMkvzA.png" /><figcaption>Qwen3-Max-Thinking Benchmarks, Source: <a href="https://qwen.ai/blog?id=87dc93fc8a590dc718c77e1f6e84c07b474f6c5a&amp;from=home.latest-research-list">https://qwen.ai/blog?id=87dc93fc8a590dc718c77e1f6e84c07b474f6c5a&amp;from=home.latest-research-list</a></figcaption></figure><h3>How to Access Qwen3-Max:</h3><p>Qwen3-Max is available through multiple channels, each offering distinct advantages:</p><h4><strong>Alibaba Cloud Model Studio</strong></h4><ul><li>Full API access with OpenAI-compatible endpoints</li><li>Context caching support for optimized repeated queries</li><li>Enterprise-grade SLAs and support</li></ul><h4><strong>Qwen Chat Platform</strong></h4><ul><li>Direct web interface for immediate testing</li><li>iOS and Android apps with Qwen3-Max as default model</li><li>Free tier for evaluation purposes</li></ul><h3><strong>Conclusion</strong></h3><p>The complete Qwen3-Max series establishes new performance standards across knowledge assessment, logical reasoning, programming, instruction adherence, human preference optimization, agent operations, and cross-linguistic comprehension, marking a significant advancement in large-scale language model development.</p><p>References:</p><ul><li><a href="https://qwen.ai/blog?id=87dc93fc8a590dc718c77e1f6e84c07b474f6c5a&amp;from=home.latest-research-list">Official Qwen3-Max Blog</a></li><li><a href="https://account.alibabacloud.com/register/intl_register.htm?spm=a2ty_o06.30285417.0.0.92bdc921O2cUyE">Alibaba Cloud Model Studio</a></li><li><a href="https://chat.qwen.ai/">QwenChat</a></li><li><a href="https://lmarena.ai/leaderboard">LMArena Leaderboard</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ac1c63c6ee2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Qwen3-Omni: Alibaba’s Groundbreaking Multimodal Foundation Model]]></title>
            <link>https://medium.com/data-and-beyond/qwen3-omni-alibabas-groundbreaking-multimodal-foundation-model-890a120069ed?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/890a120069ed</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[qwen3-omni]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 16:26:20 GMT</pubDate>
            <atom:updated>2025-09-24T16:08:06.774Z</atom:updated>
            <content:encoded><![CDATA[<p>Discover the Qwen3-Omni release, Alibaba’s new Qwen Omni multimodal foundation model for text, image, audio, and video, offering real-time streaming and Apache 2.0 open-source access</p><h3><strong>Introduction</strong></h3><p>Alibaba Cloud’s Qwen team has done it again. Just five months after unveiling the Qwen3 family, the <strong>Qwen3-Omni</strong> release arrives as the first natively end-to-end <em>omni-modal</em> LLM capable of understanding and generating text, images, audio and video in a single architecture. By pairing a <strong>Mixture-of-Experts</strong> (MoE) <strong>Thinker–Talker</strong> design with ultra-low-latency streaming, Qwen3-Omni positions itself as the most versatile multimodal foundation model in open source today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wYgEnGAgN8X5NGTX_QEGYg.jpeg" /><figcaption>Gemerated by Nano Banana</figcaption></figure><h3>What’s new <strong>in </strong>Qwen3-Omni?</h3><ul><li>True <em>native</em> multimodality (no external encoders or adapters)</li><li>Sub-500 ms end-to-end response for audio-video chat</li><li>Support for 119 text languages, 19 speech input languages &amp; 10 speech output voices</li><li>Fully open weights under the Apache 2.0</li></ul><h3>Key Features</h3><h4>Multimodal Capabilities</h4><p>Qwen3-Omni is truly <strong>omni-modal</strong>, supporting:</p><ul><li><strong>Text</strong>: Natural language understanding and generation.</li><li><strong>Image</strong>: Captioning, recognition, and visual question answering.</li><li><strong>Audio</strong>: Speech recognition, transcription, and audio captioning.</li><li><strong>Video</strong>: Frame analysis, video summarization, and multimodal reasoning.</li></ul><h4>Thinker–Talker Architecture</h4><p>It is designed to process diverse inputs including text, images, audio, and video, while delivering real-time streaming responses in both text and natural speech.</p><p>Qwen3-Omni splits heavy reasoning (“<strong>Thinker</strong>”) from fluent speech generation (“<strong>Talker</strong>”). The result: <em>high-accuracy chain-of-thought reasoning </em>when needed and blazing-fast direct decoding when speed matters.</p><ul><li><strong>Thinker</strong> modules focus on reasoning and understanding.</li><li><strong>Talker</strong> modules focus on generation, including speech and text.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xM7XAeZkWOwsa-8XpnbdNw.png" /><figcaption>Diagram illustrating Qwen3-Omni Thinker–Talker architecture for multimodal reasoning and speech output. Source: <a href="https://qwen.ai/blog?id=fdfbaf2907a36b7659a470c77fb135e381302028&amp;from=research.research-list">https://qwen.ai/blog?id=fdfbaf2907a36b7659a470c77fb135e381302028&amp;from=research.research-list</a></figcaption></figure><h4>Extensive Multilingual Support</h4><p>The model’s language capabilities are truly global:</p><ul><li>The model supports 119 languages in text, 19 for speech input, and 10 for speech output</li><li><strong>Speech input:</strong> 19 languages including English, Chinese, Korean, Japanese, German, Russian, Italian, French, Spanish, Portuguese, Malay, Dutch, Indonesian, Turkish, Vietnamese, Cantonese, Arabic, Urdu</li><li><strong>Speech Output:</strong> 10 languages including English, Chinese, French, German, Russian, Italian, Spanish, Portuguese, Japanese, Korean.</li></ul><h4>Variants</h4><p>Qwen3-Omni comes in multiple variants:</p><ul><li><strong>Instruct</strong>: Full model optimized for dialogue and complex tasks.</li><li><strong>Thinking</strong>: Reasoning-focused, text-only output.</li><li><strong>Captioner</strong>: Specialized in high-fidelity audio and video captioning.</li></ul><h4>Ultra-Low Latency Streaming Performance</h4><p>Qwen3-Omni employs a clever multi-codebook audio generator lets it start streaming speech in as little as ~234 milliseconds. This means Qwen3-Omni can hold fluid, turn-taking voice conversations in real time.</p><ul><li>Natural, human-like conversations without awkward delays</li><li>Real-time voice interactions that feel instantaneous</li><li>Seamless audiovisual processing</li><li>Immediate response generation for interactive applications</li></ul><h3>Performance &amp; Benchmarks</h3><h4>Text, Vision, Audio, Video — State Of The Art</h4><p>Qwen3-Omni delivers <strong>state-of-the-art results</strong> on a wide range of tasks:</p><ul><li><strong>Audio/Video</strong>: Top-ranked on 32 of 36 audio/video benchmarks, overall SOTA on 22 tasks.</li><li><strong>Multimodal Reasoning</strong>: Seamless handling of combined input types with no drop in performance.</li><li><strong>Latency</strong>: Real-time response capabilities enable interactive applications.</li><li><strong>Competitor Comparison</strong>: Matches or exceeds performance of proprietary models like Gemini 2.5 Pro, GPT-4V, and Claude 2.1 in speech and audio benchmarks</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a388b9187bfb8a299bb054450b9c3c0/href">https://medium.com/media/3a388b9187bfb8a299bb054450b9c3c0/href</a></iframe><h3>Pricing, Licensing &amp; Availability</h3><p>Qwen3-Omni is <strong>fully open-source under Apache 2.0</strong>, meaning developers and enterprises can:</p><ul><li>Access the model via <strong>GitHub</strong>, <strong>Hugging Face</strong>, and <strong>ModelScope</strong>.</li><li>Free to modify, redistribute, and integrate without licensing fees.</li><li>Deploy models on-premises or in cloud environments, maintaining data privacy and control.</li></ul><p>The open-source approach accelerates adoption and experimentation, making Qwen3-Omni a practical choice for real-world AI deployment.</p><h3>Comparison with Previous Models / Competitors</h3><h4>vs. Qwen2.5</h4><p>Compared to Qwen2.5-Omni, the new model offers</p><ul><li>+14% accuracy on OmniBench multi-modal reasoning</li><li>−38% decoding latency in streaming ASR mode</li><li>+6 new speech output languages</li></ul><p>Against leading closed models, Qwen3-Omni narrows or beats the gap in audio understanding, while trailing only marginally (~1–2 pts) on pure text reasoning.</p><h4>vs. Proprietary Competitors</h4><p>When compared to closed-source alternatives:</p><p><strong>GPT-4o:</strong></p><ul><li><strong>Reasoning:</strong> Qwen3-Omni’s AIME25 score of 65.0 vs GPT-4o’s 26.7 (2.4x better)</li><li><strong>Writing:</strong> WritingBench 82.6 vs 75.5</li><li><strong>Speech Recognition:</strong> Wenetspeech WER 4.69 vs 15.30 (3x better)</li></ul><p>Qwen3-Omni outperforms closed-source models GPT-4o and Gemini 2.5 Pro on most audio and audio-visual benchmarks</p><p><strong>Gemini 2.5 Pro:</strong></p><ul><li>ASR, audio understanding, and voice conversation performance is comparable to Gemini 2.5 Pro</li><li>Video understanding: MLVU 75.2 vs 71.0</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*56Ut8tQTQsBSfM-c" /><figcaption>Qwen3-Omni Benchmarks Source: <a href="https://qwen.ai/blog?id=fdfbaf2907a36b7659a470c77fb135e381302028&amp;from=research.research-list">https://qwen.ai/blog?id=fdfbaf2907a36b7659a470c77fb135e381302028&amp;from=research.research-list</a></figcaption></figure><h3>Conclusion</h3><p>With its Apache 2.0 licensed AI model weights, bleeding-edge real-time streaming performance and unified multimodal reasoning, the Qwen3-Omni release sets a new benchmark for open LLMs. Whether you’re a developer building the next voice assistant, an AI researcher probing cross-modal reasoning, or a CTO choosing an on-prem solution, Qwen3-Omni deserves a spot in your toolkit.</p><h3>References:</h3><ul><li>Visit the <a href="https://github.com/QwenLM/Qwen3-Omni">official GitHub repository</a> to access documentation and code</li><li>Try the model instantly at <a href="https://chat.qwen.ai/">chat.qwen.ai</a></li><li>Download model weights from <a href="https://huggingface.co/Qwen/Qwen3-Omni-30B-A3B-Instruct">Hugging Face</a></li><li>Explore the <a href="https://arxiv.org/html/2509.17765v1">technical report</a> for detailed architecture insights</li><li>Read the official <a href="https://qwen.ai/blog?id=65f766fc2dcba7905c1cb69cc4cab90e94126bf4&amp;from=research.latest-advancements-list">blog </a>from Qwen</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=890a120069ed" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-and-beyond/qwen3-omni-alibabas-groundbreaking-multimodal-foundation-model-890a120069ed">Qwen3-Omni: Alibaba’s Groundbreaking Multimodal Foundation Model</a> was originally published in <a href="https://medium.com/data-and-beyond">Data And Beyond</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nano Banana -Gemini AI: Top Prompts and How to Use Them Creatively]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@sharadsisodiya9193/nano-banana-gemini-ai-top-prompts-and-how-to-use-them-creatively-4d324cdc3312?source=rss-4d343a4fdad9------2"><img src="https://cdn-images-1.medium.com/max/1436/1*f91ZG3Hvv0NzRtLNEZtCeA.png" width="1436"></a></p><p class="medium-feed-snippet">With nano banana, even your imagination can get a glow-up&#x200A;&#x2014;&#x200A;realistic editing, consistent characters, multi-image mixes&#x200A;&#x2014;&#x200A;Google&#x2019;s latest&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@sharadsisodiya9193/nano-banana-gemini-ai-top-prompts-and-how-to-use-them-creatively-4d324cdc3312?source=rss-4d343a4fdad9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@sharadsisodiya9193/nano-banana-gemini-ai-top-prompts-and-how-to-use-them-creatively-4d324cdc3312?source=rss-4d343a4fdad9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d324cdc3312</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[ai-image-generator]]></category>
            <category><![CDATA[google-nano-banana]]></category>
            <category><![CDATA[ai-prompts]]></category>
            <category><![CDATA[gemini]]></category>
            <dc:creator><![CDATA[Sharadsisodiya]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 05:58:28 GMT</pubDate>
            <atom:updated>2025-09-21T06:14:57.454Z</atom:updated>
        </item>
    </channel>
</rss>