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

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
B
Blog RSS Feed
Y
Y Combinator Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Tailwind CSS Blog
AWS News Blog
AWS News Blog
Jina AI
Jina AI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
Netflix TechBlog - Medium
雷峰网
雷峰网
Vercel News
Vercel News
Latest news
Latest news
S
Security @ Cisco Blogs
W
WeLiveSecurity
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Schneier on Security
Schneier on Security
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
L
Lohrmann on Cybersecurity
T
Tor Project blog
Hugging Face - Blog
Hugging Face - Blog
TaoSecurity Blog
TaoSecurity Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Hacker News
The Hacker News
J
Java Code Geeks
美团技术团队
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
H
Hacker News: Front Page
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CERT Recently Published Vulnerability Notes
S
Secure Thoughts
Microsoft Security Blog
Microsoft Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
B
Blog
博客园 - 三生石上(FineUI控件)
The Register - Security
The Register - Security
G
Google Developers Blog
Webroot Blog
Webroot Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
The Central Bank of Intelligence: Navigating the Token Economy
Seenivasa Ra · 2026-05-15 · via DEV Community

Why every prompt is a financial transaction and the Vector DB is your vault.

Not long ago, if you asked a software architect what fueled a system, the answer was straightforward compute, storage, and data. You queried a database, an API moved the data, and an application processed it. It was a deterministic world where operational costs were highly predictable.

Then Generative AI entered the picture and completely rewired the economics of software.

This wasn’t just a technological leap; it was a financial paradigm shift. And at the heart of this new architecture lies something deceptively small the token
.

When Software Became an Economy

Initially, tokens seemed like mere linguistic fragments pieces of words or punctuation. But as organizations scaled Large Language Models (LLMs) into production, a hard truth emerged every interaction is a financial event.

Prompts consume tokens. Responses generate them. Inject memory, retrieve documents via RAG (Retrieval-Augmented Generation), or deploy autonomous agents, and your token consumption compounds exponentially. Software teams are no longer simply building applications; they are managing micro economies. Every architectural choice now bends a cost curve.

The fundamental engineering question has evolved from:
"Is the model capable of doing this?" TO
"Can we afford to scale this?"

The Metered Reality of Intelligence

In traditional software, retrieving data was practically free once infrastructure costs were covered. Generative AI shattered that reality. Today, intelligence operates with a running meter, attaching a price tag to every design decision.

  • Do we inject the entire document, or just semantic chunks?
  • Should we preserve the full chat history?
  • Does this specific task actually require a premium frontier model?
  • Is complex chain-of-thought reasoning worth the added token spend?

LLMs are consumption engines. Bloating a prompt with unnecessary tokens doesn't just inflate your bill it increases latency, dilutes the model's focus, and can actually degrade the quality of the response.

The Context Window: The New Memory Hierarchy

In classical computing, architects obsessed over optimizing RAM, CPU, and caching. In the AI era, the battleground is context efficiency.

Think of the context window as incredibly expensive working memory. Just like human cognition, shoving too much noise into that memory causes overload. The future of AI engineering isn’t about feeding the model more information; it’s about feeding it the minimum necessary intelligence. This requires mastering semantic retrieval, summarization, compression, and memory pruning.

The Dawn of AI FinOps

This financial reality forces Product Managers, Architects, and Developers into a new, tightly knit collaboration. AI systems cannot survive at scale unless everyone involved thinks like an economist.

Welcome to AI FinOps. The organizations that win won't necessarily have the smartest models they will have the most economically sustainable architectures.

The Model Router: The Central Bank of AI or Your Intelligent Cost Broker

Here is the single most impactful architectural decision you can make for AI cost management n*ever route all traffic to your most expensive model.*

Think of model selection like hiring for different tasks. You wouldn't hire a neurosurgeon to take your blood pressure. The same principle applies to LLMs. The key is building routing logic that can distinguish between request complexity and send each one to the appropriate (and cheapest) model tier that still meets your quality requirements.

A fast track to bankruptcy in the AI era is routing every single user request to your largest, most expensive model. You don't hire a PhD to grade middle school math.

