Simplismart Automates Open-Weight Serving to Undercut Closed AI Costs

TCO of going Open Weight: A Framework With Simplismart — Ai4

Ai4

Self-hosting open-weight models beats proprietary AI pricing once volumes cross empirical thresholds like 50,000 daily voice minutes, but deployments fail unless configurations are validated against mirrored live production traffic.

AI-assisted summary of TCO of going Open Weight: A Framework With Simplismart — original source. Check the original for full context.

Source published:

Detailed notes

## Background Published on YouTube by Ai4 on August 18, 2026, this session features Ansh Singh, Chief of Staff at Simplismart, breaking down the operational realities of enterprise AI infrastructure. According to the description, the presentation details a six-stage framework for evaluating the true Total Cost of Ownership (TCO) of deploying open-weight models in production, moving beyond raw GPU-versus-API comparisons to explore configuration search, shadow-load testing, and breakeven mathematics.

## TL;DR While open-weight architectures like Gemma 4 and GLM 5.2 now match closed frontier APIs in capability, enterprise migration is largely accelerated by API cost shock and the operational risk of vendor deprecation schedules. Finding the optimal deployment configuration across diverse hardware and software runtimes poses a massive combinatorial challenge, which Simplismart addresses using an autonomous, agentic autoresearcher to achieve day-zero readiness. The framework emphasizes validating candidate setups with mirrored shadow-load testing from real production traffic rather than synthetic benchmarks to handle real-world burstiness. Ultimately, self-hosting reaches economic breakeven at specific workload cutoffs—such as 50,000 voice minutes per day—with mature enterprises adopting hybrid routing between open-weight nodes and closed frontier APIs.

## Atmosphere & style The presentation carries a pragmatic, battle-tested tone that strips away generative AI marketing hype in favor of concrete infrastructure engineering. Ansh Singh speaks with the measured authority of a practitioner, candidly recounting early deployment failures, parser quirks, and hard lessons learned from live enterprise traffic. The talk feels like an insider technical post-mortem combined with a strategic playbook, delivering dense, analytical insights tailored directly for enterprise architects and engineering leaders.

## Key takeaways - [00:04](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=4s) Escalating API bills and unexpected cost surges are driving enterprise engineering teams to evaluate the Total Cost of Ownership (TCO) of self-hosted open-weight architectures. - [01:26](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=86s) Open-weight models such as Gemma 4, GLM 5.2, and Kimi K3 have effectively closed the benchmark performance gap with frontier closed-source models across reasoning, coding, and localized tasks. - [01:26](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=86s) Self-hosting open-weight models permanently eliminates the risk of vendor 'sunset clauses', where API providers deprecate tuned legacy endpoints on short notice. - [04:55](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=295s) Deploying open-weight models to production often surfaces custom architectural quirks, such as internal chain-of-thought tokens leaking into user outputs due to non-standard chat templates and parser bugs. - [06:31](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=391s) Finding the optimal serving configuration is a high-dimensional search problem spanning runtime frameworks, attention backends, quantization schemes, tensor parallelism, and speculative decoding. - [08:38](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=518s) Autonomous agentic benchmarking loops can evaluate hundreds of candidate deployment configurations and apply linear programming to solve multi-objective latency and throughput trade-offs without human trial-and-error. - [10:52](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=652s) Accumulating low-level kernel adaptation knowledge across GPU generations (such as Hopper to Blackwell) allows automated systems to compress model onboarding timelines from months to day zero. - [12:17](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=737s) Static synthetic benchmarks fail to capture production burstiness; over 80% of teams neglect shadow-load testing with mirrored live traffic, risking catastrophic operational failures after deployment. - [12:17](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=737s) Raw GPU card prices can be deceptive, as premium hardware costing 2x more per hour can deliver 5x higher throughput, resulting in a substantially lower total cost per token. - [15:23](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=923s) While closed pay-as-you-go APIs win on sparse traffic, dedicated self-hosting reaches a financial breakeven threshold at higher scale, such as processing approximately 50,000 voice minutes per day for voice agent workloads. - [17:07](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=1027s) Mature enterprise architectures leverage dynamic query routing, sending high-volume standard requests to self-hosted open-weight endpoints while escalating complex edge cases to proprietary frontier APIs.

## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=4s) The Reality of Shifting to Open-Weight Models in Production

Ansh Singh introduces himself as Chief of Staff at Simplismart, an inference platform company with roughly five years of operational experience. While generative AI startups often dominate headlines, Simplismart's focus has been on enterprise-level production infrastructure. For large enterprises whose engineering and product teams have grown accustomed to closed APIs from OpenAI or Anthropic, making the strategic pivot to self-hosted, open-weight architectures is a demanding journey fraught with non-trivial operational variables.

```mermaid flowchart LR accTitle: Total Cost of Ownership Optimization Framework subgraph S1["1. Selection"] A["Model Choice"] end subgraph S2["2. Tuning"] B["Configuration Search"] C["Autoresearcher Benchmarking"] end subgraph S3["3. Deployment Strategy"] D["Shadow Load Testing"] E["Compute Strategy & TCO Optimization"] end A --> B B --> C C --> D D --> E ```

The primary catalyst driving enterprise interest in Total Cost of Ownership (TCO) is API bill shock. Enterprises are increasingly seeing their foundation model API costs flagged in executive finance meetings—a reality highlighted by recent industry anecdotes, such as Uber burning through an entire annual AI budget in a single month. For teams caught in this cost spiral, open-weight models represent a path to financial predictability and autonomy.

- Simplismart brings over 5 years of enterprise inference deployment insights. - The shift from closed APIs to self-hosted models requires navigating complex internal compute environments. - Escalating frontier API costs are forcing enterprise engineering and finance leaders to explore open-weight TCO breakevens.

---

[01:26](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=86s) Model Capabilities, Regional Adoption, and the "Sunset Clause"

The AI landscape shifted dramatically between 2022 and the present day. While closed models initially held an insurmountable lead, modern open-weight alternatives—such as Gemma 4, GLM 5.2, Kimi K3, and Megatron/Neotron variants—have closed the performance gap on standard industry benchmarks.

Adoption patterns vary by geography and use case. Gemma 4 has gained strong traction across Europe and Asia, particularly for regional languages and low-latency voice bot pipelines where compact model footprints excel. Meanwhile, GLM and Kimi are emerging as top-tier open choices for deep reasoning, complex enterprise logic, and coding tasks.

Beyond pure cost and throughput, the single strongest factor pushing enterprises toward open weights this year is the risk of the "sunset clause". When building mission-critical products on closed APIs, organizations frequently face deprecation schedules: an API provider releases a new flagship model and forces developers to migrate off their tuned legacy endpoints within six months. Moving to open-weight models allows enterprises to permanently eliminate vendor lock-in and "own their intelligence" without external deprecation mandates.

```mermaid flowchart TD accTitle: The Three Core Gaps in Open-Weight Production subgraph Gaps["Open-Weight Deployment Challenges"] G1["Model-Level Gaps<br/>(Parser issues, format drift, quirks)"] G2["Performance & Scaling<br/>(Throughput, RPS per GPU, latency SLAs)"] G3["Compute Strategy<br/>(Hardware vendors, instance types, spot pricing)"] end ```

- **Gemma 4**: Popular in Europe and Asia for localized language processing and latency-sensitive voice bots due to its small footprint. - **GLM & Kimi**: Strong alternatives for code generation, chain-of-thought, and complex reasoning workloads. - **Sunset Clause Risk**: Closed API providers deprecate endpoints on short notice (often 6 months), disrupting stable enterprise workflows. - **The 3 Core Production Gaps**: Model-level idiosyncrasies, performance/scaling trade-offs, and compute infrastructure selection.

---

[04:55](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=295s) Model-Level Quirks: Fixing Gemma 4's Thought Leakage

Taking open-weight models to production involves resolving edge-case behaviors unique to specific architectures. When deploying Gemma 4 in enterprise environments, Simplismart discovered an issue where internal reasoning tokens bled directly into end-user outputs.

Because Gemma 4 uses a non-standard chat template format, its internal processing monologue—the step-by-step thinking tokens generated before the final response—was being returned directly to users. The native vLLM parser failed to parse and strip these internal tags correctly. To resolve this, the team rewrote the vLLM parser implementation from scratch and implemented a strict "thinking budget" to cap the number of internal reasoning tokens, speeding up response generation while eliminating thought leakage.

- Open-weight models require custom handling for proprietary formatting and template variations. - Gemma 4 suffered from thought leakage where internal chain-of-thought monologues appeared in final user responses. - Simplismart resolved this by rewriting the native vLLM parser from scratch and enforcing an explicit thinking budget.

---

[06:31](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=391s) The High-Dimensional Configuration Search Problem

Deploying an open-weight model requires navigating a vast combinatorial search space spanning hardware and software parameters. A single model, such as Gemma 4 31B, requires fundamentally different deployment stacks depending on the target workload:

| Workload Type | Objective | Optimization Priorities | Configuration Focus | |:--- |:--- |:--- |:--- | | **Batch Processing** (e.g., Doc Parsing) | Maximize cost efficiency / ROI | Maximize throughput per dollar | High batching, aggressive quantization, cheaper GPUs | | **Interactive Pipelines** (e.g., Voice Bots) | Protect latency SLAs | Minimize Time-to-First-Token (TTFT) | Speculative decoding, fast draft models, high TP |

To find the optimal configuration, teams must choose across multiple interdependent axes: hardware targets, inference runtimes (vLLM, SGLang, TensorRT-LLM, Vajra, LMDeploy), attention backends, quantization schemes, tensor parallelism (TP) degrees, speculative decoding algorithms, and draft model architectures.

