惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The Hacker News
The Hacker News
F
Full Disclosure
Cloudbric
Cloudbric
Blog — PlanetScale
Blog — PlanetScale
W
WeLiveSecurity
N
News and Events Feed by Topic
T
Troy Hunt's Blog
V2EX - 技术
V2EX - 技术
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
B
Blog
GbyAI
GbyAI
C
Check Point Blog
B
Blog RSS Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Recorded Future
Recorded Future
The Last Watchdog
The Last Watchdog
N
News and Events Feed by Topic
T
The Blog of Author Tim Ferriss
O
OpenAI News
V
V2EX
人人都是产品经理
人人都是产品经理
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
WordPress大学
WordPress大学
www.infosecurity-magazine.com
www.infosecurity-magazine.com
S
Security @ Cisco Blogs
C
Cisco Blogs
Security Latest
Security Latest
S
Security Affairs
V
Visual Studio Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
Last Week in AI
Last Week in AI
AWS News Blog
AWS News Blog
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
PCI Perspectives
PCI Perspectives
博客园_首页
U
Unit 42
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
The Register - Security
The Register - Security
N
Netflix TechBlog - Medium
L
LINUX DO - 热门话题
H
Hacker News: Front Page

Towards AI

Building AI Agents in Rust — part 4 | Towards AI Building AI Agents in Rust — part 5 | Towards AI The Verified Identity Agent Bridge | Towards AI You Can’t Prompt Your Away Your LLM Problems | Towards AI The Free Agent Trap | Towards AI Your Agentic Loop Will Drift. Here Is the KL Divergence Equation That Measures How Far It Has Wandered From Its Original Instruction. | Towards AI Beyond Chat: Processing Images, PDFs, and Documents with the OpenAI Adapter in Oracle Integration Cloud | Towards AI Building AI Agents in Rust — part 3 | Towards AI Self-Hosting Airflow at Home: Automating Stock Price Data Collection | Towards AI The 76-Hour Frontier: How the Takedown of Claude Fable 5 Birthed the Military-Industrial-AI Complex | Towards AI I Trained a Markdown File to Boost GPT-5.5 by 23 Points — It Shouldn't Work | Towards AI We Replaced ChatGPT With a Local AI Server. Six Months of Honest Data. | Towards AI What Really Makes Cars Pollute? A Data Science Deep Dive into CO₂ Emissions | Towards AI Training GPT-2 From Scratch on a GTX1050 | Towards AI Principal Component Analysis (PCA): Theory, Mathematics, and Applications Build a Zero-Cost Web Automation Pipeline With OpenRouter, OpenClaw, and MediaUse I Gave Qwen3.7-Plus a Screenshot and It Found the Exact Pixel to Click for $0.40 Beyond the Prompt: Why Autonomous AI Agents Are Replacing the Chatbot Moonshot Cracked Claude Code’s Playbook with an MIT Terminal Agent and a $0.60 Model Connections, Roles, and Warehouses: Getting CoCo Desktop Production-Ready from Day One My First $5,000 Month Writing About AI Engineering on Medium Google Shrank Gemma 4 by 72% and Unsloth Fixed the 4-Bit Bug Nobody Else Caught on One 4090, and 4-Bit Shouldn’t Be This Good LangChain Explained: Understanding Models, Prompts, Chains, Memory, Indexes, and Agents TOON: Beyond JSON for LLMs Claude Code Casual, Pro, Elite: The Three Working Personas of Claude Code Mastery MiniMax M3 Decodes 1M Tokens 15x Faster — and It Shouldn’t Be This Cheap Using Amazon SQS for AI Agent Orchestration I Ran a 1.5B-Active Model on My Laptop That Embarrassed a 26B by 46 Points How to Build a Self-Improving Company with AI Part 3 — Implementation/Engine-Level: Choosing the Runtime That Gives You These for Free Part 2 — Serve-Level Speed: System Design That Stabilizes P95/P99 3-Part Series: LLM Latency in Production (Part 1) Claude Code: The AI Coding Partner Changing How Developers Build Software Claude Code Pitfalls: Claude Code Won’t Do What You Told It: A Troubleshooting Catalog Full-Stack Data Scientists for the Agentic Coding World Building Production-Grade AI Skills with Snowflake Cortex AI Function Studio I Tried 10 AI Agent Frameworks in 2026 — Here’s the Honest Guide I Wish I Had Earlier How One Spring Boot Optimization Saved Our Startup $30,000 a Year Inside Palantir AIP: How the World’s Most Controversial AI Platform Actually Works What Is a Reverse Proxy? (And Why Every Backend Developer Should Care) What Claude Opus 4.8 Actually Changes If You’re Building Agents QWEN 3.7 Max Worked For 35 Hrs Straight And The Results Were Mind-blowing When LLMs Meet Knowledge Graphs on the Battlefield Fine-Tuning is Dead: Why Context Orchestration Won in 2026 5 Things Broke When I Shipped a RAG + MCP Agent to Production. Google Co-Scientist: Hyper Scaling Research and Discovery Microsoft Just Embarrassed Browser Web Agents — 1,000 Lines Made GPT-5.4 Beat Opus 4.6 on 200 Web Tasks The Modern Data Stack Is Broken — Here’s How to Fix It With AI, Governance, and Real Architecture Building Production MCP Servers: What the Spec Won’t Tell You When Should an Agent Stop? The Anatomy of Termination Harness Engineering: The Layer That Matters More Than the Model AI Engineers Who Can’t Debug Are Getting Fired (Here’s How I Debug with Claude Code) Claude Code Memory: Why You Keep Explaining the Same Thing to Claude (and the Five Layers That Fix It) Claude Code Subagents: The Claude Code Feature You Skip Every Day (And Why It Quietly Wrecks Your Sessions) Agentic AI and the SMB Banking Advantage Claude Code: Spec-Driven Development — Why Your AI Coding Sessions Fall Apart at Hour Three The Real Cost of Agentic AI Nobody Budgets For SVM : 40 must visit Interview Questions (Part 2) Your AI Agent Works Perfectly in the Demo. Here Are the 6 Ways It Dies in Production. Unleashing the Power of ONNX for Speedier SBERT Inference Terraform vs CI/CD for Serverless Deployments Merve Noyan Stopped Writing Training Scripts — Her Agent Just Fine-Tuned 18 Models Solo for $11.40 Why Your Sales Forecast Is Always 20% Wrong (And How To Make It 12% Wrong) Genetic Cubic n{C/A} Ratios For Elementary Robotics Design Top 20 AdaBoost Interview Questions & Answers (Part 2 of 2) Agentic AI Vs AI Agents — What Are the Key Differences? LAI #127: The Infrastructure Layer of AI Is Becoming the Product Anthropic Caught Its Own AI Planning to Blackmail Engineers RNNs Cannot Think What Transformers Think Cheaply. ICLR 2026 Proved the Gap Is Exponential. Time Series Made So Easy My Aunt Got It on the Second Read Claude Cowork 101 | Towards AI Is 3-Bit KV Cache the Holy Grail? A Reality Check on Google’s TurboQuant LangGraph Multi-Agent Architecture: Building a Self-Critiquing AI Debate System AutoML on Autopilot | Towards AI I Ran This Open-Source AI Tool on a Messy Codebase and Got 71x Fewer Tokens — Here Is Exactly What Happened Month in 4 Papers (April 2026) AI Kept Forgetting My Notes. Fixing That Taught Me How It Actually Works. How ChatGPT Makes You Addicted Crack ML Interviews with Confidence: K-Nearest Neighbors (KNN 20 Q&A) The Event-Driven Blueprint: How I Scaled a Spring Boot System to 10 Million Kafka Messages/Day Building Vector Search? Why FAISS Alone Isn’t Enough TAI #202: GPT-5.5 Moves Codex Into Real Work Machine Learning System Design -The Model Serving Triangle, With One Forward Pass Flowing Through Every Trade-off (Part3) AI Orchestration in Action: How MuleSoft and LLMs Fuel the Future of Enterprise AI GPT-4 Has 1.8 Trillion Parameters. It Uses 2% of Them Per Token. Part 20: Data Manipulation in Multi-Dimensional Aggregation A Fundamental Introduction to Genetic Algorithm -Part Two TAI #200: Anthropic’s Mythos Capability Step Change and Gated Release Sqribble’s Template‑Driven Document Automation Anthropic Just Shipped the Layer That’s Already Going to Zero Long-Term vs Short-Term Memory for AI Agents: A Practical Guide Without the Hype The L1 Loss Gradient, Explained From Scratch Your Postcode Is Deciding Your Care. I Built a Pipeline to Prove It. I Directed AI Agents to Build a Tool That Stress-Tests Incentive Designs. Here’s What It Found. Your System Prompt Is the Product — Not the Feature The LLM Wiki Trend Has a Retention Problem Nobody Mentions Top 20 Data Preparation Interview Questions and Answers (Part 2 of 2) LAI #122: Word Embeddings Started in 1948, Not With Word2Vec Top 15 Computer Vision Datasets [2026] 40 Generative AI Interview Questions That Actually Get Asked in 2026 (With Answers)
From Notebook to Production: Running ML in the Real World (Part 4)
Editorial Team · 2026-04-15 · via Towards AI