Enter the Model Router. Acting as an intelligent broker, the router evaluates a prompt's complexity, predicts its cost, and directs it to the most efficient model available.

By intelligently matching the task to the tool, a routing layer dramatically slashes operational burn.

AI Model Router within Microsoft Foundry. You can also build a simple router yourself a lightweight classifier that scores prompt complexity and routes accordingly.

The Self-Hosting Illusion and the Quality Gap

To escape API costs, many organizations pivot to self hosting open source models. While this eliminates the "utility bill" of per token API pricing, it replaces it with heavy infrastructure ownership: GPUs, inference scaling, MLOps, continuous tuning, and failover management.

A word about quantization

Before we get into the tools, you need to understand quantization it's the key to making large models run on realistic hardware. By default, model weights are stored as 16-bit or 32-bit floating point numbers. Quantization reduces this precision (to 8-bit, 4-bit, or even smaller), dramatically reducing memory requirements while sacrificing relatively little quality.

In practice, you'll see model files with names like llama3.1-8b-Q4_K_M.gguf. The Q4_K_M means 4-bit quantization with the "K_M" quality variant (a good general-purpose choice). A 70B parameter model at full precision needs ~140GB of VRAM. The same model quantized to 4-bit needs about 40GB — suddenly runnable on 2 × RTX 4090 cards.

The Three Tools for Self Hosting LLMs

Ollama: The Fastest Path to Running a Local LLM

  • Open Source
  • Developer Friendly
  • Free

Ollama (ollama.com) is the tool that made local LLMs genuinely accessible. It packages model weights, quantization, and a local API server into a single binary that installs in minutes. Under the hood it uses llama.cpp a highly optimized C++ inference engine and supports GPU acceleration on CUDA (NVIDIA), Apple Metal (M-series chips), and AMD ROCm.

Best for

Individual developers, small teams, privacy-sensitive applications where data cannot touch external APIs, rapid prototyping, and high volume internal tools where marginal token cost matters.

Docker Model Runner AI Models as First-Class Container Citizens

  • Docker Native
  • Open API
  • Docker Desktop Required

Docker Model Runner (DMR) was introduced in Docker Desktop 4.40 in April 2025. The idea is elegant: if your entire stack runs in Docker, why should your AI inference layer be a separate tool managed differently? DMR brings model execution into the same CLI, the same Compose files, and the same mental model your team already uses.

Best for

Teams already running containerized microservices who want zero additional tooling overhead. If you already have Docker Compose fluency on your team, DMR is the lowest-friction path to local AI inference.

Microsoft Foundry Local Enterprise AI with a Governance Layer

The enterprise grade platform for building, deploying, and governing AI applications. In 2025, Microsoft added Foundry Local enabling on device and on premises inference with the full Azure governance stack intact.

This matters enormously for organizations in regulated industries. Running a local Llama model with Ollama is easy, but you lose auditability, policy enforcement, and compliance documentation. Foundry Local gives you the economics of self-hosting with the governance layer your compliance team requires.

Best for

Enterprise teams in regulated industries (healthcare, finance, government) who need self-hosted inference but cannot sacrifice compliance auditability. Also ideal for organizations with existing Azure infrastructure investments.

Bonus: Hugging Face Where the Models Actually Live

You can't talk about self-hosting without mentioning Hugging Face (huggingface.co) the open source model repository that underpins the entire local LLM ecosystem. Think of it as the GitHub for AI models. When you run ollama pull llama3.1, Ollama is ultimately pulling model weights that originated as Hugging Face repositories.

Hugging Face hosts over 900,000 models (as of 2025), including the Llama family (Meta), Mistral (Mistral AI), Gemma (Google), Phi (Microsoft), Qwen (Alibaba), and DeepSeek. It provides the transformers library for Python-based inference, the Hub API for programmatic model access, and hosted inference endpoints for teams who want managed API access to open models without running their own infrastructure.

For production scale: consider vLLM