Historically, this search required manual profiling of input/output token distributions, KV cache hit rates, and request arrival rates. Engineers spent years relying on manual trial-and-error, creating unpredictable timelines and inconsistent performance gains.

---

[08:38](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=518s) Automated Benchmarking via an Agentic Autoresearcher

To solve the configuration bottleneck, Simplismart developed an automated benchmarking system inspired by Andrej Karpathy's autoresearcher paradigm. Instead of relying on manual engineer profiling, autonomous agents ingest external repositories, framework documentation, and known inference bugs to systematically discover the best deployment recipe.

```mermaid flowchart TD accTitle: Autoresearcher Architecture and Search Flow subgraph Ingestion["Knowledge Ingestion Layer"] I1["Target GitHub Repos"] I2["Internal Documentation"] I3["Framework Docs<br/>(vLLM, SGLang, TRT-LLM, LMDeploy)"] I4["Known Inference Stack Bug Knowledgebase"] end

subgraph AgenticLoop["Parallel Optimization Loop"] A1["Hypothesis Generation"] A2["Parallel Benchmark Agents"] A3["Shared External Ledger / Benchmark Service"] end

subgraph Evaluation["Target Selection"] E1["250+ Viable Configurations"] E2["Linear Programming Multi-Objective Search"] E3["Optimal Hardware & Software Stack"] end

I1 & I2 & I3 & I4 --> A1 A1 --> A2 A2 <--> A3 A3 --> E1 E1 --> E2 E2 --> E3 ```

The system ingests documentation across major runtime frameworks (vLLM, SGLang, TensorRT-LLM, Vajra, LMDeploy) alongside historical stack issue logs. Multiple agents run benchmarks in parallel, form hypotheses regarding optimal parameters, and publish raw latency/throughput data to an external ledger service. Agents learn dynamically from each other's execution runs.

Once the ledger populates roughly 250 viable permutations for a model, the optimal deployment configuration is extracted using a linear programming search against the target latency, throughput, and hardware constraints. This autonomous loop uncovers subtle hardware-software incompatibilities without human intervention—such as architectural mismatches where Gemma 4's attention head dimensions fail to map cleanly onto Blackwell or Nvidia RTX 6000 Ada Generation setups.

- The autoresearcher autonomously constructs hypotheses and runs parallelized hardware-software benchmarks. - Ingests data across runtime engines (vLLM, SGLang, TRT-LLM, LMDeploy) and known bug databases. - Centralizes performance results in an external ledger, allowing parallel agents to share insights. - Evaluates ~250 candidate configurations per model, applying linear programming to find the optimal deployment profile. - Surfaces architectural friction points, such as Gemma 4 attention head dimension alignment issues on specific GPU architectures like the RTX 6000.

[10:52](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=652s) Kernel Optimization and Day-Zero Support with the Autoresearcher

Adapting model serving across hardware generations exposes deep low-level friction. When transitioning optimizations originally tailored for NVIDIA Hopper architectures over to newer Blackwell chips, the underlying GPU kernels must be completely rewritten and transformed. Rather than forcing human engineers to spend weeks diagnosing failures, Simplismart's autoresearcher captures these architectural idiosyncrasies into a cumulative knowledge base. When an agent tests a new serving setup on Blackwell, it never repeats past trials; it instantly applies previously documented kernel adaptations, running multiple parallel investigations to determine the optimal configuration at record speed.

This institutionalized learning loop enabled true "day zero support" for the Gemma 4 endpoint. Because the system pre-computed potential hardware failure modes and paired them with the right GPU configurations, the team bypassed the painful experimentation cycles that routinely stall enterprise roadmaps. While early model onboarding previously paralyzed engineering teams for up to six months, industry benchmarks have compressed that cycle to one to three months. Even so, Ansh asks why any organization would settle for months of waiting if automated intelligence can deliver production-ready deployment on day zero. For teams wanting deeper technical dives into these internal agent loops, he points attendees to Simplismart's conference booth (booth 1252).

- Kernel transforms between architectures (such as Hopper to Blackwell) are retained by the autoresearcher agent memory, eliminating redundant trial-and-error experiments. - Automated configuration search compresses the historical 6-month deployment latency (and current 1–3 month industry average) down to day-zero availability.

[12:17](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=737s) Shadow-Load Testing and Closing the Production Gap

Selecting the right configuration is only half the battle; teams must still resolve critical compute procurement strategies. Companies rarely know in advance which specific GPU to select, the precise node count required, or the commercial commitments to negotiate with cloud providers—whether to commit to reserved instances or stay on flexible on-demand tiers. A raw card-level price comparison often leads architects astray: a GPU instance that is twice as expensive may deliver 5x higher throughput, yielding a substantially lower total cost of ownership per token.

To bridge synthetic lab assumptions and production reliability, Simplismart takes candidate configurations, provisions them with auto-scaling headroom, and subjects them to mirrored "shadow load" generated directly from the customer's live traffic on closed-source APIs. Ansh emphasizes that standard synthetic benchmarks completely fail to model real-world usage because they average out variance and ignore unpredictable traffic burstiness. Simplismart learned this lesson the hard way through mistakes made during their first two years in business, discovering that test-bench figures regularly collapsed under customer load. Under shadow testing, actual traffic is mirrored, replayed, and measured against expectations. If performance degrades or latency spikes, those production traces are fed back into the autoresearcher to generate refined parameters until benchmark and real-world numbers converge. Ansh estimates that at least 80% of enterprise teams omit this crucial step, relying naively on benchmark stats only to face severe operational failures after deploying to production.

```mermaid flowchart TD accTitle: Shadow Load and Autoresearcher Optimization Loop subgraph S1["1. Search & Generation"] AR["Autoresearcher Agents"] --> CFG["Candidate Configuration"] end subgraph S2["2. Mirrored Shadow Testing"] CFG --> ENDP["Mirrored Scalable Endpoint"] TRAF["Live Production Closed API"] -->|Mirror & Replay Traffic| ENDP ENDP --> EVAL{"Does Performance Converge?"} end subgraph S3["3. Feedback & Convergence"] EVAL -->|No: Burst/Latency Gap| FEED["Feed Trace Learnings"] FEED --> AR EVAL -->|Yes: Metrics Hold| PROD["Promote to Production"] end ```

- More than 80% of engineering teams stop at static benchmarks, failing to validate endpoints against live traffic bursts and non-uniform query distributions. - Evaluating multi-node deployments on a price-performance ratio regularly reveals that premium hardware with a 2x higher lease cost can yield a 5x net performance dividend. - Real-time trace replays from closed-model workloads allow teams to test on-demand versus reserved procurement needs before locking into vendor contracts.

[15:23](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=923s) The Breakeven Math: Identifying the TCO Cutoff Point

Deciding to switch from proprietary endpoints to self-hosted open-weight weights ultimately reduces to a clear mathematical threshold: calculating the exact transaction volume where open-source hosting costs drop below proprietary API bills. Closed-source APIs hold an enormous economic advantage at near-zero volumes because they require no minimum financial commitment. An application processing just one query per day costs fractions of a cent on a commercial API, whereas provisioning dedicated GPUs, warming weights into VRAM, and maintaining host nodes would incur immense wasted spend.

Determining when to switch requires identifying the exact volume cutoff point where dedicated infrastructure pays for itself. For automated voice applications, Simplismart observed that processing roughly 50,000 voice minutes per day through an agent—regardless of instantaneous concurrency profiles—serves as a reliable financial breakeven threshold to justify migrating onto open-weight models. While engineering teams also unlock lower end-to-end latency and comprehensive control over their software stack, the financial ROI stands on its own at that scale. Simplismart has formalized this analysis internally across roughly 18 distinct enterprise workload archetypes to map out predictable cutoff points.

- Closed APIs win decisively on sparse workloads: warming up dedicated GPUs for single-digit queries daily costs far more than paying pay-as-you-go per-token API rates. - For voice bot applications, approximately 50,000 minutes processed per day marks the empirical tipping point where self-hosting open-weight models yields significant net cost savings. - Simplismart maintains verified TCO threshold profiles across 18 specialized enterprise workload categories.

[17:07](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=1027s) Real-World Case Studies and Intelligent Model Routing

Organizations navigating inference deployments generally weigh three operating strategies: consuming commercial closed APIs, tackling the complexities of pure DIY self-hosting, or deploying through managed optimization platforms like Simplismart. In real-world enterprise deployments, these architectures reveal unexpected technical hurdles. When helping Asia's largest cloud telephony platform build out their proprietary voice product using Gemma 4 31B, Simplismart uncovered a subtle "thought leakage" bug during a month-long trial. The root cause traced back to the vLLM parser incorrectly interpreting tool calls, degrading tool execution accuracy until fixed.

In developer toolchains, enterprises are actively replacing frontier models like Claude with GLM 5.2 to power production-grade software engineering agents. However, the prevailing industry trend is not a winner-take-all model substitution. Mature organizations implement intelligent routing architectures that evaluate incoming queries on the fly. Lightweight or standard tasks are steered to high-throughput, self-hosted open-weight instances, while rare, highly complex edge cases route outward to closed proprietary APIs. Running open and closed systems in tandem guarantees maximum price-performance efficiency, delivering the lowest aggregate TCO across the enterprise portfolio.

- **Cloud Telephony Case Study**: Scaled voice automation on Gemma 4 31B, uncovering and debugging a tool-calling degradation and reasoning thought-leakage issue in the vLLM parser. - **Coding Agents Case Study**: Successfully deployed GLM 5.2 into production environments as a direct, cost-effective substitute for frontier models like Claude. - **Dynamic Routing**: Frontier enterprise deployments rely on hybrid architectures, dispatching queries dynamically between open-weight endpoints and proprietary frontier APIs to balance latency, cost, and output quality.