Author(s): Raj kumar

Originally published on Towards AI.

Part 4 of a 4-part series: From Data to Decisions

From Notebook to Production: Running ML in the Real World (Part 4)

Most machine learning projects look successful right up to the moment they are deployed.

The notebook runs. The metrics look good. Stakeholders sign off. The system is declared ready.

And then reality begins.

Data changes. Latency budgets tighten. Integration breaks assumptions. Alerts spike. Performance drifts. Business confidence erodes slowly at first, then suddenly. The model itself may still be mathematically sound, but the system around it begins to fail.

This is the part of the journey that receives the least attention in most ML writing and the most attention in real organizations.

In the previous parts of this series, we focused on data understanding, feature engineering, and decision design. In this final part, we step into the hardest phase of all: operating machine learning systems in production.

This is where ML stops being a data science problem and becomes a systems, governance, and accountability problem.

Deployment and Integration Considerations

Deploying a model is rarely about the model itself.

It is about how that model fits into an existing ecosystem of systems, services, controls, and people. In banking and enterprise environments, ML rarely runs in isolation. It is embedded inside payment flows, credit pipelines, fraud engines, AML platforms, or customer decisioning layers.

Integration failures are far more common than modeling failures.

Models trained on batch data are suddenly asked to serve real-time traffic. Features assumed to be available synchronously arrive late or not at all. Retry logic creates duplicate events. Fallback paths bypass instrumentation. None of this is visible in a notebook.

