// Blueprint 05 • Local Inference & Agent Tooling

Local GGUF Bandwidth Physics on Unified Memory & Production MCP Context Architecture

By Anupam Das • Paired with the Local GGUF & Apple Silicon Sizer and MCP Config Generator

1. The Memory-Bandwidth Roofline of Local Autoregressive Decoding

During batch-size-1 local inference in llama.cpp or Ollama, arithmetic intensity is ~1 FLOP per byte—placing token generation deep inside the memory-bandwidth-bound regime. Sustained decode throughput follows a remarkably tight physical law:

Tokens_Per_Second ≈ (Memory_Bandwidth_GBs × η_kernel) / (Active_Params_B × Bytes_Per_Weight + KV_Read_GB)

Where η_kernel ≈ 0.70–0.75 on Metal and CUDA K-quant kernels. Two architectural consequences follow immediately:

2. Controlling MCP Tool-Schema Bloat in Local & Cloud Agents

Connecting local or cloud coding agents to Model Context Protocol (MCP) servers introduces a hidden context tax: every enabled tool injects its JSON Schema definition into the prompt prefix. When running local models at 16K–32K context windows, 6,000 tokens of unused MCP schemas both consume precious KV-cache RAM and slow Time-To-First-Token (TTFT) prefill.

Interactive Workbenches: Size your exact Apple Silicon / RTX hardware throughput in the Local GGUF & Bandwidth Sizer → and build lean, token-audited mcp.json bundles in the MCP Server Config Generator →.

DeepGen Command Palette

Copied!