## Notable quotes > [00:04](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=4s) The primary catalyst driving enterprise interest in Total Cost of Ownership (TCO) is API bill shock. — Ansh Singh

> [01:26](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=86s) Moving to open-weight models allows enterprises to permanently eliminate vendor lock-in and 'own their intelligence' without external deprecation mandates. — Ansh Singh

> [04:55](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=295s) Because Gemma 4 uses a non-standard chat template format, its internal processing monologue—the step-by-step thinking tokens generated before the final response—was being returned directly to users. — Ansh Singh

> [10:52](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=652s) When an agent tests a new serving setup on Blackwell, it never repeats past trials; it instantly applies previously documented kernel adaptations, running multiple parallel investigations to determine the optimal configuration at record speed. — Ansh Singh

> [12:17](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=737s) A raw card-level price comparison often leads architects astray: a GPU instance that is twice as expensive may deliver 5x higher throughput, yielding a substantially lower total cost of ownership per token. — Ansh Singh

> [12:17](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=737s) standard synthetic benchmarks completely fail to model real-world usage because they average out variance and ignore unpredictable traffic burstiness. — Ansh Singh

> [15:23](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=923s) Deciding to switch from proprietary endpoints to self-hosted open-weight weights ultimately reduces to a clear mathematical threshold: calculating the exact transaction volume where open-source hosting costs drop below proprietary API bills. — Ansh Singh

> [15:23](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=923s) For automated voice applications, Simplismart observed that processing roughly 50,000 voice minutes per day through an agent—regardless of instantaneous concurrency profiles—serves as a reliable financial breakeven threshold to justify migrating onto open-weight models. — Ansh Singh

> [17:07](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=1027s) Running open and closed systems in tandem guarantees maximum price-performance efficiency, delivering the lowest aggregate TCO across the enterprise portfolio. — Ansh Singh

## Mentioned Ansh Singh, Simplismart, OpenAI, Anthropic, Uber, Gemma 4, Gemma 4 31B, GLM 5.2, Kimi K3, Megatron, Neotron, vLLM, SGLang, TensorRT-LLM, Vajra, LMDeploy, Andrej Karpathy, NVIDIA Hopper, NVIDIA Blackwell, NVIDIA RTX 6000 Ada Generation, Claude

## Video description Ansh Singh - Chief of Staff, Simplismart

Open-weight models have closed the performance gap. GLM 5.2, Gemma 4, Kimi K3 and others now hold up against closed frontier alternatives on real benchmarks. What's left unanswered is cost: what it actually takes to run these models in production, at your volume, with your team maintaining them. Most comparisons stop at GPU cost versus API cost, which misses the real picture. This session walks through the six stages that determine true TCO: model choice, configuration search, autoresearcher, shadow-load testing, and ongoing optimization, and shows the breakeven math behind each one, where self-hosting wins and where it doesn't yet.

