<?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"><channel><title><![CDATA[Infra Intelligence]]></title><description><![CDATA[Practical deep-dives into AWS, Agentic AI, and Cloud-Native architecture — written by a JPMorganChase SVP with 12+ years in Cloud infrastructure. From Amazon Bedrock AgentCore to 
SageMaker MLOps, this blog bridges enterprise-scale cloud engineering with the latest in AI/ML innovation.]]></description><link>https://learnwithramaaiml.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/694d279d08c32f402f3f61b5/9bc3b265-148f-4cc4-8341-97cf98d38b65.png</url><title>Infra Intelligence</title><link>https://learnwithramaaiml.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 17:35:34 GMT</lastBuildDate><atom:link href="https://learnwithramaaiml.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Amazon Bedrock AgentCore: The End of AI Agent Infrastructure Hell]]></title><description><![CDATA[AWS · AI/ML · April 2026  ·  🕒 8 min read  ·  Published Apr 3, 2026


Ask any ML engineer who has tried to take an AI agent from notebook to production, and they'll describe the same nightmare: weeks]]></description><link>https://learnwithramaaiml.hashnode.dev/amazon-bedrock-agentcore-the-end-of-ai-agent-infrastructure-hell</link><guid isPermaLink="true">https://learnwithramaaiml.hashnode.dev/amazon-bedrock-agentcore-the-end-of-ai-agent-infrastructure-hell</guid><category><![CDATA[AWS]]></category><category><![CDATA[AI]]></category><category><![CDATA[Machine Learning]]></category><category><![CDATA[Cloud]]></category><category><![CDATA[agentcore]]></category><category><![CDATA[bedrock agentcore]]></category><category><![CDATA[mlops]]></category><dc:creator><![CDATA[RAMAKRISHNAN SAKTHIVEL]]></dc:creator><pubDate>Fri, 03 Apr 2026 11:48:45 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/694d279d08c32f402f3f61b5/fb8c78d4-61a4-4b14-8daa-ebef210e9e56.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<blockquote>
<p><strong>AWS · AI/ML · April 2026</strong>  ·  🕒 8 min read  ·  Published Apr 3, 2026</p>
</blockquote>
<hr />
<p>Ask any ML engineer who has tried to take an AI agent from notebook to production, and they'll describe the same nightmare: weeks burned on session management, memory stores, authentication layers, observability pipelines, and policy enforcement — before writing a single line of actual agent logic. AWS just declared war on that problem.</p>
<p>Amazon Bedrock <strong>AgentCore</strong> — now generally available and shipping major updates at a pace that would make a startup blush — is a fully managed, modular platform that handles all the undifferentiated infrastructure required to deploy and operate AI agents at enterprise scale. No infrastructure management. Framework-agnostic. Pay only for what you use.</p>
<blockquote>
<p><em>"Previously, deploying agents took weeks. Now, with AgentCore we can create and deploy an agent or MCP server within minutes."</em>
— S&amp;P Global Market Intelligence</p>
</blockquote>
<hr />
<h2>Why This Matters Now</h2>
<p>The shift from chatbots to agents is not subtle. Agents don't just respond — they reason, plan, call tools, write code, browse the web, and take actions with real-world consequences. That power introduces a new set of production concerns that traditional cloud patterns simply don't cover:</p>
<ul>
<li>How do you isolate one user's session from another when the agent is long-running?</li>
<li>How do you give an agent persistent memory without exposing it to other users?</li>
<li>How do you enforce <em>which tools</em> an agent can call, and under what conditions?</li>
<li>How do you monitor correctness and goal-success rates — not just latency — in production?</li>
</ul>
<p>AgentCore answers every one of these, and recent weeks have seen a flurry of GA announcements that show the platform is maturing fast.</p>
<hr />
<h2>The AgentCore Architecture at a Glance</h2>
<p>Think of AgentCore as a set of composable, independently usable services that snap together around your agent code — regardless of whether that code uses LangGraph, CrewAI, LlamaIndex, Strands Agents, or anything else.</p>
<table>
<thead>
<tr>
<th>Service</th>
<th>What it does</th>
</tr>
</thead>
<tbody><tr>
<td>⚡ <strong>Runtime</strong></td>
<td>Serverless microVM per session. MCP · AG-UI · A2A. Any framework. Idle time is free.</td>
</tr>
<tr>
<td>🧠 <strong>Memory</strong></td>
<td>Session + long-term memory. Agents learn from past interactions. Streams to Kinesis.</td>
</tr>
<tr>
<td>🔌 <strong>Gateway</strong></td>
<td>Transforms Lambda, OpenAPI &amp; MCP servers into agent-ready tools. No rewrites needed.</td>
</tr>
<tr>
<td>🛡️ <strong>Policy (GA)</strong></td>
<td>Natural language → Cedar rules. Intercepts every tool call in milliseconds.</td>
</tr>
<tr>
<td>🔍 <strong>Observability</strong></td>
<td>CloudWatch dashboards. Token usage, latency, goal success rate, correctness eval.</td>
</tr>
<tr>
<td>🌐 <strong>Browser + Code</strong></td>
<td>Secure browser runtime. Sandboxed code interpreter for data analysis tasks.</td>
</tr>
</tbody></table>
<hr />
<h2>What's New: March 2026 Shipping Log</h2>
<p>The pace of AgentCore updates this month alone tells you everything about AWS's commitment to this platform.</p>
<h3>Mar 25 — Managed Session Storage (Preview)</h3>
<p>Agents can now persist their entire filesystem state across stop/resume cycles. Files, installed packages, build artifacts, git history — all automatically retained for up to 14 days. No checkpoint logic needed; your agent just picks up where it left off with the same session ID.</p>
<h3>Mar 13 — AG-UI Protocol Support</h3>
<p>AgentCore Runtime now speaks the Agent-User Interaction (AG-UI) protocol, enabling real-time streaming of reasoning steps, tool results, and UI state updates directly to frontends. The third pillar after MCP (tools) and A2A (agent-to-agent): AG-UI brings agents into the user interface layer.</p>
<h3>Mar 12 — Streaming Notifications for Long-Term Memory</h3>
<p>No more polling. Memory record creation and updates now push to Amazon Kinesis in real time, enabling downstream workflow triggers and automatic application state refresh.</p>
<h3>Mar 10 — Stateful MCP Servers</h3>
<p>AgentCore Runtime now supports elicitation (server-initiated multi-turn conversations), sampling (LLM-generated content requests from clients), and progress notifications for long-running operations. Each session runs in a dedicated microVM with a persistent <code>Mcp-Session-Id</code>.</p>
<h3>Mar 3 — Policy GA</h3>
<p>Policy in AgentCore is now generally available across 13 AWS Regions. Write a rule like <em>"Block all refunds greater than $1,000"</em> in plain English and it converts automatically to a Cedar policy that intercepts and evaluates every agent-tool request.</p>
<hr />
<h2>The Protocol Trifecta: MCP + A2A + AG-UI</h2>
<p>One of the under-appreciated aspects of AgentCore is how AWS has positioned it around emerging open protocols rather than proprietary abstractions.</p>
<table>
<thead>
<tr>
<th>Protocol</th>
<th>Role</th>
<th>Analogy</th>
</tr>
</thead>
<tbody><tr>
<td><strong>MCP</strong> (Model Context Protocol)</td>
<td>Provides agents with tools — APIs, databases, services</td>
<td>The agent's <em>hands</em></td>
</tr>
<tr>
<td><strong>A2A</strong> (Agent-to-Agent)</td>
<td>Enables agent-to-agent communication and orchestration</td>
<td>The agent's <em>colleagues</em></td>
</tr>
<tr>
<td><strong>AG-UI</strong> (Agent-User Interaction)</td>
<td>Streams agent state to user interfaces in real time</td>
<td>The agent's <em>voice</em></td>
</tr>
</tbody></table>
<p>Together, these protocols mean you can build multi-agent systems that are observable, interactive, and connected to your entire existing tool ecosystem — without locking into AWS-only abstractions.</p>
<hr />
<h2>Policy: Natural Language Governance for Agents</h2>
<p>Enterprise adoption of agentic AI has been slowed by a fundamental tension: agents need autonomy to be useful, but businesses need guardrails to be responsible. Policy in AgentCore elegantly threads this needle.</p>
<p>The key insight is that policies live <em>outside</em> your agent code. Security teams, compliance officers, and operations leads can define and update what an agent is allowed to do — without touching the agent itself, and without understanding prompt engineering. Natural language input is automatically compiled to Cedar, AWS's open-source policy language, and every agent-to-tool call is evaluated in milliseconds at the Gateway layer.</p>
<blockquote>
<p>💡 <strong>Real-world example:</strong> A policy like <em>"Only allow read operations on customer records for agents authenticated with a support role token"</em> can be authored in plain English, automatically enforced across every MCP tool call, and audited without grep-ing through agent logs. This is <strong>governance-as-infrastructure</strong>.</p>
</blockquote>
<hr />
<h2>Getting Started: Faster Than You Think</h2>
<p>AWS has made the developer experience genuinely low-friction. The <strong>AgentCore Starter Toolkit</strong> provides a CLI that can configure, containerize, and deploy an agent in a few commands:</p>
<pre><code class="language-bash">$ pip install bedrock-agentcore bedrock-agentcore-starter-toolkit
$ agentcore configure --entrypoint my_agent.py
$ agentcore deploy
# Auto-creates IAM role, ECR repo, and deploys to AgentCore Runtime
</code></pre>
<p>New AWS customers get up to <strong>$200 in Free Tier credits</strong> to start, and pricing is purely consumption-based — no pre-allocated compute, no minimum fees. If your agent is waiting on I/O, you're not being billed for CPU.</p>
<hr />
<h2>Who Should Pay Attention</h2>
<p>AgentCore isn't just for ML engineers. Its modular design means different personas get different value:</p>
<ul>
<li><strong>ML/AI Engineers</strong> — Stop rebuilding memory, session management, and tool-calling plumbing. Focus on agent quality.</li>
<li><strong>DevOps/Platform Engineers</strong> — AgentCore Runtime plugs into your existing VPC, PrivateLink, CloudFormation, and OpenTelemetry setups.</li>
<li><strong>Security &amp; Compliance Teams</strong> — Policy gives you enforcement at the infrastructure layer, not the prompt layer. Finally, real governance.</li>
<li><strong>Product &amp; Platform Leads</strong> — The AG-UI protocol means your product team can build real-time, agent-driven UIs without waiting for backend reimplementation.</li>
</ul>
<blockquote>
<p><em>"In 2026, the bottleneck in agentic AI is no longer model capability — it's the production infrastructure around the model. AgentCore is AWS's bet that they can own that layer."</em></p>
</blockquote>
<hr />
<h2>The Bottom Line</h2>
<p>Amazon Bedrock AgentCore represents a genuine architectural leap for production agentic AI. The combination of serverless isolation, persistent memory, open-protocol gateway, natural language policy enforcement, and deep observability — all independently composable, all GA or near-GA — gives teams a legitimate path from prototype to production without building a platform team first.</p>
<p>The March 2026 updates (session storage, AG-UI, stateful MCP, streaming memory, Policy GA) aren't incremental patches. They're filling the remaining gaps that enterprises have cited as blockers. If you've been waiting for AgentCore to be "enterprise-ready," the wait is over.</p>
<p>AWS Summit Bengaluru is on <strong>April 23–24, 2026</strong> — expect a deep dive on AgentCore there. <a href="https://aws.amazon.com/events/summits/bengaluru/">Register here →</a></p>
<hr />
<p><code>AWS</code> <code>Amazon Bedrock</code> <code>AgentCore</code> <code>Agentic AI</code> <code>MLOps</code> <code>MCP</code> <code>Generative AI</code> <code>Cloud</code> <code>DevOps</code></p>
<hr />
<p><em>Written by <strong>Ramakrishnan Sakthivel</strong> — SVP · Cloud Infrastructure Architect (SRE) @ JPMorganChase · 12+ years in Cloud Migration, Cloud-Native Architecture &amp; Modernization · Building AI/ML solutions for risk prediction &amp; capacity management.</em></p>
<p><em><a href="https://www.linkedin.com/in/blackhawk/">LinkedIn</a> · <a href="https://rama007.hashnode.dev">Infra Intelligence on Hashnode</a></em></p>
]]></content:encoded></item><item><title><![CDATA[Reinforcement Fine-Tuning on Amazon Bedrock: Train Smarter, Not Harder]]></title><description><![CDATA[AWS · Amazon Bedrock · April 2026  ·  🕒 7 min read


You've been fine-tuning models the hard way. Collecting thousands of labeled examples. Running expensive annotation pipelines. Managing GPU infras]]></description><link>https://learnwithramaaiml.hashnode.dev/reinforcement-fine-tuning-on-amazon-bedrock-train-smarter-not-harder</link><guid isPermaLink="true">https://learnwithramaaiml.hashnode.dev/reinforcement-fine-tuning-on-amazon-bedrock-train-smarter-not-harder</guid><category><![CDATA[AWS]]></category><category><![CDATA[Amazon Bedrock]]></category><category><![CDATA[Reinforcement Learning]]></category><category><![CDATA[fine tuning]]></category><category><![CDATA[mlops]]></category><category><![CDATA[generative ai]]></category><category><![CDATA[Machine Learning]]></category><category><![CDATA[llm]]></category><dc:creator><![CDATA[RAMAKRISHNAN SAKTHIVEL]]></dc:creator><pubDate>Fri, 03 Apr 2026 11:48:17 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/694d279d08c32f402f3f61b5/29569385-d599-42a8-98f3-d79f435da04b.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<blockquote>
<p><strong>AWS · Amazon Bedrock · April 2026</strong>  ·  🕒 7 min read</p>
</blockquote>
<hr />
<p>You've been fine-tuning models the hard way. Collecting thousands of labeled examples. Running expensive annotation pipelines. Managing GPU infrastructure for training jobs. Getting mediocre results because your dataset was never large enough.</p>
<p>Amazon Bedrock just made all of that optional.</p>
<p><strong>Reinforcement Fine-Tuning (RFT)</strong> — now generally available on Amazon Bedrock — is a fundamentally different approach to model customization. Instead of learning from fixed labeled examples, models learn from <em>feedback on their own responses</em>. The result? An average of <strong>66% accuracy gains</strong> over base models, using a fraction of the data traditional fine-tuning requires.</p>
<blockquote>
<p><em>"Instead of showing a chess player every possible move, you let them play and tell them which moves led to winning positions."</em></p>
</blockquote>
<p>That's exactly how RFT works — and AWS has made it fully managed, so you don't need to understand RL theory to use it.</p>
<hr />
<h2>What's Wrong With Traditional Fine-Tuning</h2>
<p>Traditional supervised fine-tuning (SFT) has a fundamental problem: it requires you to know the <em>exact</em> right answer before training. For every prompt, you need a perfect, labeled response. That means:</p>
<ul>
<li>Hiring human annotators — expensive and slow</li>
<li>Building data pipelines — weeks of engineering work</li>
<li>Large datasets — thousands of examples minimum</li>
<li>Static knowledge — the model only learns what you showed it</li>
</ul>
<p>For tasks like math reasoning, code generation, or complex instruction following, defining the "exact correct output" is often impossible. There are dozens of valid ways to write good code. There's no single correct way to explain a concept. SFT can't handle that nuance.</p>
<hr />
<h2>How RFT Actually Works</h2>
<p>RFT flips the training paradigm entirely.</p>
<p>Instead of learning from labeled examples, the model:</p>
<ol>
<li><strong>Generates multiple candidate responses</strong> to each prompt</li>
<li><strong>A reward function scores each response</strong> — measuring quality against your criteria</li>
<li><strong>The model updates</strong> to favor patterns that produced higher-scoring outputs</li>
<li><strong>Repeats</strong> until it consistently produces high-quality responses</li>
</ol>
<p>The magic is in the reward function. AWS supports two types:</p>
<table>
<thead>
<tr>
<th>Reward Type</th>
<th>Best For</th>
<th>How It Works</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Rule-based grader</strong></td>
<td>Code generation, math, structured outputs</td>
<td>Verifiable correctness — does the code pass tests? Is the answer right?</td>
</tr>
<tr>
<td><strong>AI-based judge</strong></td>
<td>Instruction following, creative writing, conversational quality</td>
<td>An LLM evaluates response quality against your criteria</td>
</tr>
<tr>
<td><strong>Lambda grader</strong></td>
<td>Custom business logic</td>
<td>Your own scoring function deployed as a Lambda</td>
</tr>
</tbody></table>
<p>AWS runs this using <strong>GRPO</strong> (Group Relative Policy Optimization) — a state-of-the-art RL algorithm that compares responses <em>within a group</em> to determine relative quality, making training stable and efficient.</p>
<hr />
<h2>The Numbers That Matter</h2>
<br />

<table>
<thead>
<tr>
<th>Metric</th>
<th>Result</th>
</tr>
</thead>
<tbody><tr>
<td>Average accuracy gain over base models</td>
<td><strong>66%</strong></td>
</tr>
<tr>
<td>Training data required vs SFT</td>
<td><strong>Dramatically less</strong> — start with 100–200 examples</td>
</tr>
<tr>
<td>Infrastructure to manage</td>
<td><strong>Zero</strong> — fully managed by Bedrock</td>
</tr>
<tr>
<td>Time to deploy fine-tuned model</td>
<td><strong>Single click</strong> after job completion</td>
</tr>
<tr>
<td>Data security</td>
<td><strong>Your data never leaves AWS</strong></td>
</tr>
</tbody></table>
<hr />
<h2>Supported Models</h2>
<p>At launch, RFT supported <strong>Amazon Nova 2 Lite</strong>. AWS has since expanded to open-weight models including:</p>
<ul>
<li><code>qwen.qwen3-32b</code> — Alibaba's powerful open model</li>
<li><code>openai.gpt-oss-20b</code> — GPT OSS via OpenAI-compatible APIs</li>
</ul>
<p>And coming soon: <strong>NVIDIA Nemotron models</strong> via the AWS-NVIDIA collaboration announced at GTC 2026.</p>
<hr />
<h2>Getting Started in 5 Steps</h2>
<pre><code class="language-bash"># Step 1: Prepare your training data (JSONL format)
{
  "id": "sample-001",
  "messages": [
    {"role": "system", "content": "You are a financial analyst"},
    {"role": "user", "content": "Analyze this quarterly report..."}
  ],
  "reference_answer": {
    "key_metrics": ["revenue_growth", "margin_compression"],
    "recommendation": "hold"
  }
}
</code></pre>
<pre><code class="language-python"># Step 2: Create the RFT job via boto3
import boto3
bedrock = boto3.client(service_name='bedrock')

response = bedrock.create_model_customization_job(
    jobName="my-rft-job",
    customModelName="my-custom-model",
    customizationType="REINFORCEMENT_FINE_TUNING",
    baseModelIdentifier="amazon.nova-2-lite-v1:0:256k",
    roleArn="arn:aws:iam::123456789012:role/BedrockRFTRole",
    trainingDataConfig={"s3Uri": "s3://my-bucket/training-data.jsonl"},
    outputDataConfig={"s3Uri": "s3://my-bucket/rft-output/"},
    customizationConfig={
        "rftConfig": {
            "graderConfig": {
                "lambdaGrader": {
                    "lambdaArn": "arn:aws:lambda:us-east-1:123456789:function:my-grader"
                }
            },
            "hyperParameters": {
                "batchSize": 64,
                "epochCount": 2,
                "learningRate": 0.00001,
                "reasoningEffort": "high"
            }
        }
    }
)
</code></pre>
<pre><code class="language-python"># Step 3: Monitor training
# Track via Amazon Bedrock console or CloudWatch

# Step 4: Deploy with one click (console) or via API
# Step 5: Invoke via OpenAI-compatible API
from openai import OpenAI
client = OpenAI(
    base_url="https://bedrock-mantle.&lt;your-region&gt;.api.aws/v1"
)
response = client.chat.completions.create(
    model="my-custom-model",
    messages=[{"role": "user", "content": "Your prompt here"}]
)
</code></pre>
<hr />
<h2>When to Use RFT vs Traditional Fine-Tuning</h2>
<blockquote>
<p>💡 <strong>Decision rule:</strong> If you can <em>measure</em> whether a response is good but can't always write the <em>perfect</em> response yourself — use RFT.</p>
</blockquote>
<p><strong>RFT is ideal for:</strong></p>
<ul>
<li>Mathematical reasoning and problem-solving</li>
<li>Code generation and optimization</li>
<li>Complex multi-step instruction following</li>
<li>Subjective tasks like content moderation and creative writing</li>
<li>Any task where multiple valid answers exist</li>
</ul>
<p><strong>Stick with SFT when:</strong></p>
<ul>
<li>You have thousands of high-quality labeled examples already</li>
<li>The task has a single, deterministic correct answer</li>
<li>Your baseline model gets 0% rewards (establish basics with SFT first)</li>
<li>Your baseline already scores above 95% (RFT unnecessary)</li>
</ul>
<hr />
<h2>The Enterprise Angle: Why This Changes Everything for FinOps Teams</h2>
<p>RFT doesn't just improve accuracy — it changes the <em>economics</em> of model deployment.</p>
<p>The traditional path: use a large, expensive model because smaller ones aren't accurate enough for your use case.</p>
<p>The RFT path: fine-tune a small, fast, cheap model with RFT until it <em>outperforms</em> the large model on your specific task.</p>
<p><strong>Example:</strong> Amazon Nova 2 Lite fine-tuned with RFT on your domain-specific task can match or beat a much larger general-purpose model — at a fraction of the inference cost, with lower latency, and better alignment to your specific requirements.</p>
<p>For teams running thousands of inferences per day, that cost delta is significant.</p>
<hr />
<h2>The Bottom Line</h2>
<p>Reinforcement Fine-Tuning on Amazon Bedrock is one of the most practically significant ML capabilities AWS has launched in years. It democratizes advanced model customization — no labeled datasets, no RL expertise, no GPU management. Just define what "good" looks like, provide a few hundred examples, and let Bedrock handle the rest.</p>
<p>With the 66% average accuracy improvement and expanding model support including open-weight models and soon Nemotron, the case for RFT is compelling for any team that has struggled with traditional fine-tuning.</p>
<p>The era of "use the biggest model you can afford" is giving way to "fine-tune the right-sized model precisely for your task." RFT is how you get there on AWS.</p>
<p>AWS Summit Bengaluru — <strong>April 23–24, 2026</strong> — will feature deep dives on Bedrock customization. <a href="https://aws.amazon.com/events/summits/bengaluru/">Register here →</a></p>
<hr />
<p><code>AWS</code> <code>Amazon Bedrock</code> <code>Reinforcement Learning</code> <code>Fine-Tuning</code> <code>MLOps</code> <code>Generative AI</code> <code>Machine Learning</code> <code>LLM</code></p>
<hr />
<p><em>Written by <strong>Ramakrishnan Sakthivel</strong> — SVP · Cloud Infrastructure Architect (SRE) @ JPMorganChase · 12+ years Cloud · AI/ML</em>
<em><a href="https://www.linkedin.com/in/blackhawk/">LinkedIn</a> · <a href="https://rama007.hashnode.dev">Infra Intelligence</a></em></p>
]]></content:encoded></item></channel></rss>