This is why production-grade systems treat deployment as an engineering exercise, not a data science milestone.

Questions that matter at this stage include:

  • What happens when a feature is missing or delayed?
  • How does the system behave under partial failure?
  • Can decisions be rolled back or overridden?
  • What is the safe fallback when the model is unavailable?

A model that cannot fail gracefully will eventually fail publicly.

Performance, Latency, and Scalability

In production, correctness is necessary but insufficient. Decisions must arrive on time, under load, and consistently.

Latency budgets are often tight. Fraud decisions may need to return in tens of milliseconds. Credit checks may sit inside user-facing journeys where delays translate directly into drop-offs. Batch systems may need to process millions of records overnight without missing SLAs.

Performance issues rarely announce themselves clearly. They surface as intermittent slowdowns, uneven throughput, or unexplained timeouts under peak load.

Scalability is not just about compute. It is about predictability.

A system that performs well at average volume but degrades sharply during spikes creates operational risk. This is especially dangerous in systems where spikes correlate with fraud attempts, market volatility, or customer stress.

Experienced teams test not just for correctness, but for behavior under stress. They ask how the system degrades, not just whether it works.

Monitoring and Drift Detection

Once a model is live, it begins to age immediately.

Customer behavior changes. Fraud patterns evolve. Markets shift. Policies are updated. What was true during training slowly becomes less true in production.

This is not a failure of modeling. It is the nature of real systems.

Monitoring therefore becomes central, not optional.

Effective monitoring goes beyond tracking accuracy, which is often delayed or unavailable. It includes:

  • Input data drift
  • Feature distribution changes
  • Score distribution shifts
  • Decision volume changes
  • Alert and override rates

These signals provide early warning before losses or complaints spike.

The key is not to eliminate drift. That is impossible. The goal is to detect it early and respond deliberately.