[Source](https://www.youtube.com/watch?v=iFwKyrk3bHo)

中文简报

Simplismart自动化开源权重模型服务,削减闭源AI成本 当调用量超过经验阈值(如每日5万分钟语音)时,自托管开源权重模型相比专有AI更具成本优势,但若未基于镜像真实生产流量验证配置,部署往往会失败。 尽管Gemma 4和GLM 5.2等开源权重架构在能力上已能匹敌闭源前沿API,但推动企业加速迁移的更主要因素是高昂的API账单冲击以及供应商服务下线计划带来的运营风险。在多样化的软硬件运行时中寻找最优部署配置是一个庞大的组合难题,Simplismart利用自主Agent研究器(autoresearcher)来解决该挑战,从而实现开箱即用。该框架强调利用来自真实生产流量的镜像影子负载测试、而非合成基准测试来验证候选配置,以应对现实中的突发流量。最终,自托管在达到特定工作负载临界点(例如每天50,000分钟语音)时可实现收支平衡,而成熟企业正在开源权重节点与闭源前沿API之间采用混合路由策略。 API 账单激增与供应商“停用条款”(Sunset Clause)促使企业评估开源权重模型(如 Gemma 4、GLM 5.2、Kimi K3),以消除闭源接口被强制弃用的业务风险并掌握模型控制权。 (1:26) Simplismart 研发了基于智能体的自动研究系统(Autoresearcher),通过并行测试 250 多种软硬件组合并沉淀跨代内核适配知识,将原本长达数月的模型上线流程压缩至零日(Day Zero)。 (8:38) 超过 80% 的工程团队因忽略镜像真实流量的影子负载测试(Shadow-load Testing),导致基于静态基准的部署在面对不可预测的业务流量突发时遭遇严重故障。 (12:17) 开源自托管拥有明确的 TCO 拐点,例如语音应用在每日处理约 50,000 分钟时显现显著成本效益;前沿企业已开始采用将开源模型高吞吐与闭源模型复杂推理相结合的动态智能路由架构。 (15:23)

Reading summary

According to Simplismart's Ansh Singh, migrating enterprise workloads from proprietary closed APIs to self-hosted open-weight models eliminates sudden vendor deprecations and spiraling API costs, but realizing lower total cost of ownership requires resolving non-trivial parser quirks, configuration bottlenecks, and production traffic burstiness. Economic Breakevens and API Deprecation Risks (1:26) Enterprise evaluation of open-weight models is primarily spurred by API bill shock—exemplified by an anecdote of Uber consuming an entire annual AI budget in a single month—alongside the operational threat of vendor "sunset clauses." Closed API providers routinely enforce deprecation schedules as short as six months when releasing new frontier models, forcing disruptive engineering migrations. While open-weight options such as Gemma 4, GLM 5.2, and Kimi K3 have narrowed the performance deficit across language and reasoning benchmarks, self-hosting is not universally economical. Singh points out that commercial pay-as-you-go APIs hold a decisive economic advantage for sparse or exploratory workloads where warming and maintaining dedicated GPU instances produces wasteful idle spend. Based on Simplismart's analysis across 18 enterprise workload archetypes, open-weight self-hosting achieves a positive return on investment only after crossing clear volume thresholds, such as processing approximately 50,000 voice minutes per day in conversational voice applications. Resolving Model Formatting and Parser Vulnerabilities (4:55) Deploying open-weight architectures in production requires resolving low-level model idiosyncrasies that standard serving stacks fail to process out of the box. In enterprise rollouts of Gemma 4, Simplismart detected a severe "thought leakage" flaw where the model's internal chain-of-thought tokens bled directly into customer-facing outputs. The issue stemmed from Gemma 4's non-standard chat template, which the native vLLM parser failed to parse and strip, simultaneously causing tool-calling degradation during trials with a large Asian cloud telephony provider. To remediate the vulnerability, Simplismart rewrote the vLLM parser implementation from scratch and instituted an explicit "thinking budget" to cap the generation of internal reasoning tokens. Singh notes that open-weight adoption consistently demands custom engineering of this type to adapt proprietary runtime engines and prevent silent interface failures. Automating Inference Optimization with Agentic Autoresearchers (8:38) Finding an optimal deployment configuration requires navigating a combinatorial matrix of runtime frameworks (including vLLM, SGLang, and TensorRT-LLM), quantization approaches, tensor parallelism settings, and GPU architectures. Historically, engineering teams relied on manual trial-and-error profiling, stretching onboarding timelines from one to six months. To eliminate this bottleneck, Simplismart implemented an automated benchmarking framework inspired by Andrej Karpathy's autoresearcher paradigm. The system utilizes autonomous agents that ingest runtime documentation and known bug databases, generate optimization hypotheses, and log empirical latency and throughput metrics to a shared ledger. By profiling roughly 250 candidate configurations per model and running multi-objective linear programming searches, the platform identifies ideal configurations and flags architectural mismatches, such as Gemma 4 attention head dimension misalignments on RTX 6000 Ada GPUs or the need for kernel transforms when transitioning from Hopper to Blackwell chips. Singh claims this continuous learning loop compresses deployment preparation down to day-zero readiness. Validating Live Traffic and Hybrid Routing (12:17) Singh cautions that over 80% of enterprise teams rely strictly on static synthetic benchmarks that average out variance and collapse under real-world traffic bursts. To bridge the laboratory-to-production gap, Simplismart provisions auto-scaling candidate endpoints and subjects them to "shadow load" mirrored directly from live closed-API production traffic, feeding failure traces back into the optimization loop until performance metrics converge. Furthermore, procurement calculations show that premium GPU instances with double the hourly lease rate can deliver fivefold throughput gains, resulting in lower net cost per token. Rather than executing total model substitutions, advanced enterprise architectures increasingly implement dynamic routing. Workload dispatchers direct standard, high-volume tasks to cost-effective self-hosted open-weight instances—such as replacing Claude with GLM 5.2 for coding agents—while selectively routing complex edge cases outward to proprietary frontier APIs, minimizing aggregate enterprise expenditure. While self-hosting open-weight models grants insulation from vendor lock-in and high API bills, achieving a favorable total cost of ownership depends entirely on clearing strict volume breakevens and validating configurations against live traffic patterns rather than synthetic benchmarks.

精炼阅读摘要

Simplismart 幕僚长 Ansh Singh 提出,面对商业 API 账单激增和模型下线条款风险,企业转向开源权重模型需系统性权衡总拥有成本(TCO),并通过自动化配置搜索与影子负载测试解决底层部署摩擦。 API账单压力与下线条款驱动转向开源 (0:04) 企业从 OpenAI 或 Anthropic 等闭源 API 转向自建开源模型的核心催化剂是高昂的调用账单。例如,业内曾出现 Uber 在单月内耗尽全年 AI 预算的案例,这迫使财务与工程团队寻求成本可预测性。与此同时,Gemma 4、GLM 5.2、Kimi K3 和 Megatron/Neotron 等开源模型在基准测试上已逐步追平闭源前沿模型,并在区域语言、语音低延迟以及代码和复杂推理领域得到实际采用。除了成本考量,商业模型提供商的“下线条款(sunset clause)”往往要求企业在发布新模型后六个月内完成迁移,严重干扰长期稳定的企业级工作流。企业转向开源权重能够摆脱供应商锁定,完全掌控自身的基础设施生命周期。 模型专有特性引发的底层运行时缺陷 (4:55) 开源模型在进入生产环节时常伴随独特的结构性问题。Simplismart 在企业环境中部署 Gemma 4 时发现,其非标准对话模板导致内部思维链标记(thought tokens)直接泄露到了最终用户界面。经排查,原生 vLLM 解析器无法正确解析并过滤这些内部推理标签,甚至连带影响了工具调用的准确率。Simplismart 团队通过重写 vLLM 解析器底层代码,并为内部推理设置显式思维预算上限,既消除了思维泄露隐患,又提升了端到端响应生成速度。这也表明,开源模型的实际落地必须投入专门精力处理格式漂移和框架适配等边界问题。 基于智能体的自动化基准与内核寻优 (8:38) 针对单一模型在多维度部署参数(如硬件选型、vLLM/SGLang/TensorRT-LLM/LMDeploy 运行时引擎、量化方案、张量并行度及推测解码策略)上的庞大搜索空间,Simplismart 构建了一套受 Andrej Karpathy 启发的高自主性研究智能体(Autoresearcher)。系统自动吸收外部代码库、引擎文档与已知错误知识库,生成参数假设,驱动并行基准测试,并将延迟与吞吐数据沉淀到共享账本。在积累约 250 种可用组合后,利用线性规划算法求解多目标约束下的最佳配置方案,从而主动规避了如 Gemma 4 注意力头维度与 NVIDIA RTX 6000 Ada 或 Blackwell 架构映射不兼容等隐蔽故障。该流程还记录了从 Hopper 跨代迁移到 Blackwell 所需的内核转换经验,将业界普遍需要 1 至 3 个月的部署优化周期压缩至“首日上线(day-zero)”。 影子负载验证与硬件性价比权衡 (12:17) Singh 强调,超过 80% 的企业团队仅依靠静态合成基准测试评估模型性能,这种做法因忽视了真实请求的突发性与流量方差,极易导致生产环境崩溃。Simplismart 的方法是将通过自主搜索获得的候选配置接入客户现有商业 API 的真实生产流量镜像(Shadow Load)中进行回放压测。若出现延迟毛刺或性能降级,追踪记录将实时反馈至 Autoresearcher 重新校准参数,直至基准与真实表现收敛。在硬件采购决策上,更昂贵的硬件实例由于能带来不成比例的高吞吐(如租赁成本高 2 倍但净性能高 5 倍),反而能够显著摊薄单 Token 的总拥有成本,企业据此也能更精准地评估预留实例与按需计费的采购组合。 TCO盈亏平衡阈值与混合动态路由架构 (15:23) 自托管开源模型与闭源 API 之间的决策归结为明确的业务量盈亏平衡点。在极低调用量场景下,闭源 API 因无最低消费限制而占据绝对成本优势,而自建架构维护预热 GPU 和节点成本巨大。根据 Simplismart 对 18 种工作负载原型的梳理,以自动化语音机器人为例,当处理量达到每日约 50,000 分钟时,自建开源权重模型在降低延迟和保障控制权的同时,经济收益开始显著超过商业 API。在实际落地中,先进企业往往不会采取一刀切的完全替代策略,而是搭建动态路由体系:将日常高通量任务分配给如 GLM 5.2 等高性价比开源实例,而将罕见的极端长尾复杂任务外溢至专有闭源模型,实现全周期综合 TCO 最小化。 开源权重模型的引入不仅是模型能力的替换,更是一套结合内核优化、动态寻优与影子负载测试的系统工程。虽然大规模用例可验证其经济效益,但在低频场景下商业 API 仍更具成本弹性,如何平衡自建基础设施的固定开销与混合路由的运维复杂度仍是企业必须权衡的核心问题。

Detailed notes — zh

## Background 该视频由 YouTube 频道 Ai4 于 2026 年 8 月 18 日发布,主讲人为推理服务提供商 Simplismart 的幕僚长 Ansh Singh。简介指出,以 GLM 5.2、Gemma 4 和 Kimi K3 为代表的开源权重模型在基准表现上已能匹敌闭源前沿模型,但企业生产部署的真实成本往往被忽视;本场演讲系统拆解了决定开源 TCO 的关键阶段与盈亏平衡测算体系。 ## TL;DR 随着闭源 API 账单激增和供应商“日落条款”带来的频繁重构风险,越来越多企业倾向于将开源权重模型落地至私有算力环境。演讲深入剖析了开源部署必须跨越的模型层缺陷、配置搜索与算力策略三大鸿沟,并介绍了 Simplismart 借助 AutoResearcher 智能体自动化搜索软硬件配置,以及利用“影子负载”镜像真实流量做闭环验证的工程方案。最后,Singh 结合 AI 语音与编程等具体场景给出了开源自建与闭源调用的 TCO 盈亏平衡阈值,强调通过智能混合路由实现降本增效的最优架构。 ## Atmosphere & style 整场演讲呈现出浓厚而扎实的企业级一线工程实战风格,语气务实、风趣且直击财务与技术痛点。主讲人毫不避讳团队过往在手工调优和纸面 Benchmark 上踩过的深坑,以剖析“思维链泄露”和跨 GPU 架构兼容等生动教训,营造出一种与工程师促膝复盘的技术透明感。分享节奏由点及面、逻辑严密,让听众在清晰的算力账本推演中真切体会到从“经验玄学”迈向“确定性工程落地”的踏实感。 ## Key takeaways - [00:04](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=4s) 随着 Gemma 4、GLM 5.2 和 Kimi 等新一代开源权重模型在基准和实际业务上逼近前沿闭源模型,加之 API 账单超支压力,自建开源模型成为企业控制 TCO 的关键选择。 - [02:10](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=130s) 逃离闭源 API 的核心驱动力除算力成本外,还在于供应商模型强行下线的“日落条款”(Sunset Clause),自建模型可实现企业底层智能的自主可控。 - [03:43](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=223s) 开源模型在工程落地上面临三大鸿沟:模型层专属缺陷(如 Chat Template 解析与思维泄露)、单机及集群性能与扩展性瓶颈、算力采购与调度策略优化。 - [03:43](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=223s) 开源模型工程落地需经历标准化 TCO 方法论闭环:模型选型、自动化配置搜索、影子负载测试、算力策略制定与持续成本优化。 - [04:55](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=295s) 开源模型普遍存在特定工程 Bug(例如 Gemma 4 的内部思维链泄露),需通过重写底层推理引擎解析器并配置 Token 思考预算来彻底解决并加速生成。 - [06:31](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=391s) 推理配置搜索涉及硬件、推理框架、底层内核、量化方案、并行模式与解码加速等多维参数空间,纯人工调试效率极低且缺乏确定性。 - [08:38](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=518s) 采用多 Agent 协同的 AutoResearcher 系统,能够自动化聚合多方知识库并执行基准测试,通过线性规划算法将海量配置空间快速收敛至最优解。 - [10:52](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=652s) 自动化调优与历史内核沉淀不仅能解决跨架构硬件适配(如 Hopper 到 Blackwell),还能将企业上线新模型的周期从数月缩短至发布当日的“Day 0”就绪。 - [12:17](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=737s) 静态基准测试无法模拟真实生产流量的突发性与方差,企业必须通过镜像影子负载(Shadow Load)回放测试来闭环调优,避免上线后的性能滑坡。 - [15:23](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=923s) 自建开源模型需要承担 GPU 预热与待机底噪成本,必须结合业务场景计算盈亏平衡拐点(如语音交互每天超过 50,000 分钟自建才具财务优势)。 - [17:07](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=1027s) 企业实现全栈最佳 TCO 的终极策略是构建智能混合路由:高吞吐低延迟常规负载走自建开源模型,低频极端复杂的长尾任务按需路由至闭源前沿 API。 ## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=4s) 开源权重的兴起与企业面临的成本困境 作为推理服务提供商 Simplismart 的幕僚长(Chief of Staff),Ansh Singh 指出,公司在过去 5 年的深耕中积累了大量专注于企业级(而非仅针对 AI 初创公司)的实践洞见。对于早已习惯调用闭源 API 的传统企业而言,将生产级推理系统迁移并部署至企业内部的私有算力环境中是一场漫长且充满变量的硬仗。 这套向开源权重迁移的 TCO(总体拥有成本)框架,正是为了解决当下企业面临的现实财务压力。Singh 幽默地提到,如果你的 OpenAI 或 Anthropic 账单已经开始频繁出现在财务评审会议上——比如前阵子 Uber 被爆出“仅在一个月内就烧光了全年的 AI 预算”——那么探索开源权重模型便成为了势在必行的选择。 自 2022 年 ChatGPT 问世以来,从 OpenAI 的各代模型到 Claude 席卷市场,闭源模型长期占据主导;但过去一年中,开源权重模型在生产可用性上实现了质的飞跃。早期的 LLaMA 系列在生产落地中仍有局限,而如今以 Gemma 4、GLM、Kimi 以及 Neotron 等为代表的新一代开源模型,已经能够胜任大量原本只能依赖闭源模型的复杂业务场景。 - 目标受众:模型 API 账单超出财务预期、急需评估自建开源推理 TCO 的企业技术与业务决策者。 - 市场转折点:开源权重模型在基准测试与真实业务表现上已全面逼近闭源前沿模型,但在生产落地上面临全新的工程挑战。 --- ### [02:10](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=130s) 开源权重的应用格局与闭源模型的“日落条款”危机 在开源模型的实际采用上,全球市场呈现出清晰的场景分化。在欧洲和亚洲,Gemma 4 凭借轻量化与高训练质量的特性迅速普及,尤其在多语种本地化支持以及低延迟语音机器人(Voice Bots)等对响应速度极度敏感的场景中表现亮眼;而在高难度复杂推理和代码生成任务中,GLM 与 Kimi 系列则成为了行业焦点。 然而,企业逃离闭源模型的核心驱动力不仅仅是算力成本与扩容瓶颈,更在于越来越令人头疼的“日落条款”(Sunset Clause)。企业往往花费数月围绕 Claude 或 Gemini API 构建起复杂的业务工作流,但在短短 6 个月后,模型供应商就可能发布新模型并强制执行旧模型的下线弃用计划。这种被迫频繁重构系统的被动局面,促使越来越多的企业下定决心“掌握自身智能的控制权(Own their intelligence)”,彻底摆脱供应商锁定的被动节奏。 - Gemma 4 核心优势区:欧洲及亚洲的多语言支持、超轻量模型矩阵、极低延迟的语音交互 Agent。 - GLM / Kimi 优势区:复杂逻辑推理、深度代码生成。 - 迁移核心动力:避免供应商因模型迭代弃用(Sunset Schedule)带来的强迫迁移风险,实现底层模型自主可控。 --- ### [03:43](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=223s) 开源落地的三大鸿沟与总体 TCO 优化框架 将开源模型推向生产环境并非易事,企业普遍会遭遇三大核心鸿沟: 1. **模型层面的细微缺陷(Model-level gaps)**:开源模型并非开箱即用,不同模型甚至同系列的不同尺寸,都存在非常独特而棘手的底层 Bug。 2. **性能与扩展性(Performance & scaling)**:模型是否能在单 GPU 或计算节点上满足既定的吞吐量、延迟 SLA 以及高并发 RPS 要求。 3. **算力策略(Compute strategy)**:在规模化扩展时,硬件选型、云厂商商务谈判策略以及 Spot 竞价实例的利用效率。 针对这些痛点,Simplismart 提炼出了一套标准化的 TCO 落地方法论:从**模型选型**出发,经过自动化的**配置搜索**,再通过**影子流量测试(Shadow-load testing)**验证算力策略,最终达成兼顾性能与 ROI 的成本最优解。 ```mermaid flowchart LR accTitle: 开源权重模型 TCO 优化全流程 accDescription: 展示从模型选型、配置搜索、影子负载测试到最终算力策略与TCO优化的端到端流程 subgraph Phase1["第一阶段:模型与环境"] A["模型选型<br/>(Model Choice)"] --> B["配置参数搜索<br/>(Config Search)"] end subgraph Phase2["第二阶段:验证与执行"] B --> C["影子负载测试<br/>(Shadow Load)"] C --> D["算力策略与调度<br/>(Compute Strategy)"] end D --> E["TCO 成本最优化<br/>(TCO Optimization)"] ``` --- ### [04:55](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=295s) 模型层缺陷实战:以 Gemma 4 的“思考泄露”为例 在模型选型中,除了评估基础的输出质量、基准跑分、SLA 保证及硬件承载成本外,更严峻的挑战在于修复模型本身的特定缺陷。Singh 分享了团队将 Gemma 4 推向生产环境时踩过的一个典型深坑: 由于 Gemma 4 的 Chat Template(对话模板)解析格式存在特殊性,导致模型的内部思维链(Internal Monologues)与推理步骤被直接拼接并“泄露”到了最终的业务输出文本中。排查发现,原生 vLLM 解析器无法完美处理该格式。Simplismart 团队为此从零重写了底层解析器,并引入了“思考预算机制(Thinking Budget)”,通过主动限制思考 Token 的数量,既彻底解决了思维泄露问题,又大幅提升了端到端的输出生成速度。 - 警示意义:每个开源模型在工程化落地时都会遭遇类似的专属底层 Bug,团队不应因此气馁,这属于开源落地中的必然工程代价。 - 关键工程改进:重构定制化推理引擎解析器、配置 Token 思考预算以加速生成并阻断未过滤的思维链泄露。 --- ### [06:31](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=391s) 配置搜索的复杂性与手工调优的痛苦陷阱 在确定模型后,最核心的工程挑战是“配置搜索(Configuration Search)”。配置绝非仅指 GPU 硬件型号,而是软硬件深度绑定的超庞大参数空间: | 维度 | 可选技术栈与参数变量 | |:--- |:--- | | **硬件层 (Hardware)** | NVIDIA Blackwell 架构、RTX 6000 系列、H100/A100 等 | | **推理框架 (Framework)** | vLLM、SGLang、TensorRT-LLM、Vajra、LMDeploy 等 | | **底层内核 (Attention Backend)** | FlashAttention、FlashInfer、PagedAttention 等 | | **量化方案 (Quantization)** | FP8、AWQ、GPTQ、INT4/INT8 等 | | **并行策略 (Parallelism)** | 张量并行(Tensor Parallelism, TP)、流水线并行(PP)等 | | **解码加速 (Decoding)** | 推测解码(Speculative Decoding)及对应的 Draft Model 选型 | 相同的模型在不同的配置组合下,会产生完全不同的成本与性能权衡曲线。例如,同样是部署 Gemma 4 31B: - **文档解析批处理场景**:对延迟不敏感,追求极低成本与高吞吐量,需配置极致量化与高并发批处理参数; - **语音对话场景**:对第一 Token 延迟(TTFT)与端到端延迟 SLA 极其严苛,必须牺牲部分单 Token 成本以换取极致响应速度。 Simplismart 在创业前 3 年完全依赖人工调试:工程师手动分析工作负载(输入/输出 Token 分布、KV 缓存命中率、流量请求模式),然后逐个尝试参数组合。Singh 坦言这种方式“毫无确定性,完全像是在碰运气”,既无法预估交付排期,也难以保证找到最优配置。 --- ### [08:38](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=518s) 基于 AutoResearcher 的自动化基准测试与配置搜索 为了彻底终结低效的手工试错,Simplismart 受 Andrej Karpathy 相关研究的启发,自主研发了名为 **AutoResearcher** 的自动化 Agent 系统。该系统会自动聚合四类外部与内部知识源: 1. **开源代码仓库**:跟踪社区最新的推理优化实践; 2. **内部私有工程文档**:沉淀团队历史调试经验; 3. **主流开源框架官方文档**:持续解析 vLLM、SGLang、TensorRT-LLM、Vajra、LMDeploy 等框架的技术细节; 4. **已知推理架构故障库**:预置已排查出的底层冲突与性能陷阱,防止 Agent 陷入死循环。 系统启动后,会调度多个并行 Agent 生成配置假设并执行基准测试,测试数据会实时同步发布至外部基准测试服务账本(Benchmarking Ledgers)中。多 Agent 之间通过共享账本协同学习,迅速将探索空间收敛至约 250 种高潜力配置候选集,随后直接运行线性规划算法(Linear Programming Search)精准锁定契合业务 SLA 与成本约束的最优解。 Singh 举例说明了这种自动化沉淀的必要性:在底层适配中,Gemma 4 的 Head Dimension(注意力头维度)存在与 NVIDIA Blackwell 架构无法天然对齐的底层硬件兼容问题,导致在 RTX 6000 Ada/Pro 系列显卡上的优化极其复杂。这类极为冷门的硬件特性壁垒,唯有依靠自动化知识摄取与测试流水线,才能在短时间内完成攻坚。 - 自动化核心价值:将原本耗时数周且不可控的人工调优,转化为确定性的多 Agent 并行基准测试与线性规划求解。 - 架构兼容性案例:自动化系统能快速捕捉如“Gemma 4 头维度无法直接适配 Blackwell/RTX 6000 Pro”等极端底层架构冲突,并给出规避或优化方案。 ### [10:52](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=652s) 跨架构自动化调优与 Gemma 4 的“首日就绪”支持 在异构硬件之间迁移大模型服务时,底层算子优化的平移往往伴随着巨大挑战。Simplismart 在早期实践中发现,很多此前针对英伟达 Hopper 架构深度调优的 GPU 内核,必须经过重写和转换才能适配全新的 Blackwell 架构。如果完全依赖人工摸索,工程师团队每次遇到新硬件都要重新做一整套基准测试;而在 Auto Researcher(自动化研究智能体)体系下,由于过往的踩坑和内核转换经验已经被系统化沉淀为知识库,多个 Agent 可以并行运行,直接在新架构上快速锁定最优配置,无需重复试错。 这种沉淀让团队能够在最新模型发布时实现“Day 0”(首日就绪)上线支持。以 Gemma 4 为例,团队在模型推出当天就能够直接交付高性能 Endpoint,因为系统提前预判了潜在的兼容性问题并准备好了跨 GPU 架构的配置组合。在传统企业团队中,评估并跑通一个新开源模型的生产级部署往往需要 1 到 3 个月,早期甚至会拖延 6 个月之久;而通过自动化调优消除实验开销后,企业在第一天就能直接上线经过验证的生产配置。 - **内核架构转换**:从 Hopper 到 Blackwell 等新一代硬件,底层算子内核必须重新调优,自动化系统让这一探索过程免于人工重复实验。 - **上线周期对比**:传统工程团队需要 1 至 3 个月(早先长达 6 个月)才能完成新模型的生产配置摸索,而自动化研究框架能实现 Day 0 零等待上线。 --- ### [12:17](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=737s) 影子负载测试:为什么纯基准测试无法应对真实生产环境 选择自建开源模型算力时,企业经常面临三大算力决策盲区:选用哪款 GPU、需要多少张卡/多节点集群,以及与云厂商敲定何种商务条款(按需实例还是预留实例)。评估硬件不能只看单价,更要看性价比与总拥有成本(TCO)——例如某款高端 GPU 价格贵了 2 倍,但吞吐性能提升了 5 倍,整体算力账目反而更划算。为了在没有盲目试错的情况下评估真实表现,最有效的方案是借助“影子负载”(Shadow Load)进行流量镜像回放。 ```mermaid flowchart TD accTitle: 影子负载与 Auto Researcher 迭代闭环流程 subgraph S1["生产流量捕获与镜像"] A["闭源 API 线上生产流量"] --> B["流量镜像与回放系统<br/>(Mirrored Shadow Traffic)"] end subgraph S2["影子端点测试"] B --> C["开源模型影子端点<br/>(无限伸缩部署)"] C --> D["采集真实生产指标<br/>(突发流量/延迟/方差)"] end subgraph S3["闭环调优"] D --> E{"与基准测试比对<br/>指标是否收敛?"} E -- "否(存在性能缺口)" --> F["反馈至 Auto Researcher<br/>重新搜索生成配置"] F --> C E -- "是(满足生产要求)" --> G["正式推向生产环境上线"] end ``` 许多企业在自建模型时容易陷入“纸面 Benchmark 陷阱”。基准测试通常只测量平均值,完全忽略了真实业务流量中的“突发性”(Burstiness)和波动方差。Simplismart 在前两年的创业中也踩过同样的坑,误以为实验室基准表现良好就能满足客户,结果上线后立刻在真实负载下崩溃。因此,团队将 Auto Researcher 输出的配置部署到具备弹性伸缩能力的测试端点上,引入线上生产系统的全量镜像流量进行重放与测量。如果指标与预期不符,就把运行数据重新喂回 Auto Researcher 继续微调,直到影子环境的表现与理论值收敛。目前至少有 80% 的工程团队直接跳过了影子测试这一步,导致上线后出现严重的性能滑坡。 - **生产流量异质性**:静态基准测试只反映平均负载,无法模拟真实生产中复杂的流量毛刺与请求长度方差。 - **闭环收敛调优**:通过镜像重放生产流量,若端点指标不达标,则将数据持续回传给智能体迭代配置,直至真实表现达到上线标准。 - **行业现状**:市场上约 80% 的自建模型团队止步于基准跑分,未建立影子负载验证机制,导致生产环境频繁遭遇稳定性问题。 --- ### [15:23](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=923s) 寻找拐点:开源模型与闭源 API 的 TCO 盈亏平衡计算 完成配置和负载验证后,决策的核心就回到了商业盈亏平衡点(Cutoff Point)的计算。闭源商业 API 的最大优势在于“零起步门槛”——哪怕一天只有一次调用,也只需支付单次请求费用;而自建开源模型需要预热 GPU 实例、维持集群待机,若请求量极低,单次冷启动和闲置算力的成本将远高于直接调用闭源 API。因此,必须通过精确的模型与表格公式,计算出开源自建方案在何种请求规模和负载强度下才能实现 TCO 低于闭源方案。 以 AI 语音交互(Voice Bot)场景为例,业务中无论并发分布如何,只要每天处理的音频时长突破 50,000 分钟,自建开源权重模型在纯财务成本上就会显现出明显的拐点收益;此外,自建还能带来更低的端到端延迟以及对整套技术栈的完全控制权。Simplismart 内部梳理并归纳了约 18 种不同的核心应用场景,为每种场景都制定了精确的 TCO 盈亏平衡阈值模型。 | 评估维度 | 闭源商业 API (Closed API) | 自建开源模型 (Self-hosted Open Weight) | |:--- |:--- |:--- | | **启动门槛** | 无最低调用量要求,按 Token/请求计费 | 需承担 GPU 实例预热、节点待机与基础设施底噪成本 | | **低负载表现** | 极低业务量(如每天 1 次请求)下成本显著更低 | 闲置率高时单次请求摊销成本高昂 | | **规模效应** | 随用量线性增长,缺乏边际规模红利 | 突破特定吞吐拐点后,单位处理成本大幅下降 | | **典型拐点示例** | 语音业务 < 50,000 分钟/天建议使用闭源 API | 语音业务 ≥ 50,000 分钟/天自建 TCO 与延迟均优于闭源 | | **技术控制力** | 黑盒机制,难以精细控制算子、内核与推理延迟 | 拥有全栈控制权,可定制量化、显存与路由策略 | --- ### [17:07](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=1027s) 落地案例与智能混合路由策略 在企业实际落地中,纯靠单一模型包揽所有业务的做法正被淘汰。亚洲最大的云通讯平台(Cloud Telephony Platform)为了给其庞大的企业级客户群体推出专属 AI 语音产品,采用了 Gemma 4 31B 模型进行自建。在长达一个多月的落地攻坚中,团队排查出 Gemma 模型在工具调用(Tool Calling)中存在“思维泄漏”(Thought Leakage)的问题,最终定位到原因在于 VLM 解析器及其对工具调用格式的解析机制,并据此完成了定制化修复,确保了语音工具调用的准确度与实时性。 另一个典型案例是针对编程智能体(Coding Agents)将 GLM 5.2 成功推向生产环境,替代了昂贵的 Claude 等闭源专有模型。大型企业在追求最佳 TCO 时的共同策略是构建“智能路由系统”(Intelligent Routing System)——不盲目追求全盘自建或全盘闭源,而是由路由层动态识别任务复杂度与 SLA 要求: ```mermaid flowchart LR accTitle: 智能混合路由与 TCO 优化架构 Req["企业业务请求"] --> Router{"智能路由系统<br/>(Intelligent Routing)"} Router -- "高吞吐/标准化/语音/常规任务" --> Open["自建开源模型集群<br/>(如 Gemma 4 / GLM 5.2)"] Router -- "高复杂/低频/极端长尾推理" --> Closed["闭源商业 API<br/>(Frontier API)"] Open --> Resp["最优 TCO 与低延迟响应"] Closed --> Resp ``` 让开源模型承担高吞吐量、低延迟要求的基础负载,让闭源前沿模型处理长尾复杂推理,双轨并行协同运作,才能在整个企业层面实现兼顾性能与成本的最佳 TCO。 ## Notable quotes > [00:04](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=4s) 仅在一个月内就烧光了全年的 AI 预算 — Ansh Singh > [02:10](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=130s) 掌握自身智能的控制权(Own their intelligence) — Ansh Singh > [06:31](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=391s) 毫无确定性,完全像是在碰运气 — Ansh Singh > [04:55](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=295s) 每个开源模型在工程化落地时都会遭遇类似的专属底层 Bug,团队不应因此气馁,这属于开源落地中的必然工程代价 — Ansh Singh > [00:00](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=0s) 大多 comparisons 只看 GPU 成本与 API 成本,这漏掉了真实的全貌 — Ansh Singh > [12:17](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=737s) 静态基准测试只反映平均负载,无法模拟真实生产中复杂的流量毛刺与请求长度方差 — Ansh Singh > [12:17](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=737s) 市场上约 80% 的自建模型团队止步于基准跑分,未建立影子负载验证机制,导致生产环境频繁遭遇稳定性问题 — Ansh Singh > [15:23](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=923s) 只要每天处理的音频时长突破 50,000 分钟,自建开源权重模型在纯财务成本上就会显现出明显的拐点收益 — Ansh Singh > [17:07](https://www.youtube.com/watch?v=iFwKyrk3bHo&t=1027s) 让开源模型承担高吞吐量、低延迟要求的基础负载,让闭源前沿模型处理长尾复杂推理 — Ansh Singh ## Mentioned Ansh Singh, Simplismart, OpenAI, Anthropic, Uber, ChatGPT, Claude, Gemini, LLaMA, Gemma 4, GLM 5.2, Kimi K3, Neotron, NVIDIA Blackwell, NVIDIA Hopper, RTX 6000 Ada/Pro, H100, A100, vLLM, SGLang, TensorRT-LLM, Vajra, LMDeploy, FlashAttention, FlashInfer, PagedAttention, Andrej Karpathy, AutoResearcher ## Video description Ansh Singh - Chief of Staff, Simplismart Open-weight models have closed the performance gap. GLM 5.2, Gemma 4, Kimi K3 and others now hold up against closed frontier alternatives on real benchmarks. What's left unanswered is cost: what it actually takes to run these models in production, at your volume, with your team maintaining them. Most comparisons stop at GPU cost versus API cost, which misses the real picture. This session walks through the six stages that determine true TCO: model choice, configuration search, autoresearcher, shadow-load testing, and ongoing optimization, and shows the breakeven math behind each one, where self-hosting wins and where it doesn't yet. [Source](https://www.youtube.com/watch?v=iFwKyrk3bHo)

Source quotes

[0:04] Ansh Singh: 仅在一个月内就烧光了全年的 AI 预算 [2:10] Ansh Singh: 掌握自身智能的控制权(Own their intelligence) [6:31] Ansh Singh: 毫无确定性,完全像是在碰运气 [4:55] Ansh Singh: 每个开源模型在工程化落地时都会遭遇类似的专属底层 Bug,团队不应因此气馁,这属于开源落地中的必然工程代价 [0:00] Ansh Singh: 大多 comparisons 只看 GPU 成本与 API 成本,这漏掉了真实的全貌 [12:17] Ansh Singh: 静态基准测试只反映平均负载,无法模拟真实生产中复杂的流量毛刺与请求长度方差 [12:17] Ansh Singh: 市场上约 80% 的自建模型团队止步于基准跑分,未建立影子负载验证机制,导致生产环境频繁遭遇稳定性问题 [15:23] Ansh Singh: 只要每天处理的音频时长突破 50,000 分钟,自建开源权重模型在纯财务成本上就会显现出明显的拐点收益 [17:07] Ansh Singh: 让开源模型承担高吞吐量、低延迟要求的基础负载,让闭源前沿模型处理长尾复杂推理

Source quotes

[0:04] Ansh Singh: The primary catalyst driving enterprise interest in Total Cost of Ownership (TCO) is API bill shock. [1:26] Ansh Singh: Moving to open-weight models allows enterprises to permanently eliminate vendor lock-in and 'own their intelligence' without external deprecation mandates. [4:55] Ansh Singh: Because Gemma 4 uses a non-standard chat template format, its internal processing monologue—the step-by-step thinking tokens generated before the final response—was being returned directly to users. [10:52] Ansh Singh: When an agent tests a new serving setup on Blackwell, it never repeats past trials; it instantly applies previously documented kernel adaptations, running multiple parallel investigations to determine the optimal configuration at record speed. [12:17] Ansh Singh: A raw card-level price comparison often leads architects astray: a GPU instance that is twice as expensive may deliver 5x higher throughput, yielding a substantially lower total cost of ownership per token. [12:17] Ansh Singh: standard synthetic benchmarks completely fail to model real-world usage because they average out variance and ignore unpredictable traffic burstiness. [15:23] Ansh Singh: Deciding to switch from proprietary endpoints to self-hosted open-weight weights ultimately reduces to a clear mathematical threshold: calculating the exact transaction volume where open-source hosting costs drop below proprietary API bills. [15:23] Ansh Singh: For automated voice applications, Simplismart observed that processing roughly 50,000 voice minutes per day through an agent—regardless of instantaneous concurrency profiles—serves as a reliable financial breakeven threshold to justify migrating onto open-weight models. [17:07] Ansh Singh: Running open and closed systems in tandem guarantees maximum price-performance efficiency, delivering the lowest aggregate TCO across the enterprise portfolio.

Original transcript

[0:04] Uh hi guys, my name is An uh I work with  this company called Simply Smart. Uh [0:09] as any other company nowadays, we are an inference  provider, but we've been in about 5 years. I think [0:15] we have some insights that are very very relevant  for enterprises rather than AI growth startups. [0:21] uh because handling production inference systems  internally inside your own compute environments is [0:27] another challenge and especially when your org is  so used to dealing with closed source models. Uh [0:34] marking the shift from closed source to open  source is a long journey and there are a couple [0:39] of variables that you should definitely be aware  about and I'm going to cover those today and I [0:43] hope that'll be helpful. Perfect. So the talk goes  like uh TCO of going open weight it's a framework [0:48] and we've basically broken it down into a couple  of steps that have always repetitively worked for [0:54] us across different projects that we have taken  on right um just just uh who is this relevant for [1:01] if your openi anthropic bill has started showing  up uh in finance meetings especially if someone's [1:06] from Uber the other day I was reading that you  guys ran out of your entire yearly budget in [1:11] a month or something so I think this has been  happening a across stages. Uh if you're trying [1:16] to figure out whether openweight models are the  way to go and whether they have a good TCO and I'm [1:22] just sorry if it's the third one that it's the day  one of the conference and you already need a break [1:26] but I get that one too. All right. So what's been  happening is uh 2022 I think GPT was launched [1:33] a lot of open AI models came in 01 4.1 5 and then  claw everything by the storm right now but since [1:42] last year we've been noticing that open weight  models have also been giving credible results like [1:48] uh llama was not the best series out there  to be used in production but with Gemma GLM [1:55] Kimmy and some other alternatives like Neotron  on ultra a lot of use cases can now be served [2:00] with openweight models. I think this has been  discovered by everyone but taking those models to [2:05] production is a whole different uh challenge and  that's what I'm going to be talking about today. [2:10] As I mentioned, there are a couple of models  that have been doing really great. uh not so [2:14] much in uh the USA but I've seen Gemma 4 pick up  a lot in Europe and Asia for sure especially for [2:21] regional languages both in Europe and Asia uh and  across low latency voice BS uh because Gemma 4 is [2:28] a series of very small models uh which are very  well trained for these use cases and apart from [2:34] that for very complex and reason oriented use  cases and for coding use cases GLM and Kimmy have [2:39] been doing great I think everybody knows this is a  talk of the town right But now that we know openw [2:44] weightight models are good, are they cheap? When  I say cheap, I really mean to say are they good [2:50] enough to push to production to replace closed  weight models. Right now I know the challenges [2:55] of closeweight models. It's obviously cost  scalability. But there's another thing that has [2:59] started to show up across the sentiment which is  the sunset clause. Right? you set up on a claude [3:07] or or a Gemini uh API and 6 months later the uh  organization asked you to replace the model. Uh [3:19] I did not see that coming. So yeah um 6  months later the organization asks you [3:25] to replace the model because they they have a  new model coming up and they have a deprecating [3:29] schedule on the current one. Right.  um because of this reason uh this is [3:34] the strongest reason I've seen this year that  people just want to get rid of that dependency [3:38] and they want to start owning their intelligence  so that nobody can command where they move right [3:43] talking about the problems of taking models open  weight there are three gaps that we have seen [3:48] that are very very common nowadays and these are  not the trivial ones obviously model level gaps [3:54] though openweight models are pretty good each  model each different model even in the same series [4:00] has very niche very unique issues. I'll take one  example just to explain how niche these issues are [4:06] and how we solve them. Then there is obviously  performance and scaling whether your model [4:11] meets the requirement. See your throughput your  uh whether it's able to handle the same kind of [4:16] RPS on a single GPU or your compute unit.  Uh the configurations that command that and [4:23] then the last challenge is obviously compute  strategy. When you're scaling out, what kind [4:26] of compute are you going for? What vendor do  you have? what kind of deals are you striking, [4:30] what is the right spot price for you, etc.,  etc., right? Let's take these one by one [4:37] to solve that problem. I think this is a very  simple framework. There's no rocket science here. [4:40] We go through a good choice of models. Once we  have done that, we go for a configuration search. [4:45] Once we know the right configuration, we run a  shadow load to figure out the compute strategy. [4:49] Right? This is how you go to TCO optimization. As  simple as that. Now, let me explain this in depth. [4:55] Choice of models, right? You obviously choose  models that can give you the right quality output [5:00] that can give you the right benchmarks that can  give that can protect your SLAs's that command [5:04] your infrastructure uh whatever your hardware can  handle and whatever can be served in the right [5:10] cost. But when I said there are model level gaps,  we've taken Gemma 4 into production with different [5:16] companies. And what we noticed is there's there's  one very peculiar issue with uh Gemma, right? [5:22] um the chat template format the model and  that comes out in the output is different [5:30] and because of that internal monologues the  thought gets leaked into the output right so [5:36] uh things like where the model is thinking  like where the model is processing information [5:40] and citing out its next steps is also  covered in the output which was a problem [5:44] and we figured out a couple of issues around it  because the native VLM parser was not passing [5:50] this perfectly and we rewrote that from scratch  and we also introduced a thinking budget to the [5:57] the number of thinking tokens just to get faster  outputs and to avoid the thought leakage issue. [6:02] Now this is very specific to Gemma 4. The only  reason I mention it is because I want to tell you [6:08] with each different open weight models you're  going to encounter such issues. So I'd rather [6:14] you don't get discouraged because every issues  have been dealt with and I'm happy to share more [6:20] information about Kimmy session list of there and  when we configuration search the usual way to do [6:31] I'll actually define the problem for  you first. So what basically configur [6:37] okay configuration is that you will define a that  your model is deployed on. This is not only your [6:49] hardware. Hardware of the GPU is one part of it.  But there are other software options that you can [6:54] choose from. And this is a very small sample space  uh of those choices. But you choose your hardware. [7:00] You have to choose one framework, an attention  backend, a quantization, tensor parallelization, [7:05] some speculated decoding technique, what draft  model to use, what kind of attention mechanism [7:10] to use, etc., etc., etc. And based on those  choices, you always get a different cost and [7:16] performance trade-off on different models uh on  different configurations on the same model that is [7:21] right. So I'm saying the same model say  Gemma 431B can be deployed for a very very [7:27] cost-sensitive use case where it is being used to  parse through documents and it's a batch process. [7:32] So you have a different configuration to  meet the ROI that you have on this one. [7:36] Or it could be a very highly latency sensitive use  case where it's a voice board and you need your [7:41] latency SLAs to be protected. So you don't care as  much about cost as you do about latency. And your [7:45] configuration should reflect that. Now when I'm  telling you this, it's very easy to understand. [7:50] But when you work with a new model, you don't  know what configuration is going to work, [7:54] right? So the usual manual process is that you  profile the workload. You understand the input [7:58] output tokens. Uh what kind of caching would you  have on your payload? What kind of uh traffic [8:04] requests are you going to get? What configuration  would work best? And then you do a basic hit and [8:09] trial. Uh anything a human could do. And trust me,  we've been running this company for about 5 years. [8:14] And for the first 3 years, we were doing the  manual override. So I know how painful this is. [8:20] There is no deadline. There is no timeline  on when you're going to meet your targets. [8:24] It's it's just luck, right? You keep going  through configurations. Obviously, you have some [8:28] knowledge that has been built over the past and  you can use that uh to find out to go into the [8:33] right direction, but you never know what's going  to work out, right? How did we actually automate [8:38] a solution and basically solve the problem? We  made an auto researcher much inspired by Andre [8:44] Karpati's project. Um what it does is it basically  consumes information from four different external [8:50] resources. uh GitHub uh rep repositories that we  introduce to it um some internal documentation [8:58] that we provide documentation of opensource  frameworks like WLM, SG lang, TRTLM, Vajra [9:04] etc etc lm deploy for someone who used to work on  this 2 years earlier and also some known inference [9:12] stack issues that we have already documented  for so that the agent is aware of what it would [9:17] be dealing with right once it has consumed this  information. It runs multiple parallel agents, run [9:25] benchmarks on different configurations and figure  out a hypothesis and try to see if the benchmarks [9:31] meet the hypothesis that we are actually  working towards. Right? When this happens, [9:36] we publish the benchmarking results into our  external benchmarking service into ledgers. And [9:41] because of these published ledgers and multiple  agents running in parallel, they're able to learn [9:45] from the existing information and each other  through which we are able to save manual effort. [9:51] I'll explain this with an example. Uh but we are  able to save manual effort and quickly get to a [9:56] point because at a after a point when you have  all the information, you know, like these are the [10:00] 250 different configurations possible to deploy  this model. Then it's a linear programming search [10:05] that you have to run to see which configuration  actually matches your result, right? Um [10:11] I'll just give you one example on this is what it  basically looks like on our external benchmarking [10:17] service that is one model being benchmarked on  different configurations and we understand what [10:23] kind of performance levels can one single model  go through. Once we have that it's a basic search [10:28] that we run on it but it also requires you to  you know document information properly and ingest [10:33] that properly because for example uh when these  agents are running uh again talking about Gemma 4 [10:39] the head dimension of Gemma 4 this is a bit  technical uh the head dimension of Gemma 4 does [10:44] not fit into uh a blackwell architecture right so  optimizing it on RTX 6000 pro has been a challenge [10:52] and we realized that because our optimizations  have been mainly on hop proper architectures, [10:57] you need to transform those kernels to be able  to work with them in the Blackwell architecture. [11:03] Now, when running a new configuration  to serve on a Blackwell architecture, [11:07] the agent does not need to run this experiment  again and find this out. This is already [11:11] documented and with such learnings across the  entire auto researcher that we have built, [11:16] the agents are actually able to run parallelly and  figure out the right configuration the fastest. [11:22] This is much more deeper than what I'm  explaining right now. I don't have enough time [11:25] but I would love to talk more about  it. This is what I do on a daily basis. [11:29] So come find me after this. We also have  a booth uh simply smart I think it's 1252. [11:34] Yeah 1252. So happy to share more information  there. But yeah that's what basically we do. Um [11:41] this is an example of how we actually got to  day zero support of Gemma 4 endpoint. This is [11:46] because we already knew what issues it could  encounter and how we could solve those issues [11:52] with different configurations on different  GPUs. This basically helps you be ready [11:58] for any new model coming in without an  experimentation overhead. Right? On day zero, [12:04] you know what configurations are going to work  with you and you have already subsided that [12:07] problem. That could have been a large one and kept  your team on hold for about 6 months. Right? We've [12:12] seen this happen. Uh I think the gap is closing  now. People do it in about 1 to 3 months but still [12:17] if you can be ready on day zero why do you  need to right shadow load very easy very simple [12:24] uh this basically means that when you do not have  a compute strategy there are three things you [12:29] don't know which GPU you want to use which is also  part of the configuration uh how many GPUs do you [12:35] want to use and what kind of a deal do you want to  strike with your vendor that's that's a business [12:40] aspect but that's also very important  because when you're scaling these use cases [12:44] you're working across multiple nodes, not even  GPU cards. You're working across multiple nodes [12:49] uh of these machines and you need to understand  whether you have an ondemand arrangement with [12:53] your vendor or whether a reserved arrangement  work better for you or do you even need this uh [12:58] GPU that you're using right now? Could you serve  it with a smaller GPU or do you get a better TCO, [13:03] better price performance ratio on a more expensive  GPU, right? Maybe the GPU is twice more expensive, [13:09] but the performance is 5x better. So, you want  to evaluate these things. The best way to do it, [13:14] you might have some production workload that is  running on closed source models already. What [13:19] we do is once we figure out the configuration from  our auto researcher, we deploy that configurations [13:26] uh we give it unlimited scalability and  we project it to a mirrored shadow load [13:32] of your production system. Why is this important?  because I don't think benchmarks capture the [13:39] real nuances of a production workload. Uh I  think when a production workload is projected [13:46] um to an endpoint, there is some burstiness  that has not been uh accounted for. Uh there [13:52] is some variance in the workload that has not been  accounted for and we have computed the benchmarks [13:58] only on averages. That's why they actually  don't work out in real life scenarios and we [14:03] we honestly learned it by making mistakes in the  first two years of our business where we thought [14:06] the benchmarks that we have computed for in our  test settings would actually work well for the [14:11] customer but they don't. So this is a very very  necessary step. You have to run your shadow load [14:16] through these endpoints. You obviously mirror the  traffic, replay and measure it, compare it with [14:21] the benchmarks and then you promote that benchmark  internally. If the configuration does not work, [14:27] you take your new learnings and you feed it back  into the auto researcher. Come up with a new [14:31] configuration and test it out. Then you take those  learnings and feed it into the auto researcher [14:36] and you keep doing this until you reach the best  configuration until the gap converges. Right? [14:43] So once you have put it through the shadow load,  you realize that in benchmark there were some [14:48] uh numbers that you were seeing  while computing your benchmark. [14:51] uh under the mirror traffic the numbers look  completely different and after reuning with [14:55] your auto researcher you've actually got to  a place where you can push this to production [14:59] and these numbers can be trusted this gap I think  has not been covered by at least 80% of the teams [15:06] that we work with right now uh a lot of people  stop at the benchmark situation and then they [15:12] face these problems that these benchmarks are not  holding up in real life scenarios so I think it's [15:17] just important to acknowledge this and obviously  have this as a dedic ated step in the process. [15:23] Once that happens, uh there's this this is this is  very simple. You figure out a cutff point, right? [15:28] Once you figured out the right configuration, you  this is this is this is basically a spreadsheet. [15:33] This is uh a comparison formula seeing at what  point of workload or at what I'll say heaviness [15:40] of workload does your TCO of open source  become lesser than the TCO of closed source. [15:46] Because the beauty of closed source is that there  is no minimum load required and you can operate [15:52] with one request a day, right? That's not true  with open source. Uh just bringing the model up, [15:57] warming up the GPUs and shutting them down after  one request would cost you much more than one [16:02] request on a closed source API will cost you. So  you need to understand what is the right point to [16:08] actually move from closed weight systems to open  weight systems. And I think that happens when you [16:13] have the thresh uh threshold and the cutff point  identified. For example, very vague example, this [16:20] actually depends on what exact models and workload  are you dealing with. But for a voice use case, [16:25] we've seen 50,000 minutes a day being processed  through the voice board. No matter across what [16:30] concurrencies is a good enough load to shift  to open weight and to start realizing the [16:34] benefit in terms of money, right? Not even  in performance. I'm leaving everything aside. [16:40] There's obviously a benefit that I personally see  towards the latency as well and more control over [16:44] the stack. But specifically in terms of TCO, this  is a good point, right? Uh I think we identify [16:50] roughly 18 different use cases internally and we  have we've really thoroughly understood the exact [16:57] um threshold for each use case and how to  compute it for different workloads. Moving on. Um [17:07] right, I think this just covers what I was  saying. uh there are three different kind [17:10] of cost models that you can go with closed uh  API then you self-host these open weight models [17:16] and we obviously do it in a better fashion I don't  want to talk so much about simply smart uh and [17:20] just keep this opportunity to talk about the major  concept but if you're interested in how we do it [17:25] very happy to talk to you after this session uh I  would not be the best person to answer technical [17:30] questions so I have my teammate here who has an  engineering degree so that'll be helpful right u [17:36] all right just a couple of case studies uh where  this is actually useful. Uh Asia's largest cloud [17:42] telephon platform, they naturally wanted to come  up with their own voice offering because they have [17:46] great distribution across these enterprises and we  helped them work out with Gemma 431B. Uh these are [17:53] the numbers we achieved. Obviously I love to boast  these numbers but what I'd love to point out over [17:57] here is this is where working with them for over a  month we realized that there was a thought leakage [18:02] issue in Gemma that I shared with you earlier  and we figured out the issue was with the VLM [18:07] parser and the way it parses that uh tool call  right and the degradation in tool call quality [18:13] apart from that we've also taken GLM 5.2  two into production uh for coding agents. [18:18] A lot of people are replacing uh clawed uh and  other models for coding use cases. The really [18:25] smart thing that we have seen, this would be my  last thing. Uh the really smart thing we've seen [18:28] across enterprises that there's no one answer,  right? Uh you don't use one model for everything. [18:34] You have an intelligent routing system that  determines what use case should be routed to what [18:41] model. And then you have intelligent systems  where open-source and closed source models [18:46] are functioning in tandem and giving you  the overall best TCO reflected into other [18:53] use cases as well. Uh yeah, that's about it. All  right, give them a round of applause, please.