One tool worth knowing about for high throughput production deployments is vLLM an open source inference server specifically optimized for serving LLMs at scale. While Ollama and Docker Model Runner are excellent for development and moderate workloads, vLLM implements techniques like PagedAttention and continuous batching that dramatically improve throughput for concurrent requests. If you're serving hundreds of simultaneous users from a self-hosted model, vLLM is the production grade serving layer.

The Quality Reality Check Be Honest With Yourself

I want to be direct here because too many self-hosting conversations gloss over this the quality gap between open-source models and frontier proprietary models is real. It is narrowing, but it exists. The gap is not uniform it shows up specifically in certain task types.

Furthermore, a quality gap persists. While open source models are improving rapidly, many still struggle with long context consistency, deep reasoning, hallucination control, and complex tool orchestration.

This creates a dynamic where hybrid routing becomes the gold standard open source models handle high volume, low risk workloads, while premium API models are reserved for critical reasoning.

The "good enough" question

The question is never "is it as good as GPT-4o?" The question is "is it good enough for THIS specific task in THIS specific context?" For classifying customer intent into one of 12 categories, a 7B local model is almost certainly good enough. For drafting a high-stakes client proposal, probably not. Know your use case before you decide on your model tier.

Embeddings: The Capital Assets of AI

If tokens are your operating cash, embeddings are your long term capital assets. They compress organizational knowledge into reusable vectors.

But like any asset, they depreciate. When underlying data changes, embeddings go stale, leading to degraded retrieval and increased hallucinations. Because re-indexing entire datasets constantly is financially ruinous, smart architectures act like portfolio managers—utilizing delta indexing, semantic diffing, and selective re-embedding to keep knowledge fresh cost-effectively.

Agents as Economic Actors

AI agents add a volatile layer to this economy because they iterate autonomously. They plan, retrieve, reason, and retry. Every loop burns tokens. Agents must therefore operate as economic entities, constantly balancing cost against accuracy, and depth against speed.

Operationalizing this requires frameworks that prioritize cost-awareness:

Skill Budgeting: Estimating token usage and model selection before execution.

Context Engineering: Retrieving precision chunks rather than bulk documents.

Cost Observability: Tracking real-time telemetry like token burn rate, cost-per-skill, and cost-per-user.

Practical Decision Framework

Here is the decision tree I use when figuring out how to route any given AI workload

What "Rich" Actually Means in a Per Token World

We started with a very real industry shift: the flat subscription is dying. GitHub Copilot, Cursor, Claude Code, and the tools your team uses every day are repricing themselves against the actual cost of computation. That is not going away. If anything, more tools will follow.

But here is the reframe that changes everything: per token pricing is not your enemy. It is actually the most honest pricing model that has ever existed for software. You pay for the intelligence you actually consume. The teams that will struggle are the ones who keep treating AI like a utility with a flat bill using frontier models for everything, flooding context windows, running agents without measuring cost per step.

The teams that will thrive are the ones who build with cost awareness as a first class concern from day one. That means routing intelligently, caching aggressively, using embeddings instead of brute force context, and for the right workloads minting their own tokens by running open source models on hardware they own.

Self hosting is not a compromise. For internal tooling, high volume pipelines, privacy sensitive data, and agent tasks that don't require frontier level reasoning, a well configured local model is the strategically correct choice. Not because it is "good enough" but because it is the right tool for the job, and it happens to cost nearly nothing per token.

The practical checklist

Defining Wealth in the AI Era

We are entering an era of token aware architecture. Tomorrow's software architects will also be economists, managing inference budgets and dynamic model marketplaces.

In traditional software, scale was measured by how many users a system could reliably serve. In AI systems, scale is increasingly defined by how efficiently intelligence is used under constraint. The most effective systems minimize unnecessary context, dynamically select the most cost efficient model for the task, and reduce redundant reasoning steps while still preserving accuracy and quality. In this new paradigm, value is not just about capability it is about delivering the right level of intelligence at the lowest possible token, compute, and latency cost.

We are no longer just building applications. We are designing self-contained economies of intelligence, and tokens are the currency that powers them.

Thanks
Sreeni Ramadorai