Systems that lack monitoring tend to fail suddenly. Systems that monitor well fail gradually and recover intentionally.

Model Validation and Stress Testing

In regulated environments, models are not trusted simply because they perform well.

They are trusted because they have been challenged.

Validation is not about reproducing training results. It is about asking uncomfortable questions:

  • How does the model behave under extreme but plausible scenarios?
  • What happens when inputs are noisy, missing, or adversarial?
  • Does performance degrade gracefully or collapse sharply?
  • Are decisions stable across time and segments?

Stress testing reveals fragility that metrics hide.

It also plays a critical governance role. When incidents occur, teams that can demonstrate prior validation and stress testing are in a far stronger position than those who relied solely on offline performance.

This is one of the clearest differences between experimental ML and enterprise ML.

Governance, Audit, and Compliance

Governance is often perceived as friction. In practice, it is what allows systems to operate at scale.

In banking and other regulated industries, governance is not just about satisfying auditors. It is about defining ownership, accountability, and change control.

Key questions governance answers include:

  • Who approved this model and under what assumptions?
  • What data was used, and when?
  • What changes have been made since deployment?
  • How are decisions explained and documented?
  • What happens when the model is challenged?

Strong governance does not slow teams down. It prevents chaos.

Teams that design governance early tend to move faster later, because decisions are traceable and trust is institutionalized rather than personal.

Lessons Learned from Production

After enough time operating ML systems in production, certain patterns become clear.

  • Most failures are not algorithmic. They are systemic.
  • Most incidents are not surprises. They are ignored signals.
  • Most trust issues are not about models. They are about explanations and ownership.

The teams that succeed are not the ones with the most complex models. They are the ones with the clearest boundaries between learning, decisioning, and control. They understand that models are components, not solutions.

Reader Takeaway: Why Production ML Is a Systems and Governance Problem

This series began with raw data and ends with operational reality, but the journey between those two points is where most machine learning efforts quietly succeed or fail.

In Part 1, we focused on data understanding and exploratory analysis. Not as a statistical warm-up, but as risk discovery. We saw how data in banking systems is shaped by operations, policy, legacy migrations, and human processes. Missing values, delayed labels, and skewed distributions were not inconveniences to clean up, but signals to understand. The central lesson was simple: most modeling mistakes are already visible before a single algorithm is trained.

In Part 2, we moved from understanding data to shaping it. Feature engineering was treated not as a toolbox of techniques, but as decision design. Aggregations captured behavior rather than events. Encodings reflected system realities rather than theoretical purity. Validation strategies were chosen to reflect time, change, and leakage risk. The takeaway was that disciplined feature design consistently outperforms brute-force modeling, especially under real-world constraints.

In Part 3, we confronted the limits of model-centric thinking. High accuracy did not guarantee good outcomes. Metrics described trade-offs, not success. Thresholds turned scores into decisions, and those thresholds carried cost, risk, and accountability. Error analysis and explainability revealed whether systems could be trusted, defended, and operated. The core insight was that models do not fail alone; decisions do.

And in Part 4, we stepped fully into production. Deployment exposed assumptions. Monitoring revealed drift. Validation and stress testing surfaced fragility. Governance defined ownership and trust. Here, it became clear that once models leave notebooks, they become components inside larger systems. Their success depends less on mathematical sophistication and more on integration, observability, control, and accountability.

Taken together, these parts form a single argument.

By the time a model reaches production, its technical sophistication matters far less than the system surrounding it. Reliable machine learning systems are built through disciplined integration, careful monitoring, deliberate governance, and continuous learning from production behavior. Modeling is necessary, but it is never sufficient.

This is why production ML is fundamentally a systems and governance problem, not a modeling one.

The series started with data and ends with decisions in the real world. Every step in between matters, but it is only in production that assumptions are truly tested and consequences become visible.

If this perspective reflects your own experience building or operating ML systems, I would value hearing how you have navigated these trade-offs. Practical perspectives from the field often surface lessons that theory never will.

If you found this series useful, you’re welcome to follow me here on Medium. I write from hands-on experience building AI systems in regulated, high-stakes environments, and I focus on the parts of the journey that are hardest to get right and hardest to explain.

Real AI systems are not built by chasing metrics. They are built by designing decisions that endure.

Published via Towards AI