<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Azrty</title>
    <description>The latest articles on DEV Community by Azrty (@azrty).</description>
    <link>https://dev.to/azrty</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4140941%2F07294fc1-7e5f-44a7-a7ee-513819db26d9.png</url>
      <title>DEV Community: Azrty</title>
      <link>https://dev.to/azrty</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/azrty"/>
    <language>en</language>
    <item>
      <title>Air-Gapped LLM Deployment in the UAE: Six Things That Break When the Network Is Cut</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Thu, 26 Nov 2026 05:14:37 +0000</pubDate>
      <link>https://dev.to/azrty/air-gapped-llm-deployment-in-the-uae-six-things-that-break-when-the-network-is-cut-4gi1</link>
      <guid>https://dev.to/azrty/air-gapped-llm-deployment-in-the-uae-six-things-that-break-when-the-network-is-cut-4gi1</guid>
      <description>&lt;p&gt;A UAE bank, a federal authority or a critical-infrastructure operator receives the mandate: the new LLM service must run air-gapped. The first instinct is to treat this as a procurement exercise, buy GPUs, install an inference server and declare victory at go-live. Then in the first week of production, the embedding job tries to reach a hosted API, the licence server refuses to validate offline, and a model update turns into a month-long project. On-premises and air-gapped are not the same operating model, and the expensive half of the second one is people and process, not silicon. This article sets out the four deployment tiers and the one that is routinely mislabelled, the contract language that actually enforces isolation, and the six operational gaps that surface after cutover, each with the specific tool, environment variable or practice that closes it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the mandate is landing now, and what the rules actually say
&lt;/h2&gt;

&lt;p&gt;Two things are pushing air-gapped LLM work up the agenda in the UAE at once.&lt;/p&gt;

&lt;p&gt;The first is regulatory. The Central Bank of the UAE's &lt;a href="https://rulebook.centralbank.ae/en/rulebook/outsourcing-regulation-banks" rel="noopener noreferrer"&gt;Outsourcing Regulation for Banks (C 14/2021)&lt;/a&gt; is unusually concrete about location. Article 6.1 requires that "the Master System of Record, which includes all Confidential Data, is continuously maintained and stored within the UAE". Article 6.3 prohibits sharing a customer's Confidential Data outside the UAE without Central Bank approval and the customer's prior written consent. If your LLM reads documents from that system of record, the text it handles is inside the rule.&lt;/p&gt;

&lt;p&gt;The second is national infrastructure. In May 2026, the UAE Cybersecurity Council, e&amp;amp; and Open Innovation AI &lt;a href="https://openinnovation.ai/news/eand-cybersecurity-council-and-open-innovation-ai-launch-the-uae-sovereign-ai-platform-for-national-scale-infrastructure/" rel="noopener noreferrer"&gt;launched the UAE Sovereign AI Platform&lt;/a&gt;, aimed at national-scale AI infrastructure for defence, national security, critical infrastructure and regulated industries. Whatever you build in-house sits in the same policy climate.&lt;/p&gt;

&lt;p&gt;Both leave the same gap open. Article 6 tells you where the data must live. It says nothing about how the software stack behaves when the network is cut. A deployment can be fully in-country, fully compliant on paper, and still phone home for licence validation, telemetry or an embedding call. The rest of this article is about that layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four deployment tiers: the trap is row three
&lt;/h2&gt;

&lt;p&gt;Procurement documents we see routinely use "on-premises" and "air-gapped" interchangeably. They should not. The four tiers below come from this &lt;a href="https://itctshop.com/air-gapped-llm/" rel="noopener noreferrer"&gt;air-gap deployment guide&lt;/a&gt;, and the operating model only changes completely at the last one.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tier&lt;/th&gt;
&lt;th&gt;Where data is processed&lt;/th&gt;
&lt;th&gt;Outbound dependencies&lt;/th&gt;
&lt;th&gt;Typical fit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Public API&lt;/td&gt;
&lt;td&gt;Vendor's cloud, often outside the region&lt;/td&gt;
&lt;td&gt;Full internet&lt;/td&gt;
&lt;td&gt;Non-sensitive workloads&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. In-region cloud&lt;/td&gt;
&lt;td&gt;Hyperscaler region inside the UAE&lt;/td&gt;
&lt;td&gt;Vendor control plane, licensing, telemetry&lt;/td&gt;
&lt;td&gt;Many commercial use cases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. On-premises, connected&lt;/td&gt;
&lt;td&gt;Your datacentre&lt;/td&gt;
&lt;td&gt;Licence calls, telemetry, model updates, hosted fallbacks&lt;/td&gt;
&lt;td&gt;Commonly mislabelled as air-gapped&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Air-gapped&lt;/td&gt;
&lt;td&gt;Your datacentre&lt;/td&gt;
&lt;td&gt;Zero in normal operation&lt;/td&gt;
&lt;td&gt;Classified work, core data, defence&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Row three is where organisations get hurt. Products sold as on-premises routinely require connectivity for licence activation, usage metering, crash reporting or model refresh, and many quietly fall back to a hosted endpoint when the local model is saturated. That requirement usually surfaces at the worst moment, during a security review or an audit, months after the contract is signed.&lt;/p&gt;

&lt;p&gt;A practical test for tier four: unplug the outbound route, run the workload for a full business day and see what breaks. If anything in the stack retries a DNS lookup, an object-store endpoint or an HTTPS call to a vendor domain, you are on row three.&lt;/p&gt;

&lt;h2&gt;
  
  
  Procurement language that enforces isolation
&lt;/h2&gt;

&lt;p&gt;Write these requirements into the tender document verbatim, because vendors interpret "air-gapped" differently.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Clause&lt;/th&gt;
&lt;th&gt;What it prevents&lt;/th&gt;
&lt;th&gt;How to verify&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;No outbound network calls in normal operation, including telemetry, crash reporting and usage metering&lt;/td&gt;
&lt;td&gt;Silent exfiltration through "phone home" features&lt;/td&gt;
&lt;td&gt;Packet capture during a 24-hour soak test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Offline licensing, no call-home for activation or renewal, defined licence-file process&lt;/td&gt;
&lt;td&gt;Licence failures at cut-over or renewal&lt;/td&gt;
&lt;td&gt;Renewal test with egress blocked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model and container updates delivered as signed artefacts with published checksums&lt;/td&gt;
&lt;td&gt;Ad-hoc USB copies of unverified weights&lt;/td&gt;
&lt;td&gt;Signature check in the transfer SOP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local registry and package mirror for all dependencies&lt;/td&gt;
&lt;td&gt;Containers that pull from the internet on first start&lt;/td&gt;
&lt;td&gt;Cold-start test on a clean node&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Local inference only, no fallback to a hosted endpoint when the local model is busy&lt;/td&gt;
&lt;td&gt;Data leaving the boundary under load&lt;/td&gt;
&lt;td&gt;Load test at peak concurrency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Self-contained logging, monitoring and audit inside the boundary&lt;/td&gt;
&lt;td&gt;Operational data leaving with observability agents&lt;/td&gt;
&lt;td&gt;Review of agent configs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Ask the vendor to confirm zero outbound traffic in writing, and ask specifically about the embedding layer. Calling a hosted embedding API sends your document text outside the boundary, which defeats the purpose of the whole programme. It is the single most common leak we see in otherwise careful deployments.&lt;/p&gt;

&lt;p&gt;One classification point worth settling early: a model that answers staff questions about policy documents is infrastructure, while one that feeds credit or compliance decisions invites a separate regulatory conversation. Classify the use case before you classify the deployment.&lt;/p&gt;

&lt;h2&gt;
  
  
  The six things that break after cutover
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;What breaks&lt;/th&gt;
&lt;th&gt;First symptom&lt;/th&gt;
&lt;th&gt;What closes it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Embedding model calls a hosted API&lt;/td&gt;
&lt;td&gt;Document text egresses despite a local LLM&lt;/td&gt;
&lt;td&gt;Local embedding model plus offline env vars&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Model updates become multi-week projects&lt;/td&gt;
&lt;td&gt;Teams avoid updating; drift accumulates&lt;/td&gt;
&lt;td&gt;Two-phase artefact workflow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;No elastic scaling&lt;/td&gt;
&lt;td&gt;Latency collapse at peak; unit cost explodes&lt;/td&gt;
&lt;td&gt;Conservative capacity plan and admission control&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Artefact transfer is improvised&lt;/td&gt;
&lt;td&gt;Unverified weights on USB sticks&lt;/td&gt;
&lt;td&gt;Owned pipeline with signature verification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Hardware lifecycle without remote access&lt;/td&gt;
&lt;td&gt;A failed GPU stalls for weeks&lt;/td&gt;
&lt;td&gt;Written RMA terms, spares, degraded-mode runbooks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;No in-house evaluation set&lt;/td&gt;
&lt;td&gt;Nobody can say if an update helped or hurt&lt;/td&gt;
&lt;td&gt;Gold question set re-run on every change&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  1. The embedding model quietly calls a hosted API
&lt;/h3&gt;

&lt;p&gt;You moved the LLM inside the boundary and forgot the retrieval stack around it: embedding generation, reranking, OCR, spell-check, translation. Any of them may default to a hosted endpoint. Even the Hugging Face libraries make HTTP calls by default: &lt;code&gt;hf_hub_download&lt;/code&gt; checks for a newer revision even when the file is cached, and the Python stack sends telemetry unless you disable it.&lt;/p&gt;

&lt;p&gt;Close it by running every model locally and forcing offline behaviour in the runtime environment. The containerised vLLM deployment described in this &lt;a href="https://arxiv.org/html/2509.20603v1" rel="noopener noreferrer"&gt;EPRI paper on containerised GenAI at HPC scale&lt;/a&gt; uses exactly this block:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;podman run --rm --name=vllm --network=host --ipc=host \
  --entrypoint=vllm --device nvidia.com/gpu=all \
  -e &lt;span class="s2"&gt;"OMP_NUM_THREADS=1"&lt;/span&gt; \
  -e &lt;span class="s2"&gt;"HF_HUB_DISABLE_TELEMETRY=1"&lt;/span&gt; \
  -e &lt;span class="s2"&gt;"VLLM_NO_USAGE_STATS=1"&lt;/span&gt; \
  -e &lt;span class="s2"&gt;"DO_NOT_TRACK=1"&lt;/span&gt; \
  -e &lt;span class="s2"&gt;"HF_DATASETS_OFFLINE=1"&lt;/span&gt; \
  -e &lt;span class="s2"&gt;"TRANSFORMERS_OFFLINE=1"&lt;/span&gt; \
  -e &lt;span class="s2"&gt;"HF_HUB_OFFLINE=1"&lt;/span&gt; \
  -e &lt;span class="s2"&gt;"VLLM_DISABLE_COMPILE_CACHE=1"&lt;/span&gt; \
  --volume=./models:/vllm-workspace/models \
  &lt;span class="nv"&gt;${LOCAL_REGISTRY}&lt;/span&gt;/vllm/vllm-openai:v0.9.1 serve \
  meta-llama/Llama-4-Scout-17B-16E-Instruct \
  --tensor-parallel-size=4 --disable-log-requests --max-model-len=65536
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;HF_HUB_OFFLINE=1&lt;/code&gt; stops the Hub client making HTTP calls and makes API calls raise &lt;code&gt;OfflineModeIsEnabled&lt;/code&gt;; &lt;code&gt;DO_NOT_TRACK=1&lt;/code&gt; is honoured across the Hugging Face Python ecosystem as the equivalent of &lt;code&gt;HF_HUB_DISABLE_TELEMETRY&lt;/code&gt;. Set them in the container spec, not on someone's laptop.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A model update stops being an afternoon
&lt;/h3&gt;

&lt;p&gt;In a connected deployment, moving to a new model version is a configuration change. Offline, it is a project: fetch on a connected host, validate, sign, transfer, redeploy, re-run evaluation. Budget weeks per update, not hours.&lt;/p&gt;

&lt;p&gt;NVIDIA's &lt;a href="https://docs.nvidia.com/nim/large-language-models/latest/deployment/air-gap-deployment.html" rel="noopener noreferrer"&gt;air-gap deployment guide for NIM&lt;/a&gt; formalises the two-phase workflow. On a connected host you run &lt;code&gt;download-to-cache&lt;/code&gt; and optionally &lt;code&gt;create-model-store&lt;/code&gt; with your &lt;code&gt;NGC_API_KEY&lt;/code&gt; or &lt;code&gt;HF_TOKEN&lt;/code&gt;, then transfer the cache or model store across the boundary. In the air-gapped phase the guide is unambiguous: do not set &lt;code&gt;NGC_API_KEY&lt;/code&gt; or &lt;code&gt;HF_TOKEN&lt;/code&gt;, because NIM must load everything from local storage.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# air-gapped phase: no keys, local model store only&lt;/span&gt;
docker run -it --rm --name=nim-airgap \
  --gpus all --shm-size=16GB -p 8000:8000 \
  -e &lt;span class="nv"&gt;NIM_MODEL_PATH&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/model-repo \
  -e &lt;span class="nv"&gt;NIM_MODEL_PROFILE&lt;/span&gt;&lt;span class="o"&gt;=&amp;lt;&lt;/span&gt;PROFILE_HASH&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; \
  -e NIM_SERVED_MODEL_NAME \
  -v &lt;span class="s2"&gt;"$MODEL_REPO:/model-repo"&lt;/span&gt; \
  &lt;span class="nv"&gt;${NIM_LLM_MODEL_SPECIFIC_IMAGE}&lt;/span&gt;:2.1.6
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two traps from the same documentation belong in your runbook. First, pin &lt;code&gt;NIM_MODEL_PROFILE&lt;/code&gt;: without it NIM selects a profile for the hardware, which on multi-GPU hosts can name a speculative-decoding draft model that is not in your store, and the download fails offline. Second, in release 2.1.6 some profiles fetch a separate draft model from its registry at every start and exit if they cannot reach it. Stage the draft locally and set &lt;code&gt;NIM_DRAFT_MODEL_PATH&lt;/code&gt;, or disable speculative decoding with &lt;code&gt;NIM_SPECDEC_ENABLE=0&lt;/code&gt;. Pin &lt;code&gt;NIM_MODEL_PATH&lt;/code&gt; to a fixed revision rather than a moving tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. There is no elastic scaling, and utilisation decides your unit cost
&lt;/h3&gt;

&lt;p&gt;Air-gapped capacity is whatever you bought. There is no burst to a public endpoint, so peak concurrency has to be sized up front, and GPU memory, not compute, is the binding constraint: weights plus the key-value cache for your concurrent requests.&lt;/p&gt;

&lt;p&gt;The EPRI figures are a useful reference point. Llama 4 Scout 17B-16E-Instruct is roughly 200 GiB of weights; on a node with 4 x 80 GiB H100 GPUs, vLLM used about 54 GiB per GPU for weights and the remainder for KV cache, and needed &lt;code&gt;--max-model-len=65536&lt;/code&gt; because the model's 10M token default context window does not fit. Measured with the ShareGPT workload, one node delivered 103 tokens per second at single-request concurrency and up to 4313 tokens per second at batch 1024. Startup for a model that size takes 30 minutes or more, so plan rolling upgrades accordingly.&lt;/p&gt;

&lt;p&gt;Capacity has a price tag. At current list prices, an 8-GPU HGX H100 server is about $480,000 (a DGX H100 with the same GPUs is $832,000; an HGX H200 with 1,128 GB of HBM3e is $528,000), at roughly 10 kW of peak draw per node. Over three years the hardware works out near $2.28 per GPU-hour at 100% utilisation but about $9.13 at 25%. Air-gapping removes burst capacity, so a badly sized system is permanently expensive. Close the gap with admission control, request queues and per-team budgets: a gateway such as &lt;a href="https://www.azrty.com/software/fastllm-proxy" rel="noopener noreferrer"&gt;FastLLM Proxy&lt;/a&gt; puts routing, budgets and access control for your own LLM servers in one place, which is what you need when there is no hosted fallback to absorb the load.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Nobody owns the artefact transfer pipeline
&lt;/h3&gt;

&lt;p&gt;Weights, container images, Helm charts, model stores and tokenisers all have to cross the boundary, regularly and verifiably. Without an owner, this degrades into USB sticks and ad-hoc checksums.&lt;/p&gt;

&lt;p&gt;Build it properly. Use &lt;code&gt;skopeo&lt;/code&gt; to move images into your local registry; its &lt;code&gt;sync&lt;/code&gt; mode is documented specifically "for populating registries running inside of air-gapped environments":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# connected host&lt;/span&gt;
skopeo copy docker://docker.io/vllm/vllm-openai:v0.9.1 \
  oci-archive:/media/usb/vllm-v0.9.1.tar:vllm/vllm-openai:v0.9.1

&lt;span class="c"&gt;# inside the boundary&lt;/span&gt;
skopeo copy oci-archive:/media/usb/vllm-v0.9.1.tar \
  docker://registry.internal/vllm/vllm-openai:v0.9.1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Skopeo validates images against the system trust policy and supports signing options (&lt;code&gt;--sign-by-sigstore&lt;/code&gt; and related flags), so the receiving side can reject anything unsigned. On the receiving side, run a local registry with scanning. The HPC centre described in the EPRI paper runs GitLab registries for development and Red Hat Quay for production, because Quay does security scanning and can mirror between environments. They also found the registry becomes a bottleneck when many nodes pull a large image at once, so consider flattening images to single-file SquashFS or SIF where your platform allows it.&lt;/p&gt;

&lt;p&gt;For NIM, the documented &lt;code&gt;airgap-bundle.sh&lt;/code&gt; helper packages the Helm chart, the image list, values files and manifests into one transfer archive. Treat that archive as a release artefact: two-person rule, recorded checksums, malware scan, signed manifest, logged entry into the boundary.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Hardware lifecycle without vendor remote access
&lt;/h3&gt;

&lt;p&gt;SXM modules sit on a shared baseboard. A failed GPU is not a five-minute card swap, and in an air-gapped environment the vendor cannot dial in to diagnose. Get written answers before you order: who owns the warranty, whether replacement is advance-ship or return-first, the on-site response time for your datacentre, who is permitted to perform the replacement, and what logs the vendor needs to approve an RMA. Plan for degraded operation: your scheduler and inference service should keep serving on seven GPUs while one is replaced. Hold spares and train your own team, because in tier four the vendor cannot log in and fix it for you.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. You have no evaluation set of your own
&lt;/h3&gt;

&lt;p&gt;Public leaderboards will not tell you whether the system answers your internal circulars correctly, and Gulf corpora are typically mixed Arabic and English with inconsistent formatting, where many embedding models underperform. Build a gold set of questions with known answers drawn from your own documents (start with 100 per major document class) and re-run it on every change: new model version, new quantisation, new prompt, new retrieval setting. Test quantisation against that set rather than a public benchmark. A 4-bit quantised build may fit on two GPUs instead of four, but only your documents can tell you what it costs in accuracy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: cutting over a policy Q&amp;amp;A service in a UAE bank
&lt;/h2&gt;

&lt;p&gt;The figures here are illustrative of the sizing above, not a specific client deployment. Take a representative case: 30,000 internal policy and circular documents, mixed Arabic and English, staff Q&amp;amp;A as the first use case, CBUAE Article 6 applying to the corpus.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Classify first.&lt;/strong&gt; Only the document Q&amp;amp;A workload needs tier four. Keep developer experimentation on tier two or three, and move the production retrieval path inside the boundary. Putting everything behind the strictest tier makes the programme slower and more expensive than the risk justifies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Size the model and the node.&lt;/strong&gt; A mid-size instruct model in the Scout 17B class with good retrieval beats a larger model with poor retrieval. Plan one 8-GPU HGX H100 server (about $480,000 at list): 4 GPUs with tensor parallelism 4 for the LLM, the rest for embedding, reranking and evaluation jobs. Confirm rack power for about 10 kW and cooling headroom for Gulf conditions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stage on a connected host.&lt;/strong&gt; Mirror the serving image (for example &lt;code&gt;vllm/vllm-openai:v0.9.1&lt;/code&gt;), download the weights and the embedding model, package the Helm chart and values. Expect roughly 200 GiB of weights for the LLM alone, plus the embedding model and images.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transfer and verify.&lt;/strong&gt; Move the bundle over the approved channel. Verify checksums and signatures before anything is loaded, and log the transfer. No exceptions for "urgent" fixes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy offline.&lt;/strong&gt; Run vLLM with the offline environment block above, &lt;code&gt;--max-model-len=65536&lt;/code&gt;, &lt;code&gt;--tensor-parallel-size=4&lt;/code&gt;, serving from the local registry and a mounted model directory. Set the same offline variables for the embedding service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prove the air gap.&lt;/strong&gt; On Kubernetes, apply a default-deny egress NetworkPolicy in the namespace and restart the pods. The NVIDIA guide publishes exactly this pattern:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;networking.k8s.io/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;NetworkPolicy&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;deny-egress&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;nim-service&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;podSelector&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="na"&gt;policyTypes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;Egress&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add explicit egress rules only for DNS and your private registry if the cluster needs them. For single-container testing, &lt;code&gt;--network none&lt;/code&gt; plus a health probe from inside the container (&lt;code&gt;curl -sf http://127.0.0.1:8000/v1/health/ready&lt;/code&gt;) is a cheap, decisive check.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Measure against your gold set.&lt;/strong&gt; Run the 300-question evaluation set (100 per document class), record accuracy per class, then run a serving benchmark (vLLM ships &lt;code&gt;benchmark_serving.py&lt;/code&gt;) at expected concurrency. Store the numbers: they are your baseline for every future update.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Budget the operating model.&lt;/strong&gt; Plan for one offline model update as a standing quarterly project of two to four weeks of engineering effort, an owned transfer pipeline, and hardware utilisation that stays high. At 25% average load the same server costs roughly four times more per useful GPU-hour than at full load.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;p&gt;If the air-gap mandate has just landed on your desk, do these five things in order, this quarter.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Classify your data and use cases.&lt;/strong&gt; Most organisations find that only a minority genuinely need tier four.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the six procurement clauses above into your requirement document&lt;/strong&gt; before you speak to vendors, and require written confirmation of zero outbound traffic, including the embedding path.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pilot one document-heavy use case&lt;/strong&gt; with a measurable baseline, and prove the offline path during the pilot: artefact transfer, offline licensing, an offline model update and a deny-egress test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build the evaluation set before the system.&lt;/strong&gt; It is the only way you will know whether a change helped or hurt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Name the operational owners now:&lt;/strong&gt; transfer pipeline, capacity, hardware lifecycle, model updates. In tier four these are permanent roles, not project tasks.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the work we do at Azrty from our team in the UAE: designing and running the platform an air-gapped deployment sits on, from GPU servers and local model serving to gateways and pipelines, under &lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;AI infrastructure&lt;/a&gt;. If the mandate is new and the operating model is not yet agreed, that is the right place to start. The hardware is the easy half. The six gaps above are the half that decides whether the system is still running, and still trusted, a year after cutover.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/air-gapped-llm-deployment-in-the-uae-six-things-that-break-when-the-network-is-c" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>airgapped</category>
      <category>llmdeployment</category>
      <category>uaebanks</category>
      <category>dataresidency</category>
    </item>
    <item>
      <title>The six-week AI experiment: how to design a pilot that proves or kills a use case</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Thu, 26 Nov 2026 05:08:37 +0000</pubDate>
      <link>https://dev.to/azrty/the-six-week-ai-experiment-how-to-design-a-pilot-that-proves-or-kills-a-use-case-2bc5</link>
      <guid>https://dev.to/azrty/the-six-week-ai-experiment-how-to-design-a-pilot-that-proves-or-kills-a-use-case-2bc5</guid>
      <description>&lt;p&gt;Most AI pilots do not fail at the model. They fail at the question. A team spends six months, ships a demo that everyone agrees is promising, and then discovers that nobody can say whether it worked, because "worked" was never written down before the first prompt was run. The real cost is the decision: the use case gets neither a green light nor a red one, so it drifts into another pilot cycle. The fix is not a better model or a bigger budget. It is experiment design. Write a claim that can be falsified, measure the current process before any AI touches it, size the sample, set the kill criterion in advance, and agree with the business owner what "good enough for production" means before week 6. Six weeks is enough to do this properly for a single workflow. Here is the template, with a worked example in document processing and the numbers to copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  GCC organisations are buying AI faster than they are proving it
&lt;/h2&gt;

&lt;p&gt;McKinsey's state of AI in GCC countries survey found that 69% of organisations are still in pilot, which means roughly a third have reached the point where AI is scaled or fully deployed (&lt;a href="https://gccbdi.org/sites/default/files/2025-11/The-state-of-AI-in-GCC-countries-In-pursuit-of-scale-and-value.pdf" rel="noopener noreferrer"&gt;McKinsey and the GCC Board Directors Institute, The state of AI in GCC countries: In pursuit of scale and value, November 2025, PDF&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;MIT Sloan Management Review Middle East's enterprise AI readiness study gives a second read on the same picture: 46% of surveyed organisations reported moving beyond pilot to broader implementation, while 33% remained in early stages, focused on foundational capabilities (&lt;a href="https://resource.mitsloanmelive.com/whitepapers/LP-H-VMC-Pure-Storage-FY-2025-Q3-1-email.html" rel="noopener noreferrer"&gt;MIT Sloan Management Review Middle East, Enterprise AI readiness in the Middle East&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Two surveys, two framings, one pattern: plenty of activity, thin evidence. Model access is not the constraint. Any team can call a frontier model's API this afternoon and get a useful answer. The constraint is that most pilots are designed so that no possible result counts as failure. When success was never written down before the first prompt, every outcome is arguable, and arguable outcomes drift into another pilot cycle instead of into a decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  A use case is a hypothesis, not a project
&lt;/h2&gt;

&lt;p&gt;IBM's stage-gating framework for measuring AI outcomes puts the measurement plan before the money and the build. Step 4 is "determine your KPIs to gauge the success of the MVP", and it asks the questions most charters skip: is the sample size large enough for a statistically significant read, are the KPIs actually measurable, is there a mechanism to collect data in a way that isolates the impact of the AI, and how much data and how long do you need. Step 5 funds and executes the MVP. Step 6 gauges effectiveness against the KPIs that were fixed in advance (&lt;a href="https://www.ibm.com/think/insights/measuring-ai-outcomes-7-step-stage-gating-framework" rel="noopener noreferrer"&gt;IBM, 7-step stage gating framework for measuring AI outcomes&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;McKinsey reaches the same conclusion from the change-management side: adoption accelerates when teams frame use cases as testable predictions and run them with a control group, rather than treating them as rollouts to be celebrated (McKinsey, How organisations can overcome gen AI adoption challenges, July 2025). Read together, the two say the same thing: the experiment, not the model, is the unit of work.&lt;/p&gt;

&lt;p&gt;Compare these two statements:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Use AI to improve claims handling."&lt;/p&gt;

&lt;p&gt;"An LLM extraction assistant that pre-fills the 12 intake fields from an inbound claim packet will cut median handling time from a measured 14.2 minutes to 10 minutes or less on at least 80% of eligible packets, while keeping packet-level first-pass accuracy at or above 78% and the exception rate at or below 11%, over a four-week window on at least 1,000 packets."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The first is a hope. The second can come out false. Use this sentence pattern and fill every bracket:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;If [bounded capability] helps [named users] do [target job], then
[metric] moves from [measured baseline] to [threshold] on at least
[coverage]% of [unit of work], without [guardrail] exceeding [limit],
over [window] on a sample of n = [number].
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three tests a hypothesis must pass before you write a line of code:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;It names the mechanism.&lt;/strong&gt; What does the AI actually change in the workflow: a pre-filled field, a drafted reply, a ranked queue? "Improve with AI" names no mechanism, and therefore no failure mode.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It contains a number that could come out the other way.&lt;/strong&gt; If every plausible outcome reads as a success, you have written a press release, not a hypothesis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It names the guardrail that would make the win worthless.&lt;/strong&gt; Speed that costs accuracy is not a win. Say so in the hypothesis, not in the retro.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Week 1 is for the baseline, not the model
&lt;/h2&gt;

&lt;p&gt;Capture the current process before any AI touches it. Four things matter, measured on the same unit of work you will measure later:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Volume&lt;/strong&gt; per day, week and month, including spikes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time&lt;/strong&gt;: median and p90 handling time per unit. Medians hide the tail, and the tail is where the pain lives.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quality&lt;/strong&gt; against the same rubric you will apply to the AI-assisted output, including who adjudicates a disputed case.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost per unit&lt;/strong&gt;: fully loaded labour plus tooling, divided by units completed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your systems record timestamps and status changes, pull 8 to 12 weeks of history and you have a baseline for free. If they do not, run two weeks of prospective capture with a sampling sheet before you build anything. The one thing you must not do is ask the team how long the work takes and write the answer down as the baseline. Recalled numbers drift, and they drift in the direction of the business case.&lt;/p&gt;

&lt;p&gt;The second trap is the uncontrolled before-and-after comparison. IBM's write-up on measuring the ROI of AI-assisted development notes that before-and-after comparisons only hold with tightly matched time periods, stable teams and artefact-level data rather than self-reported estimates, and that comparing similar AI-enabled and non-enabled teams, or phasing the rollout, produces stronger evidence (&lt;a href="https://www.ibm.com/think/insights/measuring-roi-ai-assisted-development-how-ibm-did-it" rel="noopener noreferrer"&gt;IBM, How IBM measured the ROI of AI-assisted development&lt;/a&gt;). Name the design you ran in the charter, and state its limits honestly in the readout.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three numbers everyone skips: sample size, window, counterfactual
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Sample size.&lt;/strong&gt; For a pass rate or accuracy proportion, the standard planning formula is Cochran's: n = z² p(1-p) / e², where z = 1.96 for 95% confidence, p is the expected rate and e is the margin of error in points. If you have no prior for p, use 0.5, which gives the largest requirement.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Target&lt;/th&gt;
&lt;th&gt;Assumed rate&lt;/th&gt;
&lt;th&gt;Cases needed (95% confidence)&lt;/th&gt;
&lt;th&gt;Use it for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;±10 points&lt;/td&gt;
&lt;td&gt;0.50&lt;/td&gt;
&lt;td&gt;97&lt;/td&gt;
&lt;td&gt;Smoke test. Catches large regressions only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;±5 points&lt;/td&gt;
&lt;td&gt;0.50&lt;/td&gt;
&lt;td&gt;385&lt;/td&gt;
&lt;td&gt;The default release gate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;±5 points&lt;/td&gt;
&lt;td&gt;0.90&lt;/td&gt;
&lt;td&gt;139&lt;/td&gt;
&lt;td&gt;When you already expect high accuracy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;±2 points&lt;/td&gt;
&lt;td&gt;0.50&lt;/td&gt;
&lt;td&gt;2,401&lt;/td&gt;
&lt;td&gt;A published benchmark number&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Watch the unit of analysis. 385 extracted fields from 32 packets is not 385 independent observations if fields within a packet share a single OCR failure. Size the sample at the level where you will make the decision, usually the case, ticket or document.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Window.&lt;/strong&gt; The window must contain the variation you care about. A two-week test that misses month-end, a payroll cycle or a Ramadan volume shift has measured a quiet fortnight, not the workflow. For back-office work, four weeks with a weekly guardrail check is a practical minimum.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Counterfactual.&lt;/strong&gt; Every pilot must answer "compared to what". Pick the strongest design that is operationally feasible, and write down why you could not go stronger.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Design&lt;/th&gt;
&lt;th&gt;How it works&lt;/th&gt;
&lt;th&gt;What it can support&lt;/th&gt;
&lt;th&gt;Main limitation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Concurrent randomised control&lt;/td&gt;
&lt;td&gt;Cases assigned at random to assisted and current processes in the same period&lt;/td&gt;
&lt;td&gt;Strongest within-pilot evidence of effect&lt;/td&gt;
&lt;td&gt;Needs volume; groups contaminate each other through shared staff&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Staggered rollout&lt;/td&gt;
&lt;td&gt;Teams start at different times; late starters act as comparison&lt;/td&gt;
&lt;td&gt;Effect under real rollout conditions&lt;/td&gt;
&lt;td&gt;Groups can differ for reasons unrelated to the AI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Before and after&lt;/td&gt;
&lt;td&gt;Same team measured before and after&lt;/td&gt;
&lt;td&gt;Descriptive change only&lt;/td&gt;
&lt;td&gt;Seasonality, staffing and case mix can explain the result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Simpler alternative&lt;/td&gt;
&lt;td&gt;A template, rule engine or better search tested alongside&lt;/td&gt;
&lt;td&gt;Whether the AI beats a cheap fix&lt;/td&gt;
&lt;td&gt;The alternative must be built well enough to be fair&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That last row is underused and often decisive. If a deterministic template would have delivered 70% of the gain, the honest conclusion is "buy the template", not "the model works".&lt;/p&gt;

&lt;h2&gt;
  
  
  Kill criteria and the "good enough for production" bar
&lt;/h2&gt;

&lt;p&gt;A kill criterion triggers on evidence, not sentiment. Agree three to five of them before launch, in two classes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Mandatory, pass or fail.&lt;/strong&gt; Any cross-record data leakage, any PII leaving the approved boundary, any unauthorised action in a downstream system. One instance ends the experiment regardless of averages. Never fold a mandatory failure into a mean.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Performance thresholds with denominators.&lt;/strong&gt; Accuracy below baseline minus 4 points for two consecutive weeks. Coverage below 60% at week 5. Cost per unit above the manual baseline. Handling time above a stated ceiling.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The teeth are in the pre-authorisation. Your charter states in advance that a triggered criterion forces a decision within five working days: either kill the experiment or file a written exception. Without that clause, a breached threshold becomes "something to watch", and the pilot rolls on to month seven.&lt;/p&gt;

&lt;p&gt;Separately, define what good enough for production means. It is a higher bar than "beat the baseline":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The primary threshold was met on the planned sample, with the confidence stated.&lt;/li&gt;
&lt;li&gt;No mandatory guardrail was breached at any point, not just on average.&lt;/li&gt;
&lt;li&gt;Coverage is high enough to matter. A tool that handles 30% of cases brilliantly is a different business case from one that handles 80% adequately.&lt;/li&gt;
&lt;li&gt;There is a named owner for the failure mode, an audit log of what the system did, and a defined route for the cases it abstains on.&lt;/li&gt;
&lt;li&gt;Cost per outcome is acceptable, including inference, review time and the platform around it.&lt;/li&gt;
&lt;li&gt;The people who do the work were trained, and their adoption is real rather than enthusiastic.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Worked example: claim document extraction in six weeks
&lt;/h2&gt;

&lt;p&gt;A Dubai-based commercial insurer (illustrative, with realistic figures). Six claims clerks process about 3,200 inbound claim packets a month, roughly 150 per working day. Each packet is a PDF bundle: police report, repair invoice, medical bill, photographs. Twelve fields get keyed into the claims system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Week 1 to 2: baseline, no AI anywhere near the workflow.&lt;/strong&gt; Pulled from ticket timestamps and QA records:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Measured baseline&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Median handling time per packet&lt;/td&gt;
&lt;td&gt;14.2 minutes (p90: 31 minutes)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Packet-level first-pass accuracy (all 12 fields correct)&lt;/td&gt;
&lt;td&gt;78%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exception or rework rate&lt;/td&gt;
&lt;td&gt;11%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fully loaded cost per packet&lt;/td&gt;
&lt;td&gt;AED 22.50 (6 clerks at AED 12,000 monthly loaded ÷ 3,200 packets)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Hypothesis.&lt;/strong&gt; "An LLM extraction assistant that pre-fills the 12 intake fields from the packet will cut median handling time from 14.2 minutes to 10 minutes or less on at least 80% of eligible packets, while keeping packet-level first-pass accuracy at or above 78% and the exception rate at or below 11%, over a four-week window on at least 1,000 packets."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sample size.&lt;/strong&gt; Two questions, two calculations. For the time metric, a 4.2 minute reduction with a 6.5 minute standard deviation needs about 38 packets per arm at 5% significance and 80% power. For the accuracy metric, certifying a 78% rate within ±5 points at 95% confidence needs about 264 packets. The accuracy gate is the binding constraint, so allocate 500 packets per arm.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;n_proportion&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;z&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;1.96&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Cases needed to estimate a rate within `margin` points."""&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ceil&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;z&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;margin&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;n_per_arm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;z_a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;1.96&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;z_b&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.8416&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""Cases per arm for a two-sample comparison of means."""&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ceil&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;sd&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;z_a&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;z_b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;delta&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;n_proportion&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.05&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                  &lt;span class="c1"&gt;# 385  (worst case p = 0.5)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;n_proportion&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.05&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.78&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;          &lt;span class="c1"&gt;# 264  (our accuracy gate)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;n_per_arm&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sd&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;6.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;delta&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;4.2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;        &lt;span class="c1"&gt;# 38   (the time metric)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Week 2 to 3: build and calibrate.&lt;/strong&gt; Extraction pipeline, an audit log of every field with the model version and prompt version that produced it, and a QA sampling sheet using the existing rubric. Week 3 runs 100 packets purely to calibrate prompts. Those 100 are training data for the prompt and must not enter the measurement sample.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Week 4 to 6: measurement.&lt;/strong&gt; Every second packet ID is assigned at creation to the AI-assisted queue; the rest go to business as usual. Same reviewers, same rubric, weekly guardrail check. A charter that says what happens at week 4 is the difference between an experiment and a demo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;experiment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;hypothesis&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Median handling time falls from 14.2 min to &amp;lt;= 10 min on &amp;gt;= 80% of packets"&lt;/span&gt;
  &lt;span class="na"&gt;unit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;claim_packet&lt;/span&gt;
  &lt;span class="na"&gt;population&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"All inbound commercial claims packets, 12-field intake"&lt;/span&gt;
  &lt;span class="na"&gt;exclusions&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Litigated claims, multi-policy bundles"&lt;/span&gt;
  &lt;span class="na"&gt;baseline_source&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Ticket timestamps + QA records, 8 weeks to 2026-01-31"&lt;/span&gt;
  &lt;span class="na"&gt;sample&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;control:&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;treatment:&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;window:&lt;/span&gt; &lt;span class="s2"&gt;"4 weeks"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="na"&gt;counterfactual&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;concurrent_randomised&lt;/span&gt;
  &lt;span class="na"&gt;thresholds&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;median_time_min&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;10.0&lt;/span&gt;
    &lt;span class="na"&gt;coverage_pct&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;
  &lt;span class="na"&gt;guardrails&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;packet_accuracy_pct&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;78&lt;/span&gt;   &lt;span class="c1"&gt;# must not fall below
&lt;/span&gt;    &lt;span class="na"&gt;exception_rate_pct&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;11&lt;/span&gt;    &lt;span class="c1"&gt;# must not rise above
&lt;/span&gt;  &lt;span class="na"&gt;kill_criteria&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;"Any PII sent outside the approved model endpoint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;stop immediately"&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"Packet accuracy &amp;lt; 74% for 2 consecutive weeks"&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"Median handling time &amp;gt; 12.5 min at end of week 5"&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"Coverage &amp;lt; 60% at week 5"&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"Cost per packet &amp;gt; AED 22.50 at week 6"&lt;/span&gt;
  &lt;span class="na"&gt;decision&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;owner:&lt;/span&gt; &lt;span class="s2"&gt;"Head of Claims Operations"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;date:&lt;/span&gt; &lt;span class="s2"&gt;"end of week 6"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;sla_days:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Cost per outcome, honestly.&lt;/strong&gt; Assume 60,000 input tokens and 2,000 output tokens per packet at planning rates of USD 3 and USD 15 per million tokens. That is USD 0.21, about AED 0.77, of inference per packet. Your provider's current pricing page is the authority on rates; the point of the arithmetic is that inference is noise against AED 22.50 of labour. The experiment is decided by accuracy and time, not by token cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The trap in the savings number.&lt;/strong&gt; A 30% time reduction is 4.2 minutes × 3,200 packets = 224 hours per month, which is 1.4 full-time equivalents. That is capacity, not cash. If the team stays at six clerks, nobody saves anything until the capacity is used or removed. The readout must name where the 1.4 FTEs go: more packets per month, fewer temporary staff at peak, faster settlement for customers, or a vacancy you do not backfill. This is the single most common reason AI ROI numbers are dismissed by finance.&lt;/p&gt;

&lt;h2&gt;
  
  
  The experiment design template
&lt;/h2&gt;

&lt;p&gt;Copy this into your charter. Every blank is a decision you make in week 1 rather than an argument you have in week 6.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;What to write&lt;/th&gt;
&lt;th&gt;Worked example value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hypothesis&lt;/td&gt;
&lt;td&gt;One falsifiable sentence with mechanism and numbers&lt;/td&gt;
&lt;td&gt;14.2 to ≤10 min on ≥80% of packets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Population and exclusions&lt;/td&gt;
&lt;td&gt;What is in, what is out, and why&lt;/td&gt;
&lt;td&gt;Commercial claims intake; litigated claims out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Baseline metric and source&lt;/td&gt;
&lt;td&gt;Measured, with the system it came from&lt;/td&gt;
&lt;td&gt;Ticket timestamps, 8 weeks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Primary threshold&lt;/td&gt;
&lt;td&gt;The number that means "worked"&lt;/td&gt;
&lt;td&gt;Median ≤10.0 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Coverage bar&lt;/td&gt;
&lt;td&gt;Share of units the system must actually handle&lt;/td&gt;
&lt;td&gt;≥80% of eligible packets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Guardrails&lt;/td&gt;
&lt;td&gt;What must not degrade, with current values&lt;/td&gt;
&lt;td&gt;Accuracy ≥78%, exceptions ≤11%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mandatory rules&lt;/td&gt;
&lt;td&gt;Pass or fail, one strike&lt;/td&gt;
&lt;td&gt;No PII outside approved endpoint&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kill criteria&lt;/td&gt;
&lt;td&gt;Numeric, verifiable, pre-authorised&lt;/td&gt;
&lt;td&gt;Accuracy &amp;lt;74% for 2 weeks, etc.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Counterfactual design&lt;/td&gt;
&lt;td&gt;Which comparison you run and why&lt;/td&gt;
&lt;td&gt;Concurrent randomised, packet level&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sample and window&lt;/td&gt;
&lt;td&gt;n per arm, dates, expected variation covered&lt;/td&gt;
&lt;td&gt;500 per arm, 4 weeks incl. month-end&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Good-enough-for-production&lt;/td&gt;
&lt;td&gt;The bar above "better than baseline"&lt;/td&gt;
&lt;td&gt;Thresholds met, audit log, owner for failures&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost per outcome&lt;/td&gt;
&lt;td&gt;Inference + review + platform, per unit&lt;/td&gt;
&lt;td&gt;AED 0.77 inference vs AED 22.50 labour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Decision owner and date&lt;/td&gt;
&lt;td&gt;Named person, calendar invite, 5-day SLA&lt;/td&gt;
&lt;td&gt;Head of Claims Operations, week 6&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pick one workflow where the current process is already measured or easily measurable.&lt;/strong&gt; If you cannot get a baseline, that is your week 1 problem and your first real deliverable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write the hypothesis as one sentence and send it to the business owner.&lt;/strong&gt; If they would not accept "no" as an answer to it, rewrite it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fill the template table before you fund the build.&lt;/strong&gt; IBM's ordering is deliberate: KPIs in step 4, funding in step 5. Budget holders respond well to a pre-agreed kill criterion because it caps their downside.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set the decision meeting now.&lt;/strong&gt; Put the go/no-go in the calendar for the end of week 6 with the charter as the agenda. An unbooked decision meeting is how pilots become permanent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plan the readout around a decision, not a demo.&lt;/strong&gt; One page: hypothesis, method, results against baseline and threshold, guardrail status, kill criteria status, cost per outcome, and where the reclaimed hours go. Then three outcomes only: scale, one bounded iteration with a stated missing-evidence requirement, or kill.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want a second opinion on a use case before you fund the build, that is exactly where our &lt;a href="https://www.azrty.com/services/ai-strategy" rel="noopener noreferrer"&gt;AI strategy and readiness&lt;/a&gt; work starts: we look at how your business runs, from processes and systems to data, and tell you plainly where AI will pay off, what it takes and what to do first. When the experiment passes and you need the agents, applications and integrations built on your own infrastructure, that is &lt;a href="https://www.azrty.com/services/build" rel="noopener noreferrer"&gt;AI engineering&lt;/a&gt;. Azrty is based in Dubai, and our own team in the UAE does the consulting, the deployment and the support.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/the-six-week-ai-experiment-how-to-design-a-pilot-that-proves-or-kills-a-use-case" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aistrategy</category>
      <category>aiadoption</category>
      <category>aipilots</category>
      <category>experimentdesign</category>
    </item>
    <item>
      <title>The AI data processing agreement: nine clauses to check before you sign</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Wed, 18 Nov 2026 05:15:46 +0000</pubDate>
      <link>https://dev.to/azrty/the-ai-data-processing-agreement-nine-clauses-to-check-before-you-sign-ckl</link>
      <guid>https://dev.to/azrty/the-ai-data-processing-agreement-nine-clauses-to-check-before-you-sign-ckl</guid>
      <description>&lt;p&gt;Your procurement team has forwarded a standard data processing agreement from an AI vendor, attached to a services agreement presented as non-negotiable. It reads like the GDPR-style paperwork you have seen before, but it is missing the clauses that matter most for AI: what happens to your prompts, whether they train the vendor's next model, and where the data actually goes. Here is the checklist we use, clause by clause, so you know exactly what to demand before you sign.&lt;/p&gt;

&lt;p&gt;Whether you are a CTO signing off a copilot rollout or a business leader accepting a vendor's click-through terms, the data processing agreement (DPA) is where the real risk allocation happens. The legal question of whether a UAE company may put customer data into a tool like ChatGPT is answered in our &lt;a href="https://www.azrty.com/blog/can-a-uae-company-put-customer-data-into-chatgpt-under-the-pdpl" rel="noopener noreferrer"&gt;earlier article&lt;/a&gt;. This one is about the contract itself: the document your regulator, your auditors and your customers will ask for after something goes wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a standard SaaS DPA is the wrong starting point
&lt;/h2&gt;

&lt;p&gt;Most vendors hand you a DPA written for productivity software: store a file, send an email, run a report. AI workloads break that model in four ways. Your inputs are unstructured and unpredictable. The vendor's infrastructure may use your content for model improvement unless you stop it. The processing chain is long: cloud host, moderation contractor, support desk, evaluation vendor. And the output may itself become a decision about a person.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Point&lt;/th&gt;
&lt;th&gt;Standard SaaS DPA&lt;/th&gt;
&lt;th&gt;What an AI DPA must add&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Purpose of processing&lt;/td&gt;
&lt;td&gt;"Provide the services"&lt;/td&gt;
&lt;td&gt;Prompts, outputs, embeddings, fine-tuning files and logs named separately&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model training&lt;/td&gt;
&lt;td&gt;Silent, or "improve the services"&lt;/td&gt;
&lt;td&gt;Express prohibition on training and fine-tuning on your data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sub-processors&lt;/td&gt;
&lt;td&gt;Generic affiliates list&lt;/td&gt;
&lt;td&gt;Named list with country and purpose for each, plus notice and objection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transfers&lt;/td&gt;
&lt;td&gt;"Wherever the vendor operates"&lt;/td&gt;
&lt;td&gt;Countries named, transfer mechanism named under PDPL Articles 22 and 23&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retention&lt;/td&gt;
&lt;td&gt;"Per our retention policy" (a URL)&lt;/td&gt;
&lt;td&gt;Fixed periods, deletion on exit, treatment of backups&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Breach notice&lt;/td&gt;
&lt;td&gt;"Without undue delay"&lt;/td&gt;
&lt;td&gt;A hard cap in hours, because your clock to the regulator is 72 hours&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Audit&lt;/td&gt;
&lt;td&gt;"On reasonable request"&lt;/td&gt;
&lt;td&gt;Annual evidence, plus audit rights after an incident&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rights requests&lt;/td&gt;
&lt;td&gt;"Reasonable assistance"&lt;/td&gt;
&lt;td&gt;Response times that fit your own 30-day clock&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automated decisions&lt;/td&gt;
&lt;td&gt;Missing entirely&lt;/td&gt;
&lt;td&gt;Human review and objection handling (PDPL Article 18)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What the PDPL obliges you to put in the contract
&lt;/h2&gt;

&lt;p&gt;The federal &lt;a href="https://www.uaelegislation.gov.ae/en/legislations/1972/download" rel="noopener noreferrer"&gt;Personal Data Protection Law, Federal Decree-Law 45 of 2021&lt;/a&gt;, in force since 2 January 2022, is unusually explicit about contracts. If you sit in DIFC or ADGM, the federal law does not apply to you, but the &lt;a href="https://assets.difc.com/v1/media/edge/images/dubaiintern0078-difcexperie96c5-production-3253/media/project/difcexperiences/difc/difcwebsite/documents/registrars-and-commissioners/guidance-and-handbooks/obligations-of-controllers--processors/controller_and_processor_agreements.pdf" rel="noopener noreferrer"&gt;DIFC Commissioner's controller-processor guidance&lt;/a&gt; is the best available template and covers the same ground.&lt;/p&gt;

&lt;p&gt;Four provisions drive almost everything below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Article 7(5)&lt;/strong&gt;: you must appoint only processors with "sufficient guarantees" to implement the required technical and organisational measures. If you sign without checking, the failure is yours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Article 8(1)&lt;/strong&gt;: processing must follow your instructions and the contract, which must specify "the scope, subject, purpose, nature and type of Personal Data, and the category of the Data Subject". A one-line purpose clause does not satisfy this.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Articles 8(3), 8(4), 8(7) and 8(8)&lt;/strong&gt;: the processor works to a specified purpose and period, then erases the data or hands it back; keeps a record including "any data related to the cross-border movement" of the data; and proves its compliance to you or to the UAE Data Office on request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Article 8(10)&lt;/strong&gt;: where more than one processor is involved, their roles and obligations must be defined in writing, "otherwise they shall be deemed jointly responsible". This is why the sub-processor chain matters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On top of that: Article 9 governs breach reporting, Article 20 sets the security baseline (encryption, pseudonymisation, resilience, restore capability, testing), and Articles 22 and 23 govern cross-border transfers. &lt;a href="https://www.pwc.com/m1/en/services/consulting/technology/cyber-security/documents/uae-data-privacy-responsible-ai-handbook.pdf" rel="noopener noreferrer"&gt;PwC's data privacy and responsible AI handbook for the UAE&lt;/a&gt; summarises the minimum contract content as scope, nature and purpose of processing, the types of personal data and categories of data subjects, the processor's minimum obligations, the controller's rights, and the processor's duty to erase or hand over the data at the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  The nine clauses
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Documented instructions and processing scope
&lt;/h3&gt;

&lt;p&gt;Demand a Schedule 1 that names the AI-specific data types: prompts, completions, generated outputs, embeddings, fine-tuning or training files, evaluation datasets, feedback labels and API logs. It must also name the categories of data subject (your customers, your staff, third parties mentioned in free text) and state that processing is continuous for the term. OpenAI's &lt;a href="https://openai.com/policies/data-processing-addendum/" rel="noopener noreferrer"&gt;Data Processing Addendum&lt;/a&gt;, effective 1 January 2026, does this in its Schedule 1 and states plainly that it acts as data processor and processes "only in accordance with Customer Instructions".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI twist:&lt;/strong&gt; your "documented instructions" should include the configuration choices you make in the product, not just the signed contract. Retention settings, abuse-monitoring options and opt-in toggles are instructions. Record them.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. No training on your data, and no silent human review
&lt;/h3&gt;

&lt;p&gt;The contract, not the marketing page, must say that the vendor will not use your inputs, outputs or feedback to train, fine-tune, evaluate or improve any model, and will not allow humans to read your content except to investigate abuse or a support case you raised. Where the vendor wants improvement rights, it must be a separate written opt-in you can refuse without losing the service.&lt;/p&gt;

&lt;p&gt;OpenAI states it does not train on data from ChatGPT Enterprise, Business, Edu or the API by default, with opt-in only via the API dashboard. Anthropic goes further in its &lt;a href="https://assets.claude.com/cbc0cee5a5580ef30c81ccf745ef439aa7c47921.pdf" rel="noopener noreferrer"&gt;Commercial Terms of Service&lt;/a&gt;, effective 17 June 2025: "Anthropic may not train models on Customer Content." Both are worth citing in your review, but write the rule into your contract anyway: product pages change, contracts do not.&lt;/p&gt;

&lt;p&gt;Watch for weasel words such as "aggregated or de-identified data" with no definition. The PDPL defines anonymisation strictly: data must not be linkable to a data subject. Ask how the vendor achieves that before you accept the carve-out.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Cross-border transfer mechanism (Articles 22 and 23)
&lt;/h3&gt;

&lt;p&gt;Article 22 allows transfers to jurisdictions the UAE Data Office recognises as having an adequate level of protection. No such whitelist has been published, so in practice you rely on Article 23(1)(a): a contract or agreement obliging the recipient to adopt the measures, controls and requirements of the PDPL, with enforceability provisions. PwC's handbook also lists the safeguards the Executive Regulations contemplate for transfers: standard contractual clauses, binding internal rules, codes of conduct and accreditation certificates.&lt;/p&gt;

&lt;p&gt;The clause must therefore name, in writing: the importing legal entity, every country where the data will be processed or stored, the transfer mechanism you are relying on (Article 23(1)(a) contractual safeguards, plus SCCs where the vendor offers them), and the same obligations on onward transfers to sub-processors. Note that a vendor's EU or UK transfer module does nothing for your PDPL position: OpenAI's DPA section 4 covers EEA, Swiss and UK data specifically, not UAE data. You must build your own PDPL route and document the risk assessment for each destination.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Sub-processors: list, notice, objection and flow-down
&lt;/h3&gt;

&lt;p&gt;Under Article 8(10), every link in the chain needs a written contract defining roles, or everyone is jointly responsible. The DIFC guidance is blunt: a processor may not engage a sub-processor without prior written authorisation, and the processor remains "fully liable" for the sub-processor's failings.&lt;/p&gt;

&lt;p&gt;What good looks like is OpenAI's clause 2.9: general authorisation for a published sub-processor list, notice of changes by blog post or email, a 30-day objection window, commercially reasonable alternatives, and termination with a refund if the objection is unresolved. Its &lt;a href="https://openai.com/policies/sub-processor-list-april-2025-update/" rel="noopener noreferrer"&gt;sub-processor list&lt;/a&gt; names each entity, the product it touches, the processing location and the purpose: Microsoft for cloud infrastructure (including the UAE), TaskUs in the Philippines for moderation-related support, Intercom and Salesforce for customer support, and so on. Demand that level of detail as an annex, subscribe to change notices, and assign a named owner for the objection clock.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Retention, return and erasure
&lt;/h3&gt;

&lt;p&gt;Articles 8(3) and 8(4) are your anchors: processing is for a specified purpose and period, then the data is erased or handed over. A clause that says deletion happens "in accordance with our retention policy" is not a term; it is a link the vendor can edit.&lt;/p&gt;

&lt;p&gt;Ask for: a stated retention period for prompts and outputs during the term (zero or 30 days is common for enterprise APIs), a deletion deadline after expiry, a return option in machine-readable form, and honest treatment of backups. Anthropic's &lt;a href="https://assets.claude.com/d16e60156ee20e9a1c5cfff5c0cabfba39b7c9bf.pdf" rel="noopener noreferrer"&gt;DPA&lt;/a&gt; commits to deletion within 30 days of termination, subject to narrow exceptions for law, disputes and harmful use. The DIFC guidance accepts that backup data may survive briefly if it is immediately put beyond use and destroyed on the next deletion cycle; get that stated in writing.&lt;/p&gt;

&lt;p&gt;Anthropic's &lt;a href="https://platform.claude.com/docs/en/manage-claude/api-and-data-retention" rel="noopener noreferrer"&gt;API and data retention documentation&lt;/a&gt; is a good reference point: zero data retention (ZDR) is available per organisation on request, but models it designates as "Covered Models" require 30-day retention and cannot be used under ZDR. Check which tier you are actually buying.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Security measures (Article 20)
&lt;/h3&gt;

&lt;p&gt;Article 20 requires encryption, pseudonymisation where appropriate, resilience, restore capability and regular testing of controls. Your DPA should incorporate a technical and organisational measures (TOMs) annex that you can read, not a promise to "use industry-standard security". Ask for the current ISO/IEC 27001 certificate and SOC 2 Type II report, confirm encryption in transit and at rest, check tenant isolation for retrieval or fine-tuning data, and require confidentiality commitments from anyone with access, matching DIFC clause 24(5)(b)(iii).&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Breach notification (Article 9)
&lt;/h3&gt;

&lt;p&gt;Article 9(3) requires a processor to notify you "as soon as it becomes aware" of a breach. You then carry the clock: PwC's handbook states that controllers must notify the UAE Data Office within 72 hours, and notify affected data subjects immediately where their privacy or confidentiality is prejudiced. Article 9(1) also lists what the notification must contain: nature and form of the breach, approximate number of records, DPO details, expected effects and corrective measures.&lt;/p&gt;

&lt;p&gt;"Without undue delay" from the vendor is not enough to protect a 72-hour clock. Negotiate "without undue delay and in any event within 24 hours of becoming aware", with content that maps to Article 9(1), plus assistance with your notification to the regulator.&lt;/p&gt;

&lt;h3&gt;
  
  
  8. Audit and evidence rights (Article 8(8))
&lt;/h3&gt;

&lt;p&gt;Article 8(8) says the processor must provide all means to prove its compliance when you or the Bureau ask. In practice you will rarely get an on-site audit at a hyperscaler, so the contract must give you the next best thing: annual delivery of audit reports (SOC 2 Type II, ISO 27001, penetration test summaries), a right to ask questions and get written answers, and an expanded audit right triggered by an incident or a regulator's request. OpenAI's clause 2.8 offers exactly this shape: evidence once a year at most, with a summary of audit reports substituting for an inspection. Push for a named number of days to produce reports after request.&lt;/p&gt;

&lt;h3&gt;
  
  
  9. Data subject rights, automated decisions and DPIA support
&lt;/h3&gt;

&lt;p&gt;You have 30 days to answer a data subject request under the PDPL regime described in the PwC handbook, and Articles 13 to 18 give individuals rights over access, correction, erasure and restriction. Article 18 is the AI clause that almost no SaaS DPA contains: individuals can object to decisions from automated processing that have legal or similarly significant effects, and you must provide human review on request. If the AI assistant only drafts replies, this is light; if it approves refunds or triages claims, it is central.&lt;/p&gt;

&lt;p&gt;The contract must therefore promise: assistance with rights requests within a short fixed period (5 business days is a workable ask), no direct responses to your data subjects without your authorisation, support for your data protection impact assessment (Article 21 requires one for high-risk new technology before processing starts), and the information you need for your Article 8(7) record. That record should look something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Entry for your Article 8(7) processing record
&lt;/span&gt;&lt;span class="na"&gt;vendor&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Example AI Platform Inc."&lt;/span&gt;
&lt;span class="na"&gt;role&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;processor&lt;/span&gt;
&lt;span class="na"&gt;contract&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"MSA 2026-014 + DPA v3, effective 2026-01-01"&lt;/span&gt;
&lt;span class="na"&gt;purpose&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"AI customer support assistant for WhatsApp and web chat"&lt;/span&gt;
&lt;span class="na"&gt;data_categories&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"mobile"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"free-text conversation content"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;data_subjects&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"customers"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"staff mentioned in conversation"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;processing_locations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"UAE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"United States"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Philippines"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;transfer_mechanism&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"PDPL Art. 23(1)(a) contractual safeguards + SCCs where applicable"&lt;/span&gt;
&lt;span class="na"&gt;sub_processors&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;name:&lt;/span&gt; &lt;span class="s2"&gt;"cloud provider"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;location:&lt;/span&gt; &lt;span class="s2"&gt;"UAE"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;purpose:&lt;/span&gt; &lt;span class="s2"&gt;"inference hosting"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;name:&lt;/span&gt; &lt;span class="s2"&gt;"moderation contractor"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;location:&lt;/span&gt; &lt;span class="s2"&gt;"Philippines"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;purpose:&lt;/span&gt; &lt;span class="s2"&gt;"content moderation"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;retention&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;prompts_outputs_days:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;deletion_after_termination_days:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;security&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"ISO/IEC 27001:2022"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"SOC 2 Type II (2025)"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;breach_notice_hours&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the major AI vendors already give you
&lt;/h2&gt;

&lt;p&gt;Use this as a baseline when you review their paper. It is not a substitute for reading it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Clause&lt;/th&gt;
&lt;th&gt;OpenAI DPA (effective 1 January 2026)&lt;/th&gt;
&lt;th&gt;Anthropic DPA and Commercial Terms (2025)&lt;/th&gt;
&lt;th&gt;What to do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Training on your content&lt;/td&gt;
&lt;td&gt;Not used for training by default on API and Enterprise data, opt-in only&lt;/td&gt;
&lt;td&gt;Commercial Terms section B: "may not train models on Customer Content"&lt;/td&gt;
&lt;td&gt;Still write the prohibition into your contract&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deletion after you leave&lt;/td&gt;
&lt;td&gt;Return or delete at your instruction after the term (clause 2.11)&lt;/td&gt;
&lt;td&gt;Delete within 30 days of termination, with narrow exceptions (part H)&lt;/td&gt;
&lt;td&gt;Add a deadline and a certificate of deletion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retention during the term&lt;/td&gt;
&lt;td&gt;ZDR available on some API paths (see sub-processor list footnote)&lt;/td&gt;
&lt;td&gt;ZDR per organisation; designated models require 30-day retention&lt;/td&gt;
&lt;td&gt;Confirm the tier and the model before you rely on ZDR&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sub-processor changes&lt;/td&gt;
&lt;td&gt;Published list, notice, 30-day objection (clause 2.9)&lt;/td&gt;
&lt;td&gt;List-based authorisation&lt;/td&gt;
&lt;td&gt;Subscribe to notices; keep an objection owner&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Contracting entity for a UAE customer&lt;/td&gt;
&lt;td&gt;OpenAI OpCo, LLC (non-EEA)&lt;/td&gt;
&lt;td&gt;Anthropic, PBC (non-EEA)&lt;/td&gt;
&lt;td&gt;Check it matches the entity in your order form&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Worked example: an AI support assistant in a Dubai services firm
&lt;/h2&gt;

&lt;p&gt;Scenario: a Dubai services company with 250 staff runs 50,000 customer conversations a month through WhatsApp Business and web chat. It is buying an enterprise LLM API tier for AED 220,000 a year (hypothetical figures for this example). The conversations contain names, mobile numbers, email addresses and free text that occasionally mentions health or family matters, so sensitive personal data may appear.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Map the flows first.&lt;/strong&gt; The vendor's sub-processor list shows three entities touching content: the cloud host (processing in the UAE among other regions), a moderation contractor in the Philippines and a support tool in the United States. That is two Article 23 transfers before anyone writes a prompt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fix the scope schedule.&lt;/strong&gt; The vendor's Schedule 1 says "unstructured data" and "continuous". Ask for the four data categories above, the two data subject groups and an explicit note about possible sensitive data. Then paste the result into the YAML record above.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lock the training rule.&lt;/strong&gt; The platform docs say no training by default for the API. Put the prohibition in the contract anyway, disable any opt-in toggles in the admin console, and record who holds the admin roles.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Close the transfer gap.&lt;/strong&gt; No UAE whitelist exists, so execute the Article 23(1)(a) contractual safeguards with the importing entity, attach SCCs where the vendor offers them, and run a written transfer risk assessment for the Philippines and US processing, as PwC's handbook recommends.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set the sub-processor clock.&lt;/strong&gt; Subscribe to change notices. Assign the legal lead as the owner of the 30-day objection window and diary it. Request email notice rather than blog-only notice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fix retention.&lt;/strong&gt; Negotiate 30-day retention for prompts and outputs, deletion within 30 days after termination and a written statement on backups. If the compliance team needs zero retention, check whether the models in scope are ZDR-eligible before you commit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Collect security evidence.&lt;/strong&gt; ISO/IEC 27001 certificate, current SOC 2 Type II report and the TOMs annex before the pilot moves to production.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cap the breach notice at 24 hours.&lt;/strong&gt; Your own clock to the UAE Data Office is 72 hours from awareness, and you need time to assess records, effects and corrective action for the Article 9(1) report.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fit the rights clock.&lt;/strong&gt; Require DSR assistance within 5 business days, because you have 30 days to answer. If the assistant is ever used to decide service outcomes rather than draft text, add Article 18 human review language and complete a data protection impact assessment before go-live.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Total effort to negotiate the missing items: roughly two legal reviews and one security questionnaire. The cost of getting it wrong is a regulator asking why your processor's Philippines-based moderation queue held customer conversations with no documented transfer basis.&lt;/p&gt;

&lt;h2&gt;
  
  
  Red flags that should stop you signing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"We may use Customer Data to improve our services", with no default-off switch and no opt-in process.&lt;/li&gt;
&lt;li&gt;No named sub-processor list, or "our affiliates and trusted partners" with no locations.&lt;/li&gt;
&lt;li&gt;Deletion "in accordance with our retention policy", or a 12-month post-termination deletion window with no justification.&lt;/li&gt;
&lt;li&gt;Breach notice "without undue delay" and nothing more.&lt;/li&gt;
&lt;li&gt;A transfer clause that says only "we comply with applicable data protection laws", with no mechanism, entity or country named.&lt;/li&gt;
&lt;li&gt;No audit rights and no commitment to provide third-party reports.&lt;/li&gt;
&lt;li&gt;Silence on model training, human review and automated decisions: the three AI-specific gaps a generic DPA never fills.&lt;/li&gt;
&lt;li&gt;The vendor treats the DPA as non-negotiable and will not discuss even a schedule amendment. As the DIFC guidance puts it, if a party resists basic data protection clauses, ask whether they can be trusted with the data at all.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;p&gt;Before the next AI contract reaches your desk: build the processing record template (the YAML in clause 9), name one owner for sub-processor change notices, and decide your standard position on the four deal-breakers (training, transfers, retention, breach hours). Then review the DPAs you already have against these nine clauses, because the tools already in use are the real exposure.&lt;/p&gt;

&lt;p&gt;If you want support, our UAE-based team does this work as part of &lt;a href="https://www.azrty.com/services/ai-strategy" rel="noopener noreferrer"&gt;AI strategy and readiness&lt;/a&gt;: we map how data flows through your AI use cases and tell you plainly where the contractual gaps are and what to demand. Where a vendor's terms will never close the gap, the answer is often to keep the data on your own platform instead, which is what our &lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;AI infrastructure&lt;/a&gt; work covers. Either route, the goal is the same: when the regulator or the customer asks what your AI vendor may do with their data, the answer is in a signed document, not in a footnote on someone else's website.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/the-ai-data-processing-agreement-nine-clauses-to-check-before-you-sign" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aiinfrastructure</category>
      <category>pdpl</category>
      <category>dataprocessingagreement</category>
      <category>uaecompliance</category>
    </item>
    <item>
      <title>Should We Build or Buy AI? A Layer-by-Layer Build, Buy or Partner Framework</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Wed, 18 Nov 2026 05:10:46 +0000</pubDate>
      <link>https://dev.to/azrty/should-we-build-or-buy-ai-a-layer-by-layer-build-buy-or-partner-framework-2d3j</link>
      <guid>https://dev.to/azrty/should-we-build-or-buy-ai-a-layer-by-layer-build-buy-or-partner-framework-2d3j</guid>
      <description>&lt;p&gt;Ask whether to build or buy AI once, at portfolio level, and you will almost certainly get it wrong: too much in-house engineering on commodity plumbing, too little investment in the logic and data that set you apart. The fix is to decide per layer of the stack, against weighted criteria and hard data-residency gates, with the exit priced before you sign. This guide gives CTOs and technical founders in the UAE the framework, the weights, a worked example with the arithmetic, and the contract terms that make the partner route safe.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "build or buy" is the wrong question
&lt;/h2&gt;

&lt;p&gt;Most AI build-or-buy discussions go wrong at the framing. A steering committee asks "should we build or buy AI?", hears two numbers and picks one answer for the whole organisation. Two failure modes follow.&lt;/p&gt;

&lt;p&gt;The first is over-building. Teams spend a year or more assembling a model gateway, retrieval pipeline, evaluation harness and agent runtime that vendors already sell as products, and finish with no edge over anyone else. The second is under-investing: the same "just buy it" logic gets applied to the workflows and proprietary data that actually differentiate the business, so every competitor running the same platform ends up with the same AI. The &lt;a href="https://www.techtarget.com/news/Build-vs-buy-AI-A-CIOs-decision-matrix/846570/" rel="noopener noreferrer"&gt;TechTarget CIO decision matrix&lt;/a&gt; makes the point plainly: build-versus-buy is too often treated as a purely technology decision, when the outcome actually turns on strategic alignment, complexity, resourcing, total cost and lock-in.&lt;/p&gt;

&lt;p&gt;For CTOs and technical founders in the UAE the pressure is sharper than average. Vendor pitches arrive with AI embedded in everything you already licence, the pool of engineers who have run LLM systems in production is thin, and data rules constrain where inference can run. The question is not "build or buy". It is a portfolio of decisions, one per layer of the stack, each with three verdicts: build, buy or partner. Each verdict needs an exit price attached before you commit.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack, layer by layer
&lt;/h2&gt;

&lt;p&gt;Gartner's "AI technology sandwich" is the right map of what you are actually deciding between. In its &lt;a href="https://emt.gartnerweb.com/ngw/globalassets/en/research/documents/10-questions-to-ask-about-your-ai-build-vs-buy-decisions.pdf" rel="noopener noreferrer"&gt;10 questions to ask about your AI build vs buy decisions&lt;/a&gt;, AI reaches an organisation from three directions: embedded AI in software you already licence (SAP, ServiceNow, Salesforce), bring-your-own AI that departments buy for themselves, and built or blended AI your central teams own. Trust, risk and security management (TRiSM) wraps all three, while data management, budget and the vendor ecosystem sit underneath.&lt;/p&gt;

&lt;p&gt;For a build-or-buy decision, cut that sandwich into four layers. Each has its own default.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;What sits in it&lt;/th&gt;
&lt;th&gt;Usual default&lt;/th&gt;
&lt;th&gt;Build when&lt;/th&gt;
&lt;th&gt;Buy when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Foundation models&lt;/td&gt;
&lt;td&gt;LLMs, embedding, reranking, speech and vision models&lt;/td&gt;
&lt;td&gt;Adopt, do not train&lt;/td&gt;
&lt;td&gt;Evaluation shows prompting and retrieval fall short and you hold labelled data for fine-tuning&lt;/td&gt;
&lt;td&gt;Almost always; approve two or more models per data class so you can switch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Platform and orchestration&lt;/td&gt;
&lt;td&gt;Model gateway, agent runtime, identity and permissions, logging, evaluation tooling, Kubernetes, GPU capacity&lt;/td&gt;
&lt;td&gt;Buy a platform or adopt open source with a support plan&lt;/td&gt;
&lt;td&gt;The platform is your product, or no product meets a hard constraint such as in-country-only inference&lt;/td&gt;
&lt;td&gt;You need governed production on a predictable budget&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Applications and agents&lt;/td&gt;
&lt;td&gt;Prompts, tool definitions, workflow steps, approval points, interfaces&lt;/td&gt;
&lt;td&gt;Build or configure on the platform&lt;/td&gt;
&lt;td&gt;The workflow is how you compete, or depends on your own systems and rules&lt;/td&gt;
&lt;td&gt;The task is the same in every company, such as meeting notes or general drafting&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data and retrieval&lt;/td&gt;
&lt;td&gt;Connectors, chunking, permission mapping, vector stores, evaluation sets&lt;/td&gt;
&lt;td&gt;Own the knowledge, buy the plumbing&lt;/td&gt;
&lt;td&gt;Sources, permissions or document types are unusual&lt;/td&gt;
&lt;td&gt;Packaged retrieval covers your sources and respects your access rules&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two practical notes for Gulf organisations. First, count the embedded AI you already pay for before approving anything new: features arriving inside your ERP, CRM and service desk renewals are usually the largest and fastest-growing source of AI capability, and stacking separate tools on top creates overlap and technical debt. Second, the platform layer is where residency requirements bite hardest. If processing and logs must stay in the UAE, the gateway and runtime decision is a hard constraint, not a preference, and it shapes every layer above it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Seven criteria and two hard gates
&lt;/h2&gt;

&lt;p&gt;Apply the gates before any scoring.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gate 1: data classification and residency.&lt;/strong&gt; Classify the data each system will touch as public, internal, confidential or regulated. The UAE's Personal Data Protection Law (&lt;a href="https://www.uaelegislation.gov.ae/en/legislations/1972/download" rel="noopener noreferrer"&gt;Federal Decree-Law No. 45 of 2021&lt;/a&gt;, in force from 2 January 2022) sets conditions on cross-border transfer in Articles 22 and 23 rather than a blanket localisation rule, but sector rules are stricter: bank master systems of record must stay in the UAE under the Central Bank's outsourcing regulation, health data may not leave the country without a permit under Federal Law No. 2 of 2019, and DIFC and ADGM entities run their own transfer regimes. If an option cannot keep processing, prompts and logs where policy requires, it is out whatever its score.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gate 2: your regulatory role.&lt;/strong&gt; Building can change your legal position. Under Article 25 of the EU AI Act, a deployer becomes the provider of a high-risk system if it brands one, substantially modifies it, or changes its intended purpose. If your systems or customers reach the EU, check which side of that line each option puts you on.&lt;/p&gt;

&lt;p&gt;Then score each remaining option against seven weighted criteria.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Criterion&lt;/th&gt;
&lt;th&gt;Weight&lt;/th&gt;
&lt;th&gt;What a 5 looks like&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Differentiation&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;Protects or creates an advantage competitors cannot buy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data sensitivity and residency&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;Data stays where policy requires, with full control of prompts and logs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Skills and capacity&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;Your organisation can run and improve it for the next three years&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total cost of ownership&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;Lowest three-year cost at forecast volume, run costs included&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Speed to value&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;Earliest useful production result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lock-in and exit&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;Assets export cleanly and the exit has a known price&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compliance and audit&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;Evidence for regulators and auditors is complete and in your hands&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Score every option from 1 (poor fit) to 5 (strong fit) per criterion, multiply by the weight, add up, and divide by 5 for a score out of 100. Agree the weights before anyone scores. Where two options land within a few points, run a short structured proof of concept on both, on your own data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: a customs query agent for a Dubai logistics operator
&lt;/h2&gt;

&lt;p&gt;A Dubai-headquartered logistics group with about 3,800 staff wants an agent that reads shipment files (bills of lading, invoices, prior correspondence) and drafts responses to customs queries and claim correspondence for a 25-person documentation team. Volume assumption: 600 queries per working day. The hard gate is that shipment files, customer data and model logs stay in the UAE, because client contracts and PDPL transfer conditions require it.&lt;/p&gt;

&lt;p&gt;Three options are on the table:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Build&lt;/strong&gt;: an in-house team assembles it on open-source frameworks, running models through a gateway on the group's own infrastructure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Buy&lt;/strong&gt;: a document AI product with a UAE cloud region, configured to the vendor's workflow templates.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Partner&lt;/strong&gt;: an engineering firm builds it on the group's platform and hands over the code, prompts and evaluation sets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Scoring it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Criterion&lt;/th&gt;
&lt;th&gt;Weight&lt;/th&gt;
&lt;th&gt;Build&lt;/th&gt;
&lt;th&gt;Buy&lt;/th&gt;
&lt;th&gt;Partner&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Differentiation&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data sensitivity and residency&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Skills and capacity&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total cost of ownership&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Speed to value&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lock-in and exit&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compliance and audit&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Score out of 100&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;72&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;67&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;75&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The arithmetic for the partner option is (20x4 + 20x4 + 15x4 + 15x3 + 10x3 + 10x4 + 10x4) / 5 = 375 / 5 = 75. Build comes to 360 / 5 = 72, buy to 335 / 5 = 67. Here is the calculation as code, so the steering group can rerun it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="no"&gt;WEIGHTS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"differentiation"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"data_residency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"skills"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"tco"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"speed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lock_in"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"compliance"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;scores&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;   &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"differentiation"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"data_residency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"skills"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="s2"&gt;"tco"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"speed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lock_in"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"compliance"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"buy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;     &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"differentiation"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"data_residency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"skills"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="s2"&gt;"tco"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"speed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lock_in"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"compliance"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"partner"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"differentiation"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"data_residency"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"skills"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="s2"&gt;"tco"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"speed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"lock_in"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"compliance"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;option&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;WEIGHTS&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="no"&gt;WEIGHTS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;option&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# build 72.0, buy 67.0, partner 75.0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now test the weights, because the matrix's real job is to expose the assumptions the decision rests on. If the group decides the workflow is less differentiating than it first argued (differentiation drops from 20 to 10) and admits it cannot staff an in-house team (skills rises from 15 to 25), build falls to 66, buy rises to 73 and partner stays at 75. The steering group should be arguing about weights, not conclusions.&lt;/p&gt;

&lt;p&gt;Run cost deserves its own line. Run-rate cost is not the same as licence cost: it scales with volume, model choice and the number of steps an agent takes. A small, quantised model and a frontier model differ in per-token cost by orders of magnitude, and a multi-step agent run (retrieval, drafting, rule checks, revision) multiplies the per-call cost by the number of steps. Cost the run-rate at real volume and include that multiplier. A "buy" comparison that quotes per-seat licensing without a run-rate is not a comparison at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  The partner route, and the terms that make it safe
&lt;/h2&gt;

&lt;p&gt;Partnering covers several arrangements: an integrator builds on your platform, a vendor's services team customises its product, or external engineers work inside your teams under a forward-deployed engineering (FDE) model.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Route&lt;/th&gt;
&lt;th&gt;Time to first production system&lt;/th&gt;
&lt;th&gt;Cost over 2 to 3 years&lt;/th&gt;
&lt;th&gt;Knowledge of your business&lt;/th&gt;
&lt;th&gt;Code and IP ownership&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;In-house team&lt;/td&gt;
&lt;td&gt;Slowest: hire first, then build&lt;/td&gt;
&lt;td&gt;Looks cheapest on paper, with rework risk&lt;/td&gt;
&lt;td&gt;Builds up over time&lt;/td&gt;
&lt;td&gt;Yours&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Partner or consultancy&lt;/td&gt;
&lt;td&gt;Fastest: the team exists&lt;/td&gt;
&lt;td&gt;Higher upfront, designed for lower run cost&lt;/td&gt;
&lt;td&gt;Must be learned per project&lt;/td&gt;
&lt;td&gt;Only if the contract says so&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hybrid, partner then handover&lt;/td&gt;
&lt;td&gt;Fast start, then moves in-house&lt;/td&gt;
&lt;td&gt;Middle, run cost designed in&lt;/td&gt;
&lt;td&gt;Transferred to your team by contract&lt;/td&gt;
&lt;td&gt;Yours&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Partner arrangements carry a real dependency risk. If the partner owns the code, prompts and evaluation sets, or if knowledge transfer is deferred to a single training week at the end, you end up renting a capability you cannot maintain and cannot leave. The warning is as much about labelling as technology: "forward deployed" is now applied to ordinary implementation and consulting, sometimes at premium fees and without delivery depth.&lt;/p&gt;

&lt;p&gt;Whatever the arrangement, put these terms in the contract before work starts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ownership of the code, prompts, agent definitions, tool configurations and evaluation sets.&lt;/li&gt;
&lt;li&gt;Knowledge-transfer milestones with named internal owners, not a final training week.&lt;/li&gt;
&lt;li&gt;Access to logs, traces and test results during and after the engagement.&lt;/li&gt;
&lt;li&gt;Documentation good enough for a different team to run the system.&lt;/li&gt;
&lt;li&gt;An exit date, a handover plan and the price of support afterwards.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Settle governance, IP and exit responsibilities before signing; embed external engineers with your domain experts during delivery; then execute the exit plan rather than extending because the team "is not quite ready". The &lt;a href="https://supertype.ai/ai-build-buy-partner-guide" rel="noopener noreferrer"&gt;Supertype build, buy or partner guide&lt;/a&gt; reaches the same conclusion from the delivery side: judge partners on total cost over the system's lifetime, and expect run-time cost to outgrow build-time cost.&lt;/p&gt;

&lt;p&gt;This is also where our own role sits. Azrty is a UAE company based in Dubai, and our own team does the consulting, the deployment and the support. The partner arrangement we run is deliberate: we design, build and run the platform layer with you (GPU infrastructure, one gateway for every model, Kubernetes and pipelines) under &lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;AI infrastructure&lt;/a&gt;, and the engagement is structured so the skills stay with your team when we step back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Price the exit before you commit
&lt;/h2&gt;

&lt;p&gt;Buy decisions age badly when nobody writes down the exit. The switchable assets are the ones that decide what leaving costs: prompts, agent definitions, evaluation sets and conversation logs. Keep them in your control, in formats you own, not buried in a vendor console. Four things make an exit affordable, and all four are cheaper to arrange at the start:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Keep the switchable assets in your control.&lt;/strong&gt; Prompts, agent definitions, evaluation sets and conversation logs live in formats you own, versioned in your own repositories.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the model layer swappable.&lt;/strong&gt; One OpenAI-compatible gateway in front of approved models, per data class, gives you a single place to route, budget and swap:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Illustrative model approvals per data class behind one gateway
&lt;/span&gt;&lt;span class="na"&gt;data_classes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;public&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;models&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;small-hosted-model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;mid-tier-hosted-model&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;confidential_uae&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;models&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;self-hosted-open-model&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;   &lt;span class="c1"&gt;# processing and logs stay in the UAE
&lt;/span&gt;    &lt;span class="na"&gt;residency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;uae-only&lt;/span&gt;
&lt;span class="na"&gt;budgets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;default_monthly_usd&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;15000&lt;/span&gt;
  &lt;span class="na"&gt;alert_at_percent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Write the exit price into the business case&lt;/strong&gt;: a named fallback model, an estimated re-implementation effort in person-weeks, and a data-export test run once a year, not once at termination.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Negotiate portability clauses&lt;/strong&gt;: explicit data export terms, price-change notice periods, and what happens if the vendor is acquired or shut down.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;p&gt;If you take one process from this article, take this one:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Map your AI landscape into the four layers and mark the embedded AI you already pay for. You will usually find two or three decisions hiding inside one question.&lt;/li&gt;
&lt;li&gt;Classify the data each use case touches and set the residency and regulatory-role gates. Anything that fails a gate is removed from the shortlist.&lt;/li&gt;
&lt;li&gt;Agree the weights before anyone scores. Score build, buy and partner per layer from 1 to 5, then rerun the arithmetic with the weights reversed to see which assumption the answer rests on.&lt;/li&gt;
&lt;li&gt;Cost the run-rate at real volume, including the multi-step agent overhead. Buying at demo volume is how budgets break.&lt;/li&gt;
&lt;li&gt;Price the exit as a line item: fallback model, export test, re-implementation estimate.&lt;/li&gt;
&lt;li&gt;Write the decision down and set the review triggers:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;decision&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;customs-query-agent&lt;/span&gt;
&lt;span class="na"&gt;layer&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;applications-and-data&lt;/span&gt;
&lt;span class="na"&gt;verdict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;partner&lt;/span&gt;
&lt;span class="na"&gt;gate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;data_residency&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;pass&lt;/span&gt;   &lt;span class="c1"&gt;# processing and logs stay in the UAE
&lt;/span&gt;&lt;span class="na"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s"&gt;build:&lt;/span&gt; &lt;span class="mi"&gt;72&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;buy:&lt;/span&gt; &lt;span class="mi"&gt;67&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;partner:&lt;/span&gt; &lt;span class="mi"&gt;75&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;handover&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;code, prompts and evaluation set at milestone 3&lt;/span&gt;
  &lt;span class="na"&gt;fallback_model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;named at design time&lt;/span&gt;
&lt;span class="na"&gt;review_triggers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;model price change above 20%&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;volume exceeds 2x the business case&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;vendor changes terms, pricing or roadmap&lt;/span&gt;
&lt;span class="na"&gt;owner&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;head of engineering&lt;/span&gt;
&lt;span class="na"&gt;review_by&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2027-05-01&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review each layer once a year even without a trigger: model prices and capabilities move faster than contracts, and today's build decision may have a strong alternative within 12 months. If you want a second opinion on where your layers land, this exercise is exactly what our &lt;a href="https://www.azrty.com/services/ai-strategy" rel="noopener noreferrer"&gt;AI strategy and readiness&lt;/a&gt; engagement does, and we run it with your team in the UAE rather than at a distance.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/should-we-build-or-buy-ai-a-layer-by-layer-build-buy-or-partner-framework" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aistrategy</category>
      <category>buildvsbuy</category>
      <category>aiadoption</category>
      <category>enterprisearchitecture</category>
    </item>
    <item>
      <title>GPU inference cluster TCO: PUE and electricity costs</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Wed, 18 Nov 2026 05:10:45 +0000</pubDate>
      <link>https://dev.to/azrty/gpu-inference-cluster-tco-pue-and-electricity-costs-14a4</link>
      <guid>https://dev.to/azrty/gpu-inference-cluster-tco-pue-and-electricity-costs-14a4</guid>
      <description>&lt;p&gt;The GPU sticker price is 30 to 40 per cent of what an inference cluster really costs. The rest is electricity at facility prices rather than nameplate watts, cooling, interconnect fabric, storage, people, and the spare capacity you hold for traffic peaks. Here is the full three-year model, a fillable formula, and a worked example for an 8x H100 node in Dubai, showing why utilization swings the answer more than every other variable combined.&lt;/p&gt;

&lt;p&gt;The total cost of ownership of a GPU inference cluster is set by three things: PUE-adjusted electricity, operations headcount and utilization, not by the GPU price. The GPU line on the purchase order is the smallest, most negotiable part of the bill. Recent TCO analysis puts the silicon at 30 to 40 per cent of true self-hosted infrastructure cost, with real monthly spend running 2.5 to 3 times the hardware cost once staffing and operations are counted (&lt;a href="https://www.hostrunway.com/blog/local-llm-on-dedicated-servers-vs-cloud-apis-tco-comparison-in-2026/" rel="noopener noreferrer"&gt;HostRunway&lt;/a&gt;). If you have already decided to buy inference GPUs, the number you take to the board has to cover electricity at facility prices rather than nameplate watts, cooling, the interconnect fabric, storage, people, and the spare capacity you hold for traffic peaks. This article gives you the whole model: a fillable formula, every line item with a source you can defend, a worked example for an 8x H100 node in Dubai, and the one variable that swings the answer more than all the others combined: utilization.&lt;/p&gt;

&lt;p&gt;This is deliberately not the buy-versus-rent question. Whether on-prem beats an API at your token volume is a separate decision, and the sources below cover it well. Here we assume the build decision has been made, often for reasons that override price: data residency, sovereignty, latency floors or model control. Your job now is to produce a three-year number that survives a finance review.&lt;/p&gt;

&lt;h2&gt;
  
  
  GPU inference cluster TCO: the fillable formula
&lt;/h2&gt;

&lt;p&gt;The cleanest formulation comes from Kentino's on-prem cost model: three-year total cost divided by tokens actually served, where the denominator depends on utilization and the numerator is mostly fixed (&lt;a href="https://kentino.com/pages/cost-per-million-tokens-on-prem-vs-cloud" rel="noopener noreferrer"&gt;Kentino&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cost per Mtok =
    (capex + 3y electricity + 3y maintenance + 3y ops)
    / (sustained tok/s x utilization x 3 x 8,760 x 3,600 / 1e6)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In code, so you can drop it into your own model:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;tco_per_mtok&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;capex&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                   &lt;span class="c1"&gt;# servers, GPUs, fabric, storage, rack, install&lt;/span&gt;
    &lt;span class="n"&gt;cluster_kw_it&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;           &lt;span class="c1"&gt;# total IT draw of the cluster, kW&lt;/span&gt;
    &lt;span class="n"&gt;pue&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                     &lt;span class="c1"&gt;# measured or assumed facility PUE&lt;/span&gt;
    &lt;span class="n"&gt;kwh_price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;               &lt;span class="c1"&gt;# all-in price per kWh: tariff + surcharges + VAT&lt;/span&gt;
    &lt;span class="n"&gt;ops_fte&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ops_cost_fte&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="c1"&gt;# headcount and fully loaded annual cost each&lt;/span&gt;
    &lt;span class="n"&gt;software_per_year&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;       &lt;span class="c1"&gt;# OS, orchestration, monitoring, support contracts&lt;/span&gt;
    &lt;span class="n"&gt;years&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;sustained_tok_s&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;    &lt;span class="c1"&gt;# measured throughput at saturation&lt;/span&gt;
    &lt;span class="n"&gt;utilization&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;        &lt;span class="c1"&gt;# fraction of wall-clock time at that throughput&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;seconds&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;8_760&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;3_600&lt;/span&gt;
    &lt;span class="n"&gt;energy_kwh&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cluster_kw_it&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;pue&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;8_760&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt;
    &lt;span class="n"&gt;tokens_mtok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sustained_tok_s&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;utilization&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;seconds&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mf"&gt;1e6&lt;/span&gt;
    &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;capex&lt;/span&gt;
             &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;energy_kwh&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;kwh_price&lt;/span&gt;
             &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;years&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ops_fte&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;ops_cost_fte&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;software_per_year&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;tokens_mtok&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two modelling choices are built in and worth stating openly in your paper:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Electricity is charged at full wall-clock hours, not utilization-scaled hours.&lt;/strong&gt; An inference GPU at low load still draws most of its power; an H100 server at 10 per cent request volume is not a 600 W machine. Charging full hours is the honest, conservative assumption.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everything except electricity is fixed.&lt;/strong&gt; That is precisely why utilization dominates, which we quantify below.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Hardware: the easy 30 to 40 per cent
&lt;/h2&gt;

&lt;p&gt;Start with the numbers that are actually quotable. An NVIDIA H100 SXM currently runs $25,000 to $35,000 per unit; a production deployment with redundancy and reasonable throughput for a 70B-class model typically means 8 GPUs, putting the accelerator bill at $200,000 to $280,000 before chassis, networking and storage (&lt;a href="https://corporateaiconsultants.com/insights/private-llm-vs-cloud-api-total-cost" rel="noopener noreferrer"&gt;Corporate AI Consultants&lt;/a&gt;). Fully configured 8-GPU H200 systems quote at $400,000 to $500,000, and HGX B200 nodes around $450,000 when you can secure allocation; those stickers exclude networking uplift, storage, rack power distribution and cooling retrofits (&lt;a href="https://llm.co/blog/llm-appliance-vs-diy-gpu-cluster" rel="noopener noreferrer"&gt;LLM.co&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The trap is treating the sticker as the capex. Add, at minimum:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;server chassis, CPUs, host RAM and NVSwitch backplane&lt;/li&gt;
&lt;li&gt;top-of-rack and spine networking, plus high-speed fabric if you go multi-node (InfiniBand connectivity alone adds roughly $2,000 to $5,000 per node)&lt;/li&gt;
&lt;li&gt;storage for model weights, checkpoints and logs, plus NVMe scratch if you do any fine-tuning&lt;/li&gt;
&lt;li&gt;racks, PDUs, UPS and installation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A workable planning rule: total infrastructure capex lands at 2.5 to 3 times the raw GPU investment. A "modest 8-GPU cluster" that looks like $240,000 in silicon is realistically a $600,000 to $800,000 project before it processes a single token (&lt;a href="https://www.mpt.solutions/the-hidden-infrastructure-cost-of-running-local-llms-vs-cloud-apis-a-real-world-tco-analysis-for-enterprise-deployments/" rel="noopener noreferrer"&gt;MPT Solutions&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  PUE and electricity: raw watts are not the number
&lt;/h2&gt;

&lt;p&gt;This is the line item most budgets get wrong twice: once on power draw, once on facility overhead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Power draw.&lt;/strong&gt; Eight H100 GPUs alone consume over 5.6 kW, and once you add CPUs, NICs and the rest of the node, draw pushes past 10 kW (&lt;a href="https://llm.co/blog/llm-appliance-vs-diy-gpu-cluster" rel="noopener noreferrer"&gt;LLM.co&lt;/a&gt;). Most colocation cages and enterprise data halls were provisioned for 4 to 8 kW racks, so densification, PDU upgrades and rear-door heat exchangers become line items that never appear on the GPU quote.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PUE.&lt;/strong&gt; Power usage effectiveness is the ratio of total facility power to IT power. A PUE of 1.6 means every watt delivered to the server costs you 1.6 watts at the meter: the extra 0.6 is cooling, power distribution and losses. The 2025 Uptime Institute Global Data Center Survey, drawing on more than 800 operators, puts the industry average PUE at 1.54, effectively flat for the sixth consecutive year, with facilities commissioned in the last five years averaging 1.48 and sites above 20 MW around 1.44. Uptime attributes the stagnation partly to "climate specific limitations to efficient cooling", which is exactly the caveat that matters here: a purpose-built hall in a cool climate can hit 1.3 or better, but an enterprise room in the Gulf will not. Unless your facility publishes a measured figure, model 1.5 to 1.7 for the GCC and expect the low end only in a modern purpose-built site (&lt;a href="https://uptimeinstitute.com/about-ui/press-releases/uptimes-15th-annual-global-data-center-survey-results-shows-both-commitment-and-hesitancy" rel="noopener noreferrer"&gt;Uptime Institute&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;For context on how good it can get with hyperscale engineering: Google reports a trailing twelve-month fleet PUE of 1.09 (&lt;a href="https://datacenters.google/efficiency/" rel="noopener noreferrer"&gt;Google&lt;/a&gt;). You will not match that with one rack. Do not let a vendor slide it into a spreadsheet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The price per kWh, in the UAE.&lt;/strong&gt; In Dubai, DEWA's slab tariff tops out at AED 0.380 per kWh above the consumption band, plus a fuel surcharge (AED 0.060 per kWh as of November 2026) and 5 per cent VAT, putting the upper band at roughly AED 0.462 per kWh, about $0.126 (&lt;a href="https://www.dewa.gov.ae/en/consumer/billing/slab-tariff" rel="noopener noreferrer"&gt;DEWA slab tariff&lt;/a&gt;). A GPU cluster consumes far past the top slab every month, so that upper band is your planning rate. In Abu Dhabi, industrial users above 1 MW pay 27 fils per kWh off-peak and 36.6 fils during summer daytime peak hours (10:00 to 22:00, June to September), a time-of-use structure that rewards shifting batch workloads to nights (&lt;a href="https://arusgrid.com/policy/united-arab-emirates" rel="noopener noreferrer"&gt;ArusGrid&lt;/a&gt;). Abu Dhabi's Department of Energy is also designing a dedicated data-centre tariff, with rates not yet published, so check before signing a long lease.&lt;/p&gt;

&lt;p&gt;Worked power math for a single 10 kW IT node at PUE 1.6, Dubai:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;facility draw    = 10 kW x 1.6            = 16 kW
annual energy    = 16 kW x 8,760 h        = 140,160 kWh
annual cost      = 140,160 x AED 0.462    = AED 64,750 (~$17,600)
three years      = ~AED 194,000 (~$52,900)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If colocation is your model instead, budget $200 to $400 per kW per month for high-density hosting, so a 10 kW node costs $24,000 to $48,000 per year, typically with power bundled in (&lt;a href="https://corporateaiconsultants.com/insights/private-llm-vs-cloud-api-total-cost" rel="noopener noreferrer"&gt;Corporate AI Consultants&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Cooling, fabric, storage and the rest of the plant
&lt;/h2&gt;

&lt;p&gt;Beyond the interconnect costs covered under capex, three items deserve their own rows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cooling beyond PUE.&lt;/strong&gt; If you are building on-prem rather than colocating, a data-centre build-out including power distribution, cooling upgrades and rack space can exceed $50,000 per rack (&lt;a href="https://corporateaiconsultants.com/insights/private-llm-vs-cloud-api-total-cost" rel="noopener noreferrer"&gt;Corporate AI Consultants&lt;/a&gt;). In Gulf ambient conditions, liquid cooling or rear-door heat exchangers stop being optional somewhere past 20 to 30 kW per rack.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Storage and networking opex.&lt;/strong&gt; For a single-node deployment, HostRunway's TCO model budgets $100 to $300 per month for storage and networking, plus $100 to $200 per month for inference software and observability (&lt;a href="https://www.hostrunway.com/blog/local-llm-on-dedicated-servers-vs-cloud-apis-tco-comparison-in-2026/" rel="noopener noreferrer"&gt;HostRunway&lt;/a&gt;). Model weights, checkpoints and eval traces grow faster than teams expect once fine-tuning starts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redundancy.&lt;/strong&gt; An inference cluster with a single node has no failure story. N+1 means either a second node or a cloud fallback path, and both cost money. Pick one deliberately rather than discovering the gap during an outage.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  People: the line that usually decides the model
&lt;/h2&gt;

&lt;p&gt;On-prem inference needs specialized operations: model serving, quantization, GPU cluster management, driver and firmware updates. Depending on existing capability, plan for one to three additional FTEs at $150,000 to $250,000 fully loaded per person per year in most markets (&lt;a href="https://corporateaiconsultants.com/insights/private-llm-vs-cloud-api-total-cost" rel="noopener noreferrer"&gt;Corporate AI Consultants&lt;/a&gt;). Kentino's per-server estimate is 0.1 to 0.3 FTE per server, plus a redundant box or cloud fallback for downtime (&lt;a href="https://kentino.com/pages/cost-per-million-tokens-on-prem-vs-cloud" rel="noopener noreferrer"&gt;Kentino&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The practical floor for one 8-GPU node with production traffic is roughly one FTE. In HostRunway's single-node model, a 0.25 FTE DevOps/MLOps allocation costs $3,000 to $5,000 per month against a total TCO of $6,930 to $10,790 per month, based on PUE 1.4, US electricity at $0.12 to $0.13 per kWh, and a senior engineer at $192,000 fully loaded (&lt;a href="https://www.hostrunway.com/blog/local-llm-on-dedicated-servers-vs-cloud-apis-tco-comparison-in-2026/" rel="noopener noreferrer"&gt;HostRunway&lt;/a&gt;). Even at the lowest staffing fraction, people are 40 to 50 per cent of the running bill. This is why the GPU quote feels so misleading in hindsight.&lt;/p&gt;

&lt;p&gt;Software and support contracts sit alongside people: enterprise Linux, orchestration, monitoring and optionally a commercial serving platform add $20,000 to $100,000 per year depending on scale and vendor choices (&lt;a href="https://corporateaiconsultants.com/insights/private-llm-vs-cloud-api-total-cost" rel="noopener noreferrer"&gt;Corporate AI Consultants&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Utilization: the single biggest swing factor
&lt;/h2&gt;

&lt;p&gt;Here is the argument in one sentence: nearly all of your three-year cost is fixed, so cost per token is inversely proportional to the tokens you actually serve, and utilization is the only lever that moves the denominator.&lt;/p&gt;

&lt;p&gt;Kentino's sensitivity analysis makes the shape explicit. At 60 per cent utilization a given build serves a certain token volume at a certain euro per Mtok; drop utilization to 30 per cent and every per-token figure doubles; push to 80 per cent and one reference build (8x L4 serving an 8B model) lands at €0.09 per million tokens, cheaper than any cloud API in its class. Below roughly 25 per cent utilization the math collapses, because TCO is dominated by capex you paid whether or not you used it (&lt;a href="https://kentino.com/pages/cost-per-million-tokens-on-prem-vs-cloud" rel="noopener noreferrer"&gt;Kentino&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The brutal constraint is traffic shape. Traffic that only arrives during working hours, 40 of the week's 168 hours, keeps a GPU busy at most 24 per cent of the time before you even account for lunchtime dips (&lt;a href="https://openrouter.ai/blog/insights/self-hosted-llm-vs-api/" rel="noopener noreferrer"&gt;OpenRouter&lt;/a&gt;). A GCC enterprise with a 9-to-6 internal assistant and a 4:1 peak-to-average ratio is structurally near that 24 per cent ceiling. This is why the spare-capacity decision is a cost decision, not just an SRE decision:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Serve everything on-prem, sized for peak:&lt;/strong&gt; utilization lands around 15 to 25 per cent, and cost per token roughly triples versus a well-utilized cluster.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Baseline on-prem, burst to API:&lt;/strong&gt; size the cluster for the sustained floor (aiming at 60 to 80 per cent utilization) and let a hosted endpoint absorb peaks. You pay a premium per token only on the spiky tail.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The research side reinforces how little of the self-hosted cost is electricity. Measured on consumer Blackwell hardware, power-only cost runs $0.001 to $0.04 per million tokens depending on workload, with hardware amortization adding $0.01 to $0.05 per Mtok over two years; the rest of a real deployment's cost is everything around the card (&lt;a href="https://arxiv.org/html/2601.09527v1" rel="noopener noreferrer"&gt;arXiv 2601.09527&lt;/a&gt;). Electricity is a rounding error; people and idle silicon are the bill.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: an 8x H100 node in Dubai, three years
&lt;/h2&gt;

&lt;p&gt;Scenario: a UAE enterprise runs an internal knowledge assistant and a document-processing pipeline on an open-weight 70B model. Data residency rules out hosted APIs for the production prompts. One 8x H100 SXM node, own data hall in Dubai.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Capex.&lt;/strong&gt; GPUs at $30,000 each (mid-point of the $25,000 to $35,000 range): $240,000. Chassis, NVSwitch, NICs, storage, rack and install: $60,000. Total $300,000, amortized straight-line over three years.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Electricity.&lt;/strong&gt; 10 kW IT draw, PUE 1.6 (an honest Gulf enterprise figure), DEWA upper band at AED 0.462 per kWh all-in: AED 64,750 (~$17,600) per year, $52,900 over three years.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;People.&lt;/strong&gt; 1.0 FTE platform/MLOps engineer at $150,000 fully loaded (the low end of the market range): $450,000 over three years.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Software and support.&lt;/strong&gt; $30,000 per year (inside the $20,000 to $100,000 published range): $90,000.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three-year TCO: $892,900.&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line item&lt;/th&gt;
&lt;th&gt;3-year cost&lt;/th&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPU capex (8x H100 SXM)&lt;/td&gt;
&lt;td&gt;$240,000&lt;/td&gt;
&lt;td&gt;27%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chassis, fabric, storage, rack&lt;/td&gt;
&lt;td&gt;$60,000&lt;/td&gt;
&lt;td&gt;7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Electricity (PUE 1.6, DEWA)&lt;/td&gt;
&lt;td&gt;$52,900&lt;/td&gt;
&lt;td&gt;6%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ops (1.0 FTE)&lt;/td&gt;
&lt;td&gt;$450,000&lt;/td&gt;
&lt;td&gt;50%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Software and support&lt;/td&gt;
&lt;td&gt;$90,000&lt;/td&gt;
&lt;td&gt;10%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$892,900&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;100%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The GPUs are just over a quarter of the bill here; only at larger scale with shared ops do they approach the 30 to 40 per cent range. The engineer is half of it. Anyone quoting only the first two rows is not quoting the cluster.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Throughput and the utilization table.&lt;/strong&gt; An 8x H100 node serving Llama 3.3 70B in FP8 sustains roughly 3,500 tokens per second (&lt;a href="https://kentino.com/pages/cost-per-million-tokens-on-prem-vs-cloud" rel="noopener noreferrer"&gt;Kentino&lt;/a&gt;). Over three years that is up to 331 billion tokens at 100 per cent utilization; real deployments land far below.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Utilization&lt;/th&gt;
&lt;th&gt;Tokens served (3y)&lt;/th&gt;
&lt;th&gt;Cost per Mtok&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;24% (office-hours traffic)&lt;/td&gt;
&lt;td&gt;79.5 B&lt;/td&gt;
&lt;td&gt;$11.23&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;30%&lt;/td&gt;
&lt;td&gt;99.3 B&lt;/td&gt;
&lt;td&gt;$8.99&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;60%&lt;/td&gt;
&lt;td&gt;198.7 B&lt;/td&gt;
&lt;td&gt;$4.49&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;80%&lt;/td&gt;
&lt;td&gt;264.9 B&lt;/td&gt;
&lt;td&gt;$3.37&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From 80 per cent down to 30 per cent utilization, cost per token more than doubles with no change to any other number. From 60 to 30, it doubles exactly, because 94 per cent of the spend is fixed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it competes against.&lt;/strong&gt; At 60 per cent utilization the cluster delivers tokens at $4.49 per million. Against a hosted open-model API serving the same Llama 3.3 70B at roughly $0.88 per Mtok (&lt;a href="https://kentino.com/pages/cost-per-million-tokens-on-prem-vs-cloud" rel="noopener noreferrer"&gt;Kentino&lt;/a&gt;), the API serves the same 198.7 billion tokens for about $175,000: the cluster loses by roughly 5x, and the residency requirement is the only thing that justifies it. Against a frontier API at a blended $9 per Mtok, the same volume costs $1.79 million: the cluster wins by 2x. So state the comparison honestly in your paper. The cluster competes with frontier and regulated workloads, not with the cheapest open-model endpoint.&lt;/p&gt;

&lt;p&gt;One more nuance worth a row in your model: context length. Measured energy per token rises roughly 5.5x from 8k to 32k context, and doubling context approximately halves throughput (&lt;a href="https://arxiv.org/html/2601.09527v1" rel="noopener noreferrer"&gt;arXiv 2601.09527&lt;/a&gt;). A RAG-heavy workload at 32k context serves a fraction of the tokens per second of a chatbot workload on identical silicon, which pushes effective utilization and cost per token in the wrong direction simultaneously. Chunk retrieval aggressively.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Measure before you model.&lt;/strong&gt; Two weeks of instrumented token counts, split by model tier and by hour of day. Without the peak-to-average ratio you cannot pick a utilization figure, and utilization decides the answer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Get a measured PUE, not a marketing PUE.&lt;/strong&gt; Ask the facility for a trailing twelve-month figure. If none exists, use 1.5 to 1.7 for the Gulf. Never accept 1.1 in a spreadsheet for a single-rack deployment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Price electricity at your meter.&lt;/strong&gt; In Dubai, model AED 0.462 per kWh (top slab plus November 2026 fuel surcharge plus VAT). In Abu Dhabi, model the time-of-use split, and consider shifting batch inference into off-peak hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run the formula at three utilizations:&lt;/strong&gt; your measured average, 30 per cent and 60 per cent. If the 30 per cent number frightens you, the answer is not a smaller cluster but a hybrid: baseline on-prem at high utilization, burst overflow to a hosted endpoint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Budget the FTE explicitly.&lt;/strong&gt; If the organization cannot staff it, the cluster will sit idle at 10 per cent utilization, which is the most expensive way to own GPUs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stress the residency argument, not just the price argument.&lt;/strong&gt; At GCC volumes the cluster often loses to cheap open-model APIs and wins against frontier APIs. The defensible case is usually sovereignty plus latency plus control, with cost per token as supporting evidence.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the model we run with clients before any hardware is ordered: platform assessment and design first, then the build, then running it, with our own team in Dubai doing the consulting, deployment and support (&lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;Azrty AI infrastructure&lt;/a&gt;). If you want a single control point for the hybrid pattern, a gateway in front of your own LLM servers and hosted providers keeps routing, budgets and access control in one place (&lt;a href="https://www.azrty.com/software/fastllm-proxy" rel="noopener noreferrer"&gt;FastLLM Proxy&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;The single sentence to remember: the GPUs are the part of the cluster you negotiate once; utilization, PUE and headcount are the parts you pay for every day of the three years. Put all three in the model before the number goes to the board.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/gpu-inference-cluster-tco-pue-and-electricity-costs" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gpuinference</category>
      <category>totalcostofownership</category>
      <category>pue</category>
      <category>aiinfrastructure</category>
    </item>
    <item>
      <title>How to reduce LLM API costs in production by routing</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Sat, 14 Nov 2026 05:06:14 +0000</pubDate>
      <link>https://dev.to/azrty/how-to-reduce-llm-api-costs-in-production-by-routing-6jg</link>
      <guid>https://dev.to/azrty/how-to-reduce-llm-api-costs-in-production-by-routing-6jg</guid>
      <description>&lt;p&gt;The fastest way to reduce LLM API costs in production is to stop paying frontier rates for requests a cheaper model can handle: route each request to the cheapest model that can handle it. If your LLM application is past the pilot stage, your model bill moves in a straight line with usage. Every new user, every agent step and every retry adds tokens, and you pay frontier rates whether the request needed frontier reasoning or not. Routing is the one lever that moves the bill structurally. Here is the reference architecture: three routing patterns, cost figures you can check against AWS's published rates, a decision framework for where to start, and the failure mode that quietly undoes naive cost cutting.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to reduce LLM API costs in production: the short answer
&lt;/h2&gt;

&lt;p&gt;Route each request to the cheapest model that can handle it, and let a gateway make that call per request. Caching, batch APIs, output-length limits and enterprise discounts all bring the price per token down; routing changes which tokens you buy in the first place. The work is three moves: split traffic into two or three tiers by task class, ship static tiering wherever the task is known in code, then put a routing layer in front of the fleet for the traffic that enters through one interface. The rest of this article is how to do that without trading away quality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does a single-model architecture tax every request?
&lt;/h2&gt;

&lt;p&gt;In the UAE and across the GCC this has become a board-level line item rather than an engineering curiosity: &lt;a href="https://www.khaleejtimes.com/business/uae-firms-face-rising-ai-costs-as-adoption-moves-beyond-pilot-stage" rel="noopener noreferrer"&gt;Khaleej Times has reported&lt;/a&gt; on UAE firms facing rising AI costs as adoption moves beyond the pilot stage. The pattern is a familiar one: consumption compounds before the controls to manage it are in place, and the default habit of sending every request to the largest available model inflates cost per token across the whole estate.&lt;/p&gt;

&lt;p&gt;What most teams reach for first is real but capped: prompt caching, batch APIs, output-length limits, enterprise discounts. All of these reduce the price per token. Routing changes which tokens you buy at all. The price gap between tiers is large enough to dominate everything else. On the AWS Bedrock rates used later in this article, Claude 3.5 Sonnet costs 12 times Claude 3 Haiku per input token and 12 times per output token. If half of your traffic can be handled by the smaller model, no caching strategy comes close to the same saving.&lt;/p&gt;

&lt;p&gt;The formal framing in &lt;a href="https://arxiv.org/html/2502.00409v3" rel="noopener noreferrer"&gt;a 2025 survey of routing strategies for LLM-based systems (arXiv 2502.00409)&lt;/a&gt; is useful because it tells you what you are optimising. Given a pool of candidate models, a router picks the model that maximises a quality score for that query subject to a cost constraint. Two consequences follow. First, routing is a quality problem as much as a cost problem, which is why silent quality regression (below) is the failure mode to design against. Second, the router is an external, budget-aware component: it is not the internal gating network of a Mixture-of-Experts model, and candidates are not limited to neural networks. A route can point at a workflow, a retrieval step or a human.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three routing patterns, and when each pays
&lt;/h2&gt;

&lt;p&gt;The survey splits every published approach into two families by when the decision is made: pre-generation routing (predict which model will do well) and post-generation routing, also called cascade routing (generate first, evaluate, escalate if the answer is weak). In production those families collapse into three patterns you actually build.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Static tiering by task class.&lt;/strong&gt; The task is known at the call site, so no router is needed. A marketing content tool calls a summarisation endpoint for one module and a generation endpoint for another; an exam-marking pipeline always sends open-ended answers to the same grading path. &lt;a href="https://aws.amazon.com/blogs/machine-learning/multi-llm-routing-strategies-for-generative-ai-applications-on-aws/" rel="noopener noreferrer"&gt;The AWS multi-LLM routing post&lt;/a&gt; calls this static routing: distinct UI components or endpoints per task, each with its own model. Zero added latency, zero added cost per request, and models can be swapped per component without touching the rest of the system. The limitation is rigidity: a new task means a new component.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Pre-generation routing (classifier or semantic).&lt;/strong&gt; Prompts enter through one interface and a routing layer decides. Two implementations dominate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;LLM-assisted routing&lt;/em&gt;: a small classifier LLM labels the prompt (task type, domain or complexity) and the request is dispatched accordingly. The AWS sample uses Amazon Titan Text G1 Express to classify tutor questions as history or math, then routes to Claude 3 Haiku or Claude 3.5 Sonnet. Fine-grained, but it adds a full inference call to the critical path. In AWS's measurements classification took about 0.53 to 0.60 seconds.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Semantic routing&lt;/em&gt;: the prompt is embedded and matched against reference prompts per category by vector similarity. No generation step. AWS measured classification at about 0.09 to 0.11 seconds, roughly five to six times faster than the classifier approach, at a fraction of the cost (their embedding model ran at $0.00002 per 1,000 input tokens versus $0.0002 for the classifier). The trade-off is coverage: the reference set has to represent what users actually ask, and it needs ongoing curation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://medium.com/google-cloud/a-developers-guide-to-model-routing-1f21ecc34d60" rel="noopener noreferrer"&gt;The Google Cloud developer guide to model routing&lt;/a&gt; names the constraint behind the choice: the "Router Latency Paradox". A component designed to cut latency and cost must itself be near-free, so semantic routing is the default for interactive traffic and LLM-based routing is reserved for genuinely subtle distinctions. The guide's worked stack routes across Gemini 2.5 Pro, Flash and Flash-Lite with the open-source &lt;code&gt;semantic-router&lt;/code&gt; library, a declarative &lt;code&gt;router.yaml&lt;/code&gt; and FastAPI on Cloud Run. AWS's own hybrid suggestion is worth stealing for large category spaces: semantic search first to pick a department, then a small focused classifier within it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.nvidia.com/blog/deploying-the-nvidia-ai-blueprint-for-cost-efficient-llm-routing/" rel="noopener noreferrer"&gt;The NVIDIA blueprint for cost-efficient LLM routing&lt;/a&gt; shows the production shape of pattern 2: a reverse proxy built in Rust with NVIDIA Triton, OpenAI API compliant, which parses the request, runs a classification model, dispatches (their demo sends code generation to Llama Nemotron Super 49B, open QA to Llama 3 70B and prompt rewrites to Llama 3 8B) and proxies the answer back. It deploys on a V100-class GPU with 4 GB, source in &lt;a href="https://github.com/NVIDIA-AI-Blueprints/llm-router" rel="noopener noreferrer"&gt;the NVIDIA-AI-Blueprints/llm-router repository&lt;/a&gt;, metrics into Grafana.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Post-generation routing (cascade).&lt;/strong&gt; Answer with the cheap model first, evaluate the answer (a small confidence model, an LLM judge, or agreement across repeated samples), escalate to the next tier if it fails. FrugalGPT, the canonical example in the survey, uses a DistilBERT regressor to estimate answer correctness and reports 59% to 98% cost savings at comparable accuracy. Cascades are the strongest lever when quality risk is concentrated in a minority of hard requests, and the weakest when most requests are hard: the survey is explicit that cascading "can incur higher latency and cost, since multiple LLMs may need to generate answers for a single query".&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pattern&lt;/th&gt;
&lt;th&gt;Decision made by&lt;/th&gt;
&lt;th&gt;Added latency&lt;/th&gt;
&lt;th&gt;Added cost per request&lt;/th&gt;
&lt;th&gt;Best fit&lt;/th&gt;
&lt;th&gt;Main failure mode&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Static tiering&lt;/td&gt;
&lt;td&gt;Call site (task class)&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Pipelines with known task types&lt;/td&gt;
&lt;td&gt;Rigid; new task means new component&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pre-generation: semantic&lt;/td&gt;
&lt;td&gt;Embedding similarity to reference prompts&lt;/td&gt;
&lt;td&gt;~10 ms to 100 ms&lt;/td&gt;
&lt;td&gt;Embedding tokens only&lt;/td&gt;
&lt;td&gt;High-volume chat with coarse categories&lt;/td&gt;
&lt;td&gt;Thin reference set misroutes edge cases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pre-generation: LLM-assisted&lt;/td&gt;
&lt;td&gt;Classifier LLM&lt;/td&gt;
&lt;td&gt;~500 ms in AWS's demo&lt;/td&gt;
&lt;td&gt;One small LLM call&lt;/td&gt;
&lt;td&gt;Fine-grained complexity or domain distinctions&lt;/td&gt;
&lt;td&gt;Router cost and latency eat the saving at low volume&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Post-generation cascade&lt;/td&gt;
&lt;td&gt;Answer confidence after generation&lt;/td&gt;
&lt;td&gt;One extra round trip on escalation&lt;/td&gt;
&lt;td&gt;Cheap model always, plus large model on failures&lt;/td&gt;
&lt;td&gt;Quality-critical traffic with latency slack&lt;/td&gt;
&lt;td&gt;Worst case is paying for two answers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Managed (e.g. Bedrock Intelligent Prompt Routing)&lt;/td&gt;
&lt;td&gt;Provider's own router&lt;/td&gt;
&lt;td&gt;Provider-managed&lt;/td&gt;
&lt;td&gt;Provider-managed&lt;/td&gt;
&lt;td&gt;Single model family, no custom logic&lt;/td&gt;
&lt;td&gt;No control; same-family only&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Worked example: 100,000 questions a day, priced out
&lt;/h2&gt;

&lt;p&gt;This is the scenario published in &lt;a href="https://aws.amazon.com/blogs/machine-learning/multi-llm-routing-strategies-for-generative-ai-applications-on-aws/" rel="noopener noreferrer"&gt;the AWS routing post&lt;/a&gt;: an educational tutor assistant in US East (N. Virginia) receiving 50,000 history questions and 50,000 math questions per day. We follow it step by step, then add the one number AWS implies but does not state: the all-frontier baseline.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: fix the traffic and token assumptions.&lt;/strong&gt; 30-day month, so 1.5 million history and 1.5 million math questions per month. Each answer uses 150 input tokens and 300 output tokens. Router overhead is 150 input tokens per question (classification or embedding).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: price the no-routing baseline.&lt;/strong&gt; If every question goes to Claude 3.5 Sonnet at $0.003 per 1,000 input tokens and $0.015 per 1,000 output tokens: 450 million input tokens per month cost $1,350, and 900 million output tokens cost $13,500. Baseline: &lt;strong&gt;$14,850 per month&lt;/strong&gt;. (Arithmetic on the per-token rates AWS publishes in the post.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: price the tiered architecture.&lt;/strong&gt; History questions go to Claude 3 Haiku ($0.00025 in, $0.00125 out per 1,000 tokens). Math stays on Claude 3.5 Sonnet. AWS's published result:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question type&lt;/th&gt;
&lt;th&gt;Input tokens/month&lt;/th&gt;
&lt;th&gt;Output tokens/month&lt;/th&gt;
&lt;th&gt;Answer generation cost/month&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;History (Claude 3 Haiku)&lt;/td&gt;
&lt;td&gt;225,000,000&lt;/td&gt;
&lt;td&gt;450,000,000&lt;/td&gt;
&lt;td&gt;$618.75&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Math (Claude 3.5 Sonnet)&lt;/td&gt;
&lt;td&gt;225,000,000&lt;/td&gt;
&lt;td&gt;450,000,000&lt;/td&gt;
&lt;td&gt;$7,425.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;450,000,000&lt;/td&gt;
&lt;td&gt;900,000,000&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$8,043.75&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Step 4: add the router itself.&lt;/strong&gt; From AWS's second table: LLM-assisted routing costs $188.90 per month ($90 for the Titan classifier plus $98.90 for Lambda and API Gateway). Semantic routing costs $107.90 per month ($9 for Titan Text Embeddings V2 plus the same $98.90).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: total and saving.&lt;/strong&gt; $8,232.65 per month with LLM-assisted routing, $8,151.65 with semantic routing, against the $14,850 baseline. That is roughly &lt;strong&gt;45% saved&lt;/strong&gt;, about $6,600 to $6,700 per month, and the router overhead is under 2.5% of the tiered bill. Latency: history answers returned in about 0.25 seconds of generation, math in 2.3 to 2.7 seconds, plus 0.1 seconds of semantic classification or 0.5 to 0.6 seconds of LLM classification.&lt;/p&gt;

&lt;p&gt;Two lessons hide in these numbers. First, the saving comes entirely from moving 50% of traffic one tier down; the router is just the mechanism. Second, the choice between a $9/month embedding router and a $90/month classifier router is not about that $81. It is about 500 ms of added latency on every request, and about which one classifies edge cases correctly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which routing pattern should you start with?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Your situation&lt;/th&gt;
&lt;th&gt;Start with&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;th&gt;Planning saving&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Task class known in code (pipelines, batch jobs, single-purpose features)&lt;/td&gt;
&lt;td&gt;Static tiering&lt;/td&gt;
&lt;td&gt;Zero risk, zero overhead, immediate&lt;/td&gt;
&lt;td&gt;Proportional to the share of traffic that can move a tier down: 45% where half moves, as above&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;High-volume chat, coarse categories (support, sales, internal assistant)&lt;/td&gt;
&lt;td&gt;Semantic pre-generation routing&lt;/td&gt;
&lt;td&gt;Millisecond decision, cheap, tunable by editing reference prompts&lt;/td&gt;
&lt;td&gt;30% to 50% with two or three tiers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fine-grained complexity distinctions, categories that overlap&lt;/td&gt;
&lt;td&gt;LLM-assisted classifier, or semantic then per-domain classifier&lt;/td&gt;
&lt;td&gt;Only a real model call handles nuance&lt;/td&gt;
&lt;td&gt;30% to 50%, minus router overhead&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quality-critical, latency tolerant, hard cases a clear minority&lt;/td&gt;
&lt;td&gt;Post-generation cascade&lt;/td&gt;
&lt;td&gt;Pay double only on the failures&lt;/td&gt;
&lt;td&gt;FrugalGPT reports 59% to 98%; plan on the low end&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One model family, managed cloud, no appetite to build&lt;/td&gt;
&lt;td&gt;Bedrock Intelligent Prompt Routing&lt;/td&gt;
&lt;td&gt;AWS states up to 30% cost reduction without accuracy loss; routes within the Claude and Llama families&lt;/td&gt;
&lt;td&gt;Up to 30%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Monthly model spend under a few thousand dollars&lt;/td&gt;
&lt;td&gt;Static tiering only&lt;/td&gt;
&lt;td&gt;The engineering effort of a learned router will not pay for itself&lt;/td&gt;
&lt;td&gt;Not applicable&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two honest calibrations from the research. The survey reports approaches reaching 95% of GPT-4 quality at 20% of cost on RouterBench, and MixLLM reaching 97% of GPT-4 accuracy at 24% of the cost. Those are research distributions, not planning numbers. For a GCC enterprise with mixed production traffic, plan on &lt;strong&gt;30% to 50%&lt;/strong&gt; for a first tiering pass, and treat anything beyond 60% as a signal that quality is being traded somewhere you have not measured yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you catch the silent quality regression?
&lt;/h2&gt;

&lt;p&gt;This is the failure mode that makes naive cost cutting dangerous. The bill goes down, dashboards look green, and the system quietly gets worse on exactly the queries that mattered most: the ambiguous ones, the edge cases, the requests from your most valuable users. Nobody files a ticket; they just stop trusting the output.&lt;/p&gt;

&lt;p&gt;The evidence is consistent across the literature. Domain-based routers score 77% to 97% accuracy inside neat categories but fall to 53% on "other" queries in the MoDEM work cited by the survey. A text-to-SQL router that tried to pick the cheapest adequate model lost roughly six success points (55.2% versus 61.0%) for only a 1.4 times cost reduction. The opposite failure is just as instructive: a similarity-based router on the same task pushed 81% of queries to GPT-4o and saved almost nothing (1.1 times). A router that always picks the frontier model is decorative; a router that always picks the cheap model is a quality incident with good unit economics.&lt;/p&gt;

&lt;p&gt;The controls that work in production:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Default to the strong model when uncertain.&lt;/strong&gt; AWS's tutor demo does exactly this: if the classifier is unsure whether a question is history or math, it labels it math, the expensive route. Pay the premium on the tail, not the average.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep a frozen evaluation set per tier.&lt;/strong&gt; Fifty to two hundred representative queries per route, including the hard tail, scored every week with the same rubric or grader. Alert on deltas, not on levels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shadow before cutover.&lt;/strong&gt; Route live traffic but also answer 5% of it with the frontier model, compare, and only then shift volume. Two weeks of shadow data will show you exactly which category leaks quality.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Log every routing decision.&lt;/strong&gt; The Google Cloud guide is blunt about it: record chosen route, similarity score, final model, latency and estimated cost per request. Watch the distribution. If 80% of traffic still goes to the top tier, the router is not earning its keep; if 80% goes to the cheapest tier, check the golden set.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write the quality floor down.&lt;/strong&gt; RouterBench formalises it as predicted performance minus cost, weighted by willingness to pay. Whatever the formula, decide in advance what quality you refuse to go below, and configure the router to escalate rather than optimise through it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Degrade on budget, do not silently cap quality.&lt;/strong&gt; When a team hits 80% of its monthly budget, switch it to a cheaper or local model with an audit trail, instead of refusing requests or quietly degrading everyone. Cost control and quality control should not ambush each other.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The reference architecture
&lt;/h2&gt;

&lt;p&gt;The production stack is thin and layered:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One OpenAI-compatible endpoint&lt;/strong&gt; that every application calls. Clients never name a provider model; they ask for a logical name such as "assistant".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A gateway&lt;/strong&gt; holding routing rules, failover chains, API keys with roles, rate limits and per-team budgets, all in configuration rather than in application code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A routing decision&lt;/strong&gt; made per request: static rule first, then semantic topic matching, optionally a classifier for fine-grained cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A model pool of two or three tiers&lt;/strong&gt;, mixing your own GPU servers (vLLM, SGLang, llama.cpp) with hosted providers, so sensitive topics stay in-house and overflow spills to the cloud.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Observability&lt;/strong&gt;: Prometheus metrics and OpenTelemetry traces, spend and route distribution on one dashboard, cost priced at the rate that applied when each request ran.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Illustrative routing configuration (rules evaluated in order, first match wins, each route carrying its own failover chain):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;frontend_models&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;assistant&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;                 &lt;span class="c1"&gt;# the only name applications are allowed to call
&lt;/span&gt;
&lt;span class="na"&gt;routing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;match&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;topic:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;finance&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;legal&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="na"&gt;route&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;self_hosted_llama70b&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;bedrock_claude_haiku&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;   &lt;span class="c1"&gt;# sensitive stays in-house
&lt;/span&gt;  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;match&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;prompt_tokens:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;max:&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;task:&lt;/span&gt; &lt;span class="s"&gt;rewrite&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="na"&gt;route&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;bedrock_claude_haiku&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;self_hosted_llama8b&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;match&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;budget_used_pct:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;min:&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="na"&gt;route&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;self_hosted_llama8b&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;                          &lt;span class="c1"&gt;# degrade, with audit log
&lt;/span&gt;  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;match&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;                                             &lt;span class="c1"&gt;# catch-all: real reasoning
&lt;/span&gt;    &lt;span class="na"&gt;route&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;bedrock_claude_sonnet&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;self_hosted_llama70b&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="na"&gt;balance&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;cache_affinity&lt;/span&gt;      &lt;span class="c1"&gt;# keep vLLM/SGLang prompt caches warm
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the shape of a cascade, if pattern 3 is the right one (the confidence estimator is the hard part; FrugalGPT uses a small supervised model, and an LLM judge or a self-consistency check also work):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;answer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"claude-haiku"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"claude-sonnet"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;   &lt;span class="c1"&gt;# cheapest first&lt;/span&gt;
        &lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;llm&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;generate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;query&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;confidence&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="no"&gt;THRESHOLD&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;          &lt;span class="c1"&gt;# the strongest model's answer stands&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Azrty's &lt;a href="https://www.azrty.com/software/fastllm-proxy" rel="noopener noreferrer"&gt;FastLLM Proxy&lt;/a&gt; is the gateway layer of exactly this architecture: an OpenAI-compatible gateway in front of your own LLM servers and 80 hosted providers, with routing, budgets and access control in one place. We are a Dubai company, and our own team in the UAE does the deployment and support. If what you need is the whole platform underneath the gateway, that is &lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;our AI infrastructure service&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs to build, and what to expect back
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Running costs of the router are small.&lt;/strong&gt; In the AWS example the entire routing layer is $107.90 to $188.90 per month against a tiered model bill of about $8,000. A gateway on your own infrastructure costs a small VM or container plus a database for the control plane. The NVIDIA blueprint needs only a V100-class GPU with 4 GB for the classification model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Engineering effort is the real cost.&lt;/strong&gt; Budget for: reference prompt sets per route (start with 5 to 10 examples per category and iterate on logged misroutes), an evaluation harness with a golden set per tier, fallback chains and retry logic, dashboards for route distribution and cost per request, and a shadow-run period. The Google Cloud guide's production checklist is a fair proxy for scope: treat the router as a mission-critical standalone service, log every decision, refine route utterances continuously, and plan fallbacks beyond a single default model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Managed routing trades control for speed.&lt;/strong&gt; Bedrock Intelligent Prompt Routing is live and claims up to 30% cost reduction, but it works within a single model family (Claude and Llama at the time of writing) and the routing logic is not yours to tune. Fine for a homogeneous estate. Not fine if your mix includes your own GPUs, which data-residency requirements often drive in this region.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Expected saving, honestly stated.&lt;/strong&gt; Static tiering with half the traffic a tier down: about 45%, as in the worked example. Savings grow with usage, discounts do not. Tiering beats negotiation because the gap between tier prices is structural.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;p&gt;If you take one action from this article, make it this: &lt;strong&gt;pull last month's token spend by task class and find out what share of it was answerable by a model a tier down.&lt;/strong&gt; That share is your savings ceiling, and it is usually visible in an afternoon. Then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Classify your traffic into two or three tiers and set the rule that anything requiring multi-step reasoning or domain nuance goes to the frontier tier by default.&lt;/li&gt;
&lt;li&gt;Ship static tiering first, wherever the task class is known in code. It is free and it is where most of the money is.&lt;/li&gt;
&lt;li&gt;Put a gateway in front of the fleet so routing, keys, budgets and failover live in configuration, and so every request is logged with its route, model and cost.&lt;/li&gt;
&lt;li&gt;Add semantic routing for the chat traffic that enters through a single interface. Start with 5 to 10 reference prompts per topic.&lt;/li&gt;
&lt;li&gt;Shadow for two weeks against the frontier model on a sample, with a frozen golden set per tier and a written quality floor.&lt;/li&gt;
&lt;li&gt;Turn on per-team budgets and chargeback reporting now, before agent workloads multiply the requests per business interaction.&lt;/li&gt;
&lt;li&gt;Only then consider a cascade, and only for the specific classes that fail the quality floor.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Cost per request is the only model metric that scales linearly with your success. Architecture is how you bend the line.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/how-to-reduce-llm-api-costs-in-production-by-routing" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llmrouting</category>
      <category>llmapicosts</category>
      <category>aicosts</category>
      <category>modelgateway</category>
    </item>
    <item>
      <title>AI readiness checklist: five gates to pass before you commit build budget</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Sat, 14 Nov 2026 05:06:13 +0000</pubDate>
      <link>https://dev.to/azrty/ai-readiness-checklist-five-gates-to-pass-before-you-commit-build-budget-2p75</link>
      <guid>https://dev.to/azrty/ai-readiness-checklist-five-gates-to-pass-before-you-commit-build-budget-2p75</guid>
      <description>&lt;p&gt;Your board has said "do AI". The first money is usually spent on a model, a pilot team or a proof of concept, and that is the wrong order. Before any code, run five readiness gates: data accessibility, integration surface, infrastructure fit, governance ownership and executive alignment. Each has a pass or fail test you can apply in an afternoon. This is the checklist we run with clients in the UAE before anyone commits build budget, and it will tell you exactly what you are walking into.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why readiness comes before use cases
&lt;/h2&gt;

&lt;p&gt;The GCC has an adoption surplus and a value deficit. &lt;a href="https://gccbdi.org/sites/default/files/2025-11/The-state-of-AI-in-GCC-countries-In-pursuit-of-scale-and-value.pdf" rel="noopener noreferrer"&gt;McKinsey's November 2025 survey&lt;/a&gt; of 139 senior executives and board directors across all six GCC countries found that 84% of organisations now use AI in at least one business function, up from 62% in 2023. But only 31% have scaled or fully deployed AI across the organisation, and just 11% qualify as "value realizers" (AI in at least one function, deployment at scale, and at least 5% of earnings attributed to AI). Meanwhile 89% plan to increase AI budgets next year.&lt;/p&gt;

&lt;p&gt;So most organisations here are about to spend more money on something that has not yet worked at scale. The usual cause is not the model. It is that nobody checked whether the organisation could carry the project before it started. The &lt;a href="https://resource.mitsloanmelive.com/whitepapers/LP-H-VMC-Pure-Storage-FY-2025-Q3-1-email.html" rel="noopener noreferrer"&gt;MIT Sloan Management Review Middle East readiness study with Pure Storage&lt;/a&gt; (July 2025) puts numbers on that carrying-capacity problem: only 33% of organisations report that more than 30% of their data is accessible for AI use, integration complexity is the most cited obstacle at 67%, and outdated infrastructure follows at 56%.&lt;/p&gt;

&lt;p&gt;A readiness assessment answers one question: what has to be true in this organisation before an AI system can produce reliable output in production? Everything below is written as a gate with a pass or fail test, because "somewhat ready" is how pilot graveyards get filled.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five gates at a glance
&lt;/h2&gt;

&lt;p&gt;Run the gates in order. A fail at any gate stops build budget and redirects it to fixing that gate.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gate&lt;/th&gt;
&lt;th&gt;Pass test&lt;/th&gt;
&lt;th&gt;Common GCC failure mode&lt;/th&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Data accessibility&lt;/td&gt;
&lt;td&gt;80% or more of the data the use case needs is machine-queryable today&lt;/td&gt;
&lt;td&gt;Records live in scans, inboxes and file shares&lt;/td&gt;
&lt;td&gt;Only 33% of organisations have more than 30% of data accessible (MIT SMR ME)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Integration surface&lt;/td&gt;
&lt;td&gt;Every system touched has a documented, authenticated API; no more than three write-backs without one&lt;/td&gt;
&lt;td&gt;Core systems from vendors who charge per interface&lt;/td&gt;
&lt;td&gt;Integration complexity cited by 67% (MIT SMR ME)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Infrastructure fit&lt;/td&gt;
&lt;td&gt;Latency budget, data residency and load profile point to one clear lane&lt;/td&gt;
&lt;td&gt;Residency decided after the vendor contract is signed&lt;/td&gt;
&lt;td&gt;56% cite outdated infrastructure (MIT SMR ME)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Governance ownership&lt;/td&gt;
&lt;td&gt;Written sign-off owner, review cycle of six months or less, model and prompt register&lt;/td&gt;
&lt;td&gt;Annual audit cycle applied to a system that changes weekly&lt;/td&gt;
&lt;td&gt;70% of UAE organisations review AI compliance every six months or less&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5. Executive alignment&lt;/td&gt;
&lt;td&gt;One named person with budget authority and a single KPI&lt;/td&gt;
&lt;td&gt;A cross-functional committee with no accountable owner&lt;/td&gt;
&lt;td&gt;Only 31% of GCC organisations have scaled AI (McKinsey)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One scoring rule: five passes means green light. Four means build one use case only. Three or fewer means no build budget at all, because you would be building on ground that cannot bear the weight.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gate 1: data accessibility
&lt;/h2&gt;

&lt;p&gt;Stored is not the same as queryable. Data sitting in a warehouse, a lakehouse table or an indexed document store is queryable. Data sitting in a shared drive as PDFs, in a retired ERP nobody can export from, or in three unlinked copies of the same customer list, is merely stored. Models cannot read what your engineering team cannot query.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The test.&lt;/strong&gt; Name the three datasets your first use case needs. For each, ask: can a model read this today through SQL, an authenticated API or a search index, within one hour of engineering time? Measure the share of required records that clears that bar. Pass at 80% or above. Below 80%, the project will spend its first quarter as a data engineering project wearing an AI costume, and you should plan it as such honestly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example.&lt;/strong&gt; A UAE insurer wants an assistant that drafts claim responses. It has 2.1 million claims since 2019. 61% sit in the core claims system behind a REST API. 39% are scanned paper forms on a network share with no index. That is a fail at 61%. The fix is real work with real numbers: roughly 820,000 scanned documents to OCR, classify and index before the assistant sees them. Do that as phase one and the model phase becomes straightforward.&lt;/p&gt;

&lt;p&gt;Regional context matters here. The same MIT study found 72% of regional organisations prefer hybrid environments for AI workloads, which is usually an admission that data is split between what you can move and what you cannot. Identify the cannot-move category in week one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gate 2: integration surface
&lt;/h2&gt;

&lt;p&gt;AI systems earn their keep by acting on your systems of record: creating the case, updating the policy, filing the ticket. Each action is an integration. Legacy integration debt becomes AI project debt at exactly the moment you can least afford it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The test.&lt;/strong&gt; List every system the use case reads from and writes to. For each, confirm four things: a documented API (machine-readable, not a PDF from 2014), authenticated access with a test environment, a named owner on the vendor or platform side, and published rate limits. Then count write-backs into systems of record. More than three write-backs without an API on the other end is a fail.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://spec.openapis.org/oas/latest.html" rel="noopener noreferrer"&gt;OpenAPI Specification&lt;/a&gt; (current version 3.2.0, published 19 September 2025) is the practical standard here. It defines a language-agnostic description of an HTTP API that both people and tools can read. If a system can hand you an OpenAPI document, your team can generate a client and validate payloads in days rather than weeks. If it cannot, you are reverse-engineering someone's SOAP service.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;openapi&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;3.2.0&lt;/span&gt;
&lt;span class="na"&gt;info&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;title&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Claims Read API&lt;/span&gt;
  &lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;1.0.0&lt;/span&gt;
&lt;span class="na"&gt;paths&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;/claims/{claim_id}&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;get&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;operationId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;getClaim&lt;/span&gt;
      &lt;span class="na"&gt;parameters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;claim_id&lt;/span&gt;
          &lt;span class="na"&gt;in&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;path&lt;/span&gt;
          &lt;span class="na"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
          &lt;span class="na"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;type:&lt;/span&gt; &lt;span class="s"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;format:&lt;/span&gt; &lt;span class="s"&gt;uuid&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="na"&gt;responses&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;"200"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Claim record&lt;/span&gt;
          &lt;span class="na"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;application/json&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;schema&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;$ref:&lt;/span&gt; &lt;span class="s2"&gt;"#/components/schemas/Claim"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example.&lt;/strong&gt; The insurer's core claims platform passes: modern REST API, OpenAPI document on request, sandbox environment on request. The 2011 document management system fails: nightly SFTP batch export only, no API, no named vendor owner. The right response is not to redesign the estate around the pilot. It is to scope the use case so the assistant reads claims from the core system and never touches the document system, while a thin integration layer is funded separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gate 3: infrastructure fit
&lt;/h2&gt;

&lt;p&gt;Infrastructure is not a preference question. It is a latency, residency and cost question, in that order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The test.&lt;/strong&gt; Write down three numbers before you speak to any vendor: the p95 response time your users will tolerate (for a staff-facing assistant, typically 2 to 3 seconds to first useful answer), the data residency rule that applies to the data (UAE and Saudi regulators and, just as often, your own customers, require in-country processing), and your load shape (steady 24/7 or spiky). Those three numbers usually eliminate two of the three lanes immediately.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lane&lt;/th&gt;
&lt;th&gt;Latency control&lt;/th&gt;
&lt;th&gt;Residency&lt;/th&gt;
&lt;th&gt;Indicative cost&lt;/th&gt;
&lt;th&gt;Choose when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hosted model API&lt;/td&gt;
&lt;td&gt;Good, but adds network and provider dependency&lt;/td&gt;
&lt;td&gt;Frequently outside the region&lt;/td&gt;
&lt;td&gt;Per token, easy to start, hard to forecast&lt;/td&gt;
&lt;td&gt;Prototyping, low or uncertain volume&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPU-as-a-service (in region)&lt;/td&gt;
&lt;td&gt;Good if the provider is in country&lt;/td&gt;
&lt;td&gt;You pick the region&lt;/td&gt;
&lt;td&gt;Per GPU-hour&lt;/td&gt;
&lt;td&gt;Spiky load, or residency rules with variable demand&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Own GPU servers&lt;/td&gt;
&lt;td&gt;Full control over stack and data&lt;/td&gt;
&lt;td&gt;Your data centre, your rules&lt;/td&gt;
&lt;td&gt;Fixed capacity cost&lt;/td&gt;
&lt;td&gt;Sustained load you can keep busy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For cost anchoring, take a standard training and serving node: an AWS EC2 p5.48xlarge carries 8 NVIDIA H100 SXM GPUs (80 GB each), 192 vCPUs and 2,048 GiB of RAM. In us-east-1 the on-demand list price is $55.04 per hour, about $6.88 per GPU-hour, or roughly $40,200 for a 730-hour month (AWS public price list). Spot capacity starts near $21.09 per hour in that region, which cuts the month to roughly $15,400, at the price of interruption. If your workload cannot tolerate interruption, spot is not a discount, it is a different product.&lt;/p&gt;

&lt;p&gt;That arithmetic is why the load-shape question decides the lane. One node running flat out at $40,200 a month serving 200 requests a day is a scandal. The same node serving 20,000 requests a day at a 3-second p95 is sensible. Compute the per-request cost before the procurement meeting, not after.&lt;/p&gt;

&lt;p&gt;Regional supply is moving fast in your favour: G42's Stargate UAE alliance (announced May 2025) and the HUMAIN and NVIDIA data centre build-out in Saudi Arabia are expanding in-region capacity, and 72% of regional organisations already prefer hybrid setups. In-region GPU options are a genuine choice now, not a compromise.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example.&lt;/strong&gt; The insurer's assistant must answer in 3 seconds p95, and the claims data cannot leave the UAE. A hosted API abroad fails residency. That leaves in-region GPU-as-a-service for the pilot and own hardware if demand becomes steady. The team sized a single 8-GPU node as the ceiling and wrote the cost into the business case at $6.88 per GPU-hour before choosing a provider.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gate 4: governance ownership
&lt;/h2&gt;

&lt;p&gt;Governance here means: who signs, how often, and on what record. Not legal compliance (that is a separate exercise), but the internal discipline that keeps a changing model inside the rules.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The test.&lt;/strong&gt; Four things must exist in writing: a named role that signs off model and prompt changes before release, a review cycle of six months or less, a register listing every model, prompt template and data source in production with an owner and a version, and an escalation path for when output is wrong in front of a customer. Pass only if all four exist. "The AI committee reviews as needed" is a fail.&lt;/p&gt;

&lt;p&gt;The regional benchmark has moved decisively. A &lt;a href="https://www.khaleejtimes.com/business/tech/uae-firms-lead-in-data-compliance-but-ai-governance-and-vendor-risks-loom-large" rel="noopener noreferrer"&gt;Cohesity study conducted by YouGov&lt;/a&gt;, published ahead of GITEX 2025, surveyed 330 senior IT and business leaders in August 2025 and found 70% of UAE organisations now review AI compliance every six months or less, a shift away from annual checklist reviews. 66% maintained full compliance with UAE data regulations over the past year, and 62% now monitor compliance across third-party data providers directly. If your cycle is annual, you are now the outlier.&lt;/p&gt;

&lt;p&gt;For structure, adopt the &lt;a href="https://www.nist.gov/itl/ai-risk-management-framework" rel="noopener noreferrer"&gt;NIST AI Risk Management Framework&lt;/a&gt; (AI RMF 1.0, released 26 January 2023) and its Generative AI Profile NIST-AI-600-1 (released 26 July 2024). Both are free, mapped to other standards, and available in Arabic, which makes them usable in a GCC governance paper without translation work. Note that NIST has said AI RMF 1.0 is being revised under the White House AI Action Plan, so anchor your internal policy to the framework's structure, not to clause numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example.&lt;/strong&gt; The insurer's risk function runs an annual model audit, the same cycle it uses for credit scorecards. The assistant will change prompts every few weeks. That fails gate 4 on cadence alone. The fix is small: a quarterly review, a one-page register, and the Chief Data Officer as named signatory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gate 5: executive alignment
&lt;/h2&gt;

&lt;p&gt;Committees advise. Someone has to decide.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The test.&lt;/strong&gt; Write down one person's name and two more facts: they hold budget authority over the use case, and the use case is tied to one KPI they already report to the board (cost to serve, claims cycle time, revenue per account). If the name is a team or a forum, the gate fails. McKinsey is blunt on this: AI strategy determined by the IT department rarely delivers value; it should be owned by the most senior executives. Their survey found only 31% of GCC organisations have scaled AI, and where AI talent is centralised and deployed into cross-functional squads, roughly 70% of organisations moved pilots into production, against about 30% where talent is decentralised.&lt;/p&gt;

&lt;p&gt;Also check the follow-through gap. In the same survey, only 37% of organisations outside the value-realizer group had both a scalable architecture with MLOps and strong data fundamentals. In other words, leadership enthusiasm is nearly universal and technical follow-through is not. Your named owner has to own both.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example.&lt;/strong&gt; The insurer first proposed an "AI transformation steering group" of 11 members from six departments, meeting monthly, with a roadmap but no budget line. That is a fail. The fix: name the Chief Data Officer as accountable owner, attach the assistant to the claims cost-per-case KPI already in the board pack, and let the steering group advise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: the pre-flight on an AI claims assistant
&lt;/h2&gt;

&lt;p&gt;A Dubai insurer, 20 claims handlers, 2,000 claims a day, wants an assistant that drafts responses for handler review. Target: 3-second p95 answers, claims data stays in the UAE. Here is the pre-flight, with numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: data.&lt;/strong&gt; 2.1 million claims since 2019. 61% queryable via the core REST API, 39% as unindexed scans. Queryable share 61%, against an 80% bar. &lt;strong&gt;Fail.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: integration.&lt;/strong&gt; Reads: core claims API (OpenAPI document available), customer master (API, rate-limited to 100 requests/minute). Writes: claims workflow (API available). One write-back, all three systems documented. &lt;strong&gt;Pass.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: infrastructure.&lt;/strong&gt; 3-second p95 and UAE residency. Abroad-hosted API is out on residency. Pilot on in-region GPU capacity, ceiling one 8xH100 node at $6.88 per GPU-hour on demand. &lt;strong&gt;Pass.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: governance.&lt;/strong&gt; Audit cycle annual, no prompt register, no named signatory for model changes. &lt;strong&gt;Fail.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: alignment.&lt;/strong&gt; Chief Data Officer named with budget authority, KPI is cost per claim. &lt;strong&gt;Pass.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Score it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;gates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"data_accessibility"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;   &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"note"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"61% of claims queryable, bar is 80%"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"integration_surface"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="s2"&gt;"note"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"3 systems, all with APIs, 1 write-back"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"infrastructure_fit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;   &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="s2"&gt;"note"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"UAE residency, in-region GPU lane chosen"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"governance_ownership"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"note"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"annual review, no prompt register"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"executive_alignment"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="s2"&gt;"note"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"CDO named, budget authority, cost per claim KPI"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;failed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;gates&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"passed"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Score: {len(gates) - len(failed)}/{len(gates)} gates passed"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Blockers:"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;", "&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;failed&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="s2"&gt;"none"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;failed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Decision: do not commit build budget. Fix blockers first."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output: 3 of 5 gates passed, blockers are data accessibility and governance. Three passes means no build budget.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The decision.&lt;/strong&gt; Six weeks on the two blockers, no model work. Weeks 1 to 4: OCR and index the scanned backlog (roughly 820,000 documents), instrumenting queryable share weekly against the 80% bar. Weeks 5 to 6: write the prompt register, set the quarterly review, name the signatory. Then the build phase starts on ground that holds: all data queryable, three APIs, one write-back, a cost ceiling of $6.88 per GPU-hour for the pilot, and a named owner waiting for a working system. Had the team started with a model pilot instead, it would have burned a quarter discovering that two thirds of its knowledge was invisible to the model, while running up GPU or token spend against a corpus it could not feed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;p&gt;Do this before your next AI steering meeting, and do it in a week.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pick the use case the board is asking for and write the five gates out with the tests above.&lt;/li&gt;
&lt;li&gt;Spend one afternoon per gate with the people who actually own the systems, not with the use case champion. Record pass or fail with the number behind it.&lt;/li&gt;
&lt;li&gt;Total the fails. If you have two or more, write the remediation as its own funded plan with dates and owners, and take that to the board instead of a build proposal. A credible remediation plan is how you keep the AI budget alive.&lt;/li&gt;
&lt;li&gt;If you pass four or five gates, scope one production use case with a single KPI and a hard cost ceiling on compute.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This checklist is the short form of the readiness work we do at Azrty: mapping how the business runs, checking what the data and systems can actually carry, and telling you plainly where AI will pay off and what to do first. If you want that assessment run against your own estate, our team in the UAE does the work end to end: see &lt;a href="https://www.azrty.com/services/ai-strategy" rel="noopener noreferrer"&gt;AI strategy and readiness&lt;/a&gt;. If your blocker is gate 3 and you need the platform designed before the project starts, that is what our &lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;AI infrastructure practice&lt;/a&gt; is for.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/ai-readiness-checklist-five-gates-to-pass-before-you-commit-build-budget" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aistrategy</category>
      <category>aireadiness</category>
      <category>gcc</category>
      <category>aigovernance</category>
    </item>
    <item>
      <title>LLM gateway routing: budgets across multiple providers</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Sat, 14 Nov 2026 05:01:11 +0000</pubDate>
      <link>https://dev.to/azrty/llm-gateway-routing-budgets-across-multiple-providers-1i6f</link>
      <guid>https://dev.to/azrty/llm-gateway-routing-budgets-across-multiple-providers-1i6f</guid>
      <description>&lt;p&gt;LLM gateway routing is how you put budgets and multiple providers behind one OpenAI-compatible endpoint: clients change a single base URL, and the gateway authenticates the request, picks the provider, falls back when one fails and enforces spend before the money is gone. If your models are scattered across self-hosted GPUs, Azure OpenAI, Anthropic, AWS Bedrock and a direct OpenAI contract, every application is holding its own provider keys, its own retry logic and its own idea of what a call costs. This walkthrough configures the four jobs the gateway does on every request, with a proxy config you can paste.&lt;/p&gt;

&lt;p&gt;A model gateway answers the routing, budget and multiple-provider problem in one place: applications call a single endpoint, and the gateway decides which provider serves each request and whether the budget allows it. Most organisations we speak to in the UAE arrive at the same shape before that: a customer service copilot calling Azure OpenAI, a marketing team on a direct Anthropic key, a data science group running Llama on its own GPU servers, and one legacy integration still pointed at AWS Bedrock. Each application handles authentication, retries and cost tracking differently, or not at all. The result is predictable: no single view of spend, provider keys sitting in application config, and a provider incident on a Thursday afternoon taking down whichever app had no fallback.&lt;/p&gt;

&lt;p&gt;The gateway becomes the only endpoint your applications know. Clients keep the OpenAI SDK and change one value: the base URL. Behind that URL the gateway does four jobs on every request, and this article walks through each one with configuration you can paste. We use &lt;a href="https://docs.litellm.ai/docs/simple_proxy" rel="noopener noreferrer"&gt;LiteLLM's gateway documentation&lt;/a&gt; as the reference implementation, because it is the most widely deployed open source gateway with these features and its config format is a useful common language. At the end we map the same capabilities to FastLLM Proxy, our own OpenAI-compatible gateway for organisations that want the whole layer self-hosted.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the gateway does on every request
&lt;/h2&gt;

&lt;p&gt;It is worth being precise about the request path, because every budget, rate limit and fallback rule hangs off one of these steps. LiteLLM's &lt;a href="https://docs.litellm.ai/docs/proxy/architecture" rel="noopener noreferrer"&gt;life of a request documentation&lt;/a&gt; describes the sequence as:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Authentication and budget checks.&lt;/strong&gt; The &lt;code&gt;Bearer&lt;/code&gt; token is a virtual key. The gateway checks it against a Redis or in-memory cache first, and falls back to PostgreSQL on a miss. The key's own budget is checked here, before any provider call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rate limiting.&lt;/strong&gt; A parallel request limiter checks requests per minute (RPM) and tokens per minute (TPM) at four levels: global server, virtual key, user and team.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Routing.&lt;/strong&gt; The router picks a deployment from the requested model group, applying the routing strategy, then load balancing, retries and fallbacks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Provider translation.&lt;/strong&gt; The request goes out in the target provider's format and comes back in OpenAI format. The client never sees Anthropic's or Bedrock's wire format.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After the response returns to the client, spend logging, rate-limit accounting and logging callbacks run as asynchronous background tasks, so no database write sits in the request path. Two state stores carry the operational load: PostgreSQL holds keys, teams and spend, and Redis holds the key cache and the rate-limit counters. Run two or more gateway instances behind a load balancer without Redis and each instance keeps its own counters, which means a team's rate limit becomes N times whatever you set. Redis is not optional in production; it is what makes the numbers mean what you think they mean.&lt;/p&gt;

&lt;h2&gt;
  
  
  One virtual key per team, not one shared provider key
&lt;/h2&gt;

&lt;p&gt;The single highest-value change is replacing shared provider keys with &lt;a href="https://docs.litellm.ai/docs/proxy/virtual_keys" rel="noopener noreferrer"&gt;virtual keys&lt;/a&gt;. Each key carries its own model allowlist, budget, rate limits, team and user attribution. Provider API keys live only in the gateway's config or environment, so a leaked application key costs you a blocked virtual key, not your OpenAI account.&lt;/p&gt;

&lt;p&gt;Create a key per team and per application, not per person, for production services:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s1"&gt;'http://gateway.internal:4000/key/generate'&lt;/span&gt; \
  --header &lt;span class="s1"&gt;'Authorization: Bearer $LITELLM_MASTER_KEY'&lt;/span&gt; \
  --header &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; \
  --data-raw &lt;span class="s1"&gt;'{
    "models": ["chat-default", "chat-economy"],
    "team_id": "support-copilot",
    "max_budget": 150,
    "budget_duration": "30d",
    "tpm_limit": 90000,
    "rpm_limit": 600
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Spend is then attributable per key, user, team and end user via &lt;code&gt;/key/info&lt;/code&gt;, &lt;code&gt;/user/info&lt;/code&gt; and &lt;code&gt;/team/info&lt;/code&gt;, which is the data your finance team needs for chargeback and your platform team needs for capacity planning. Two settings are worth enabling from day one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;litellm_settings&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;upperbound_key_generate_params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;max_budget&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;        &lt;span class="c1"&gt;# reject any key asking for more than $500
&lt;/span&gt;    &lt;span class="na"&gt;budget_duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"30d"&lt;/span&gt;
    &lt;span class="na"&gt;rpm_limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;
  &lt;span class="na"&gt;default_key_generate_params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;budget_duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"30d"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Upper bounds mean a team admin cannot mint an uncapped key through self-service. Defaults mean a forgotten &lt;code&gt;max_budget&lt;/code&gt; still produces a capped key. In GCC enterprises where AI spend is centralised but experimentation is federated, this pair is the difference between governed self-service and a monthly surprise invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  How an LLM gateway routes across multiple providers within budget
&lt;/h2&gt;

&lt;p&gt;A model group is a set of deployments that share one &lt;code&gt;model_name&lt;/code&gt; and are load balanced across. Routing decides which deployment serves each request, and the budget rules decide which deployments are even eligible. The &lt;a href="https://docs.litellm.ai/docs/proxy/load_balancing" rel="noopener noreferrer"&gt;load balancing documentation&lt;/a&gt; and the &lt;a href="https://docs.litellm.ai/docs/routing" rel="noopener noreferrer"&gt;router documentation&lt;/a&gt; describe five built-in strategies:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Strategy&lt;/th&gt;
&lt;th&gt;How it picks&lt;/th&gt;
&lt;th&gt;Use it when&lt;/th&gt;
&lt;th&gt;Watch out for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;simple-shuffle&lt;/code&gt; (default)&lt;/td&gt;
&lt;td&gt;Weighted random, biased by &lt;code&gt;rpm&lt;/code&gt;/&lt;code&gt;tpm&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;General production traffic&lt;/td&gt;
&lt;td&gt;Recommended; lowest latency overhead&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;least-busy&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fewest in-flight requests&lt;/td&gt;
&lt;td&gt;High concurrency bursts&lt;/td&gt;
&lt;td&gt;Ignores cost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;latency-based-routing&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fastest recent response time&lt;/td&gt;
&lt;td&gt;Latency-critical paths&lt;/td&gt;
&lt;td&gt;Set &lt;code&gt;routing_strategy_args.ttl&lt;/code&gt; (seconds) so stale timings expire&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cost-based-routing&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowest cost per token&lt;/td&gt;
&lt;td&gt;Batch and non-interactive work&lt;/td&gt;
&lt;td&gt;Models missing from the cost map default to a $1 assumed cost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;usage-based-routing&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lowest RPM/TPM usage&lt;/td&gt;
&lt;td&gt;Rarely&lt;/td&gt;
&lt;td&gt;Docs mark it bad for performance: Redis calls add latency&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two practical notes. First, &lt;code&gt;simple-shuffle&lt;/code&gt; is the right default, and &lt;code&gt;latency-based-routing&lt;/code&gt; with &lt;code&gt;lowest_latency_buffer: 0.5&lt;/code&gt; is the right choice for a small number of regional deployments of the same model, because the buffer keeps you from hammering the single fastest endpoint. Second, if you want a latency-based strategy for your flagship chat model but weighted shuffle for everything else, use routing groups rather than two gateways:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;router_settings&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;routing_strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;simple-shuffle&lt;/span&gt;
  &lt;span class="na"&gt;routing_groups&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;group_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;latency-sensitive&lt;/span&gt;
      &lt;span class="na"&gt;models&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;chat-default&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;routing_strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;latency-based-routing&lt;/span&gt;
      &lt;span class="na"&gt;routing_strategy_args&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;ttl:&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also alias model names (&lt;code&gt;model_group_alias&lt;/code&gt;) so applications request &lt;code&gt;chat-default&lt;/code&gt; today and &lt;code&gt;chat-default-2&lt;/code&gt; after a model upgrade, with no code change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ordered fallbacks: surviving a provider outage
&lt;/h2&gt;

&lt;p&gt;Retries and fallbacks are different mechanisms, and conflating them is how teams end up with apps that retry a dead provider twelve times. In the router architecture, &lt;strong&gt;retries stay inside the model group that failed&lt;/strong&gt; and &lt;strong&gt;fallbacks leave it for the next group&lt;/strong&gt; in your configuration.&lt;/p&gt;

&lt;p&gt;Within a group, set &lt;code&gt;order&lt;/code&gt; on each deployment. Lower is tried first. Each order level gets its own retries before the router escalates to the next:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;model_list&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;model_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;chat-default&lt;/span&gt;
    &lt;span class="na"&gt;litellm_params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;azure/gpt-4o&lt;/span&gt;                  &lt;span class="c1"&gt;# your own Azure deployment name
&lt;/span&gt;      &lt;span class="na"&gt;api_base&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/AZURE_API_BASE&lt;/span&gt;
      &lt;span class="na"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/AZURE_API_KEY&lt;/span&gt;
      &lt;span class="na"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;      &lt;span class="c1"&gt;# primary
&lt;/span&gt;  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;model_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;chat-default&lt;/span&gt;
    &lt;span class="na"&gt;litellm_params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;anthropic/claude-3-5-sonnet&lt;/span&gt;
      &lt;span class="na"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/ANTHROPIC_API_KEY&lt;/span&gt;
      &lt;span class="na"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;      &lt;span class="c1"&gt;# tried when order 1 fails
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same block covers Bedrock: &lt;code&gt;model: bedrock/anthropic.claude-3-5-sonnet-...-v1:0&lt;/code&gt; with your AWS credentials in the environment is another order level in the chain, and the router treats it like any other deployment. Substitute your own model and deployment identifiers throughout.&lt;/p&gt;

&lt;p&gt;Three behaviours to design around:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;429s cool a deployment down immediately.&lt;/strong&gt; If all &lt;code&gt;order: 1&lt;/code&gt; deployments are on cooldown, retries go straight to &lt;code&gt;order: 2&lt;/code&gt; without waiting for the full fallback path. A rate-limited primary therefore degrades in milliseconds, not minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cooldown thresholds are configurable.&lt;/strong&gt; &lt;code&gt;allowed_fails: 3&lt;/code&gt; with &lt;code&gt;cooldown_time: 30&lt;/code&gt; (seconds) means a deployment is parked for 30 seconds after more than three failures in that window. If you set nothing, the router falls back to a short default cooldown, so set both explicitly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context-length and content-policy errors have their own fallback rules&lt;/strong&gt; (&lt;code&gt;context_window_fallbacks&lt;/code&gt;), so a prompt that is too long does not burn your whole fallback chain before failing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Set &lt;code&gt;num_retries&lt;/code&gt; and &lt;code&gt;timeout&lt;/code&gt; in &lt;code&gt;router_settings&lt;/code&gt; so a hung provider cannot pin a connection for minutes. A 30 second timeout with two retries per order level is a reasonable starting point for interactive chat.&lt;/p&gt;

&lt;h2&gt;
  
  
  Budgets across providers, models and tags: enforced before dispatch
&lt;/h2&gt;

&lt;p&gt;This is the piece most gateways get wrong: they tell you what you spent after the money is gone. &lt;a href="https://docs.litellm.ai/docs/proxy/provider_budget_routing" rel="noopener noreferrer"&gt;Budget routing&lt;/a&gt; instead removes over-budget deployments from the routing pool before the request is dispatched.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Budget level&lt;/th&gt;
&lt;th&gt;Where you set it&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Behaviour when exceeded&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Provider&lt;/td&gt;
&lt;td&gt;&lt;code&gt;router_settings.provider_budget_config&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;azure: 150 USD / 1d&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Provider skipped; other providers serve&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model (deployment)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;max_budget&lt;/code&gt; + &lt;code&gt;budget_duration&lt;/code&gt; on the deployment&lt;/td&gt;
&lt;td&gt;&lt;code&gt;100 USD / 30d&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Deployment removed from its group&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tag&lt;/td&gt;
&lt;td&gt;&lt;code&gt;litellm_settings.tag_budget_config&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;product:chat-bot: 10 USD / 1d&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Request rejected with 429 (enterprise feature in LiteLLM)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Key / team / user&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/key/generate&lt;/code&gt; with &lt;code&gt;max_budget&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;150 USD / 30d&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Request rejected with 429&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Provider budgets use Redis to track spend per provider over windows like &lt;code&gt;1d&lt;/code&gt;, &lt;code&gt;30d&lt;/code&gt; or &lt;code&gt;1mo&lt;/code&gt;, reset automatically, and are the mechanism behind the worked example below. Two operational details matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multi-instance deployments need Redis configured in &lt;code&gt;router_settings&lt;/code&gt;&lt;/strong&gt;, or spend counters diverge per instance and a $150 budget becomes $150 per pod.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You can watch the remaining budget.&lt;/strong&gt; &lt;code&gt;GET /provider/budgets&lt;/code&gt; returns spend, limit and reset time per provider, and the Prometheus metric &lt;code&gt;litellm_provider_remaining_budget_metric{api_provider="azure"}&lt;/code&gt; reports remaining dollars, which is what you alert on at 80 percent.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hard rate limits on deployments are a separate control. With &lt;code&gt;optional_pre_call_checks: [enforce_model_rate_limits]&lt;/code&gt;, the &lt;code&gt;rpm&lt;/code&gt;, &lt;code&gt;tpm&lt;/code&gt;, &lt;code&gt;rpd&lt;/code&gt; and &lt;code&gt;tpd&lt;/code&gt; values on a deployment become enforced limits that return 429 with a &lt;code&gt;retry-after&lt;/code&gt; header before the provider is called. RPM and RPD are exact; TPM and TPD are best-effort, because token counts are only known after generation. For daily quotas that reset on the provider's schedule rather than midnight UTC, set &lt;code&gt;daily_reset_time&lt;/code&gt; (for example &lt;code&gt;"08:00"&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: a support copilot through one bad week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The setup.&lt;/strong&gt; A Dubai retail group runs a customer support copilot: 10,000 chat turns per working day. Each turn is roughly 1,500 input tokens and 400 output tokens. The primary path is an Azure OpenAI deployment, with Anthropic as a second order, and a self-hosted Llama 70B on the group's own GPU servers as the final fallback. Finance has agreed a hard cap of 150 USD per day on Azure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: cost per turn.&lt;/strong&gt; Using example contract rates of 3 USD per 1M input tokens and 15 USD per 1M output tokens (replace these with your own price sheet, or set &lt;code&gt;input_cost_per_token&lt;/code&gt; and &lt;code&gt;output_cost_per_token&lt;/code&gt; explicitly on the deployment):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Input: 1,500 x 3 / 1,000,000 = 0.0045 USD&lt;/li&gt;
&lt;li&gt;Output: 400 x 15 / 1,000,000 = 0.0060 USD&lt;/li&gt;
&lt;li&gt;Per turn: 0.0105 USD, so 10,000 turns = 105 USD per day&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A normal day sits at 105 USD against a 150 USD cap. Headroom is 45 USD, or about 4,285 turns.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: the campaign spike.&lt;/strong&gt; A marketing campaign doubles support volume to 21,000 turns. If all of it went to Azure it would cost 220.50 USD. Instead, the provider budget trips after 150 / 0.0105 = 14,285 turns. From that moment the router removes Azure from the pool and the remaining 6,715 turns go to the &lt;code&gt;order: 2&lt;/code&gt; Anthropic deployment. Azure spend holds at roughly 150 USD, the copilot keeps answering, and your Monday report shows exactly which provider absorbed the overflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: the provider incident.&lt;/strong&gt; On another day Azure returns 429 to every call at 10:15. The failing deployment is placed on cooldown immediately, retries move to &lt;code&gt;order: 2&lt;/code&gt; within the same request, and users see slightly higher latency rather than errors. If Anthropic also fails, the configured &lt;code&gt;fallbacks&lt;/code&gt; entry routes to the self-hosted model group, where the marginal cost is GPU time you have already paid for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: the accounting.&lt;/strong&gt; The next morning, &lt;code&gt;GET /provider/budgets&lt;/code&gt; and the team's key spend endpoint give you the numbers for the chargeback meeting: provider-level spend against cap, and per-team spend against each key's &lt;code&gt;max_budget&lt;/code&gt;. No spreadsheet reconstruction required.&lt;/p&gt;

&lt;h3&gt;
  
  
  The configuration behind it
&lt;/h3&gt;

&lt;p&gt;This is a minimal &lt;code&gt;proxy_config.yaml&lt;/code&gt; that implements the scenario: model list, ordered deployments, routing, fallbacks, provider budgets, enforced rate limits, Redis and a master key. Substitute your own model and deployment names.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;model_list&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;model_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;chat-default&lt;/span&gt;
    &lt;span class="na"&gt;litellm_params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;azure/gpt-4o&lt;/span&gt;
      &lt;span class="na"&gt;api_base&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/AZURE_API_BASE&lt;/span&gt;
      &lt;span class="na"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/AZURE_API_KEY&lt;/span&gt;
      &lt;span class="na"&gt;rpm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;
      &lt;span class="na"&gt;tpm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;90000&lt;/span&gt;
      &lt;span class="na"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;model_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;chat-default&lt;/span&gt;
    &lt;span class="na"&gt;litellm_params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;anthropic/claude-3-5-sonnet&lt;/span&gt;
      &lt;span class="na"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/ANTHROPIC_API_KEY&lt;/span&gt;
      &lt;span class="na"&gt;rpm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;600&lt;/span&gt;
      &lt;span class="na"&gt;order&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;model_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;chat-economy&lt;/span&gt;
    &lt;span class="na"&gt;litellm_params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;openai/llama-3.3-70b-instruct&lt;/span&gt;   &lt;span class="c1"&gt;# your vLLM or TGI server, OpenAI-compatible
&lt;/span&gt;      &lt;span class="na"&gt;api_base&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;http://vllm.internal:8000/v1&lt;/span&gt;
      &lt;span class="na"&gt;api_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/VLLM_KEY&lt;/span&gt;
      &lt;span class="na"&gt;input_cost_per_token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.0000004&lt;/span&gt;  &lt;span class="c1"&gt;# GPU time amortised, per your own maths
&lt;/span&gt;      &lt;span class="na"&gt;output_cost_per_token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.0000008&lt;/span&gt;

&lt;span class="na"&gt;router_settings&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;routing_strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;simple-shuffle&lt;/span&gt;
  &lt;span class="na"&gt;num_retries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;
  &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;
  &lt;span class="na"&gt;fallbacks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;chat-default&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;chat-economy&lt;/span&gt;
  &lt;span class="na"&gt;provider_budget_config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;azure&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;budget_limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;150&lt;/span&gt;
      &lt;span class="na"&gt;time_period&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1d"&lt;/span&gt;
    &lt;span class="na"&gt;anthropic&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;budget_limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt;
      &lt;span class="na"&gt;time_period&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1d"&lt;/span&gt;
  &lt;span class="na"&gt;optional_pre_call_checks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="s"&gt;enforce_model_rate_limits&lt;/span&gt;
  &lt;span class="na"&gt;redis_host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/REDIS_HOST&lt;/span&gt;
  &lt;span class="na"&gt;redis_port&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/REDIS_PORT&lt;/span&gt;
  &lt;span class="na"&gt;redis_password&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/REDIS_PASSWORD&lt;/span&gt;

&lt;span class="na"&gt;general_settings&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;master_key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/LITELLM_MASTER_KEY&lt;/span&gt;
  &lt;span class="na"&gt;database_url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/DATABASE_URL&lt;/span&gt;

&lt;span class="na"&gt;litellm_settings&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;upperbound_key_generate_params&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;max_budget&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;
    &lt;span class="na"&gt;budget_duration&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"30d"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Start it with &lt;code&gt;litellm --config proxy_config.yaml&lt;/code&gt;, then point a client at it with no other code changes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"sk-team-virtual-key"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http://gateway.internal:4000"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"chat-default"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Where is my order?"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Running the same layer on your own infrastructure
&lt;/h2&gt;

&lt;p&gt;Everything above is a pattern, not a product mandate. The pattern is: one OpenAI-compatible endpoint, virtual keys per team, a router with ordered fallbacks, and budgets enforced before dispatch with Redis behind them. If your constraint is that the gateway itself must run inside your own data centre or cloud tenancy, with provider credentials never leaving your network, that is the problem &lt;a href="https://www.azrty.com/software/fastllm-proxy" rel="noopener noreferrer"&gt;FastLLM Proxy&lt;/a&gt; is built for. It is an OpenAI-compatible gateway that sits in front of your own LLM servers and 80 hosted providers, with routing, budgets and access control in one place, and it maps onto this article one to one: virtual keys for per-team access and spend, routing and ordered fallbacks across your GPU fleet and hosted providers, and per-provider budgets held on your own infrastructure.&lt;/p&gt;

&lt;p&gt;For regional organisations the operational argument is simple. The gateway becomes the single place where data residency policy is enforced, because it is the only component that touches both your prompts and the provider APIs. Your applications hold no provider keys, prompts can be kept on self-hosted models where policy requires it and routed to hosted models where it does not, and the whole control layer runs on infrastructure your team operates. Our own team in the UAE does this work: we design the platform on &lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;AI infrastructure engagements&lt;/a&gt;, deploy the gateway and the GPU fleet behind it, and run them for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;p&gt;If you take one thing from this article, take the order of operations. It matters more than the tool choice.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Inventory every provider key&lt;/strong&gt; in application config and environment variables. Count them. That number is your current blast radius.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stand up one gateway&lt;/strong&gt; (LiteLLM or FastLLM Proxy) with PostgreSQL and Redis, in the environment where your data policy says prompts may flow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Define model groups&lt;/strong&gt; per capability (chat, embeddings, batch), not per provider, and give each group an &lt;code&gt;order&lt;/code&gt; chain ending in something you control.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Issue one virtual key per team and application&lt;/strong&gt;, with &lt;code&gt;max_budget&lt;/code&gt;, &lt;code&gt;budget_duration&lt;/code&gt; and RPM/TPM limits, and set upper bounds so self-service stays governed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set provider budgets&lt;/strong&gt; (&lt;code&gt;provider_budget_config&lt;/code&gt;) at the daily caps finance has actually agreed, and alert on &lt;code&gt;litellm_provider_remaining_budget_metric&lt;/code&gt; at 80 percent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run one outage drill&lt;/strong&gt; per quarter: block the primary provider at the firewall and confirm the fallback chain absorbs it within one request, not one incident call.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Do those six steps and the phrase "one gateway for every model" stops being a slide and becomes the operational reality your budget reports, your incident runbooks and your developers all rely on.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/llm-gateway-routing-budgets-across-multiple-providers" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>llmgateway</category>
      <category>aiinfrastructure</category>
      <category>routing</category>
      <category>budgets</category>
    </item>
    <item>
      <title>MIG vs MPS vs time-slicing: how to isolate multiple tenants on one GPU</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Sat, 14 Nov 2026 05:01:10 +0000</pubDate>
      <link>https://dev.to/azrty/mig-vs-mps-vs-time-slicing-how-to-isolate-multiple-tenants-on-one-gpu-1bk5</link>
      <guid>https://dev.to/azrty/mig-vs-mps-vs-time-slicing-how-to-isolate-multiple-tenants-on-one-gpu-1bk5</guid>
      <description>&lt;p&gt;Put two clients' inference workloads on the same card and one of two things goes wrong: a noisy neighbour destroys the other's latency, or one tenant's memory allocation evicts the other's model. NVIDIA gives you several ways to share a GPU and they are not interchangeable. Two give you throughput but no isolation, one gives you hardware isolation at a fixed grain, and CUDA 13.4 added memory limits that change the arithmetic again. This is the decision table, the Kubernetes configuration for each, and a worked four-H100 layout you can copy.&lt;/p&gt;

&lt;p&gt;Multi-tenant GPU platforms fail in a very specific way. Everything looks fine at 20% utilisation, then client A runs a batch job at 14:00, client B's p99 latency triples, and the service level agreement (SLA) credit eats the margin on both accounts. Worse, the failure is silent on the memory side: on a shared card, whichever container allocates last gets the OOM killer, and it is usually the tenant who did nothing wrong.&lt;/p&gt;

&lt;p&gt;NVIDIA's own &lt;a href="https://developer.nvidia.com/blog/improving-gpu-utilization-in-kubernetes" rel="noopener noreferrer"&gt;GPU utilisation comparison&lt;/a&gt; lays out the choices: CUDA Streams, Multi-Process Service (MPS), time-slicing, Multi-Instance GPU (MIG) and vGPU. They differ on the thing that matters most in a managed offering: what is actually isolated. This article takes the four mechanisms you can run in Kubernetes today, including the memory-enforced fractioning that landed with CUDA 13.4 (&lt;a href="https://developer.nvidia.com/blog/memory-enforced-gpu-sharing-in-kubernetes-with-nvidia-cuda-13-4/" rel="noopener noreferrer"&gt;NVIDIA's announcement&lt;/a&gt;), and gives you the resource claim for each.&lt;/p&gt;

&lt;p&gt;We build and run these platforms for clients from our team in Dubai, and the pattern is always the same: the isolation decision comes first, the YAML second. Teams that get it backwards tend to re-platform a few months in.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision table
&lt;/h2&gt;

&lt;p&gt;Read this before anything else. "Isolation" here means: can tenant B observe, degrade or evict tenant A?&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mechanism&lt;/th&gt;
&lt;th&gt;What is isolated&lt;/th&gt;
&lt;th&gt;Memory boundary&lt;/th&gt;
&lt;th&gt;Compute boundary&lt;/th&gt;
&lt;th&gt;Max tenants per GPU&lt;/th&gt;
&lt;th&gt;Reconfigure&lt;/th&gt;
&lt;th&gt;Right for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CUDA Streams&lt;/td&gt;
&lt;td&gt;Nothing across processes. Only overlaps kernels inside one process&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;1 process, many streams&lt;/td&gt;
&lt;td&gt;n/a&lt;/td&gt;
&lt;td&gt;A single service wanting concurrency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time-slicing&lt;/td&gt;
&lt;td&gt;Nothing. Contexts take turns on the whole device&lt;/td&gt;
&lt;td&gt;None: one shared heap, last allocator wins&lt;/td&gt;
&lt;td&gt;None: full card, 1/N of the wall-clock time&lt;/td&gt;
&lt;td&gt;Usually 4 to 10 replicas, soft&lt;/td&gt;
&lt;td&gt;Change replica count&lt;/td&gt;
&lt;td&gt;Dev/test, homogeneous batch, best-effort inference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MPS&lt;/td&gt;
&lt;td&gt;Nothing structural. Up to 48 clients (Volta) or 64 (Ampere) share one context&lt;/td&gt;
&lt;td&gt;Coarse caps only: pinned and total device memory per client, active thread percentage&lt;/td&gt;
&lt;td&gt;Shared SMs, no partitioning&lt;/td&gt;
&lt;td&gt;48 to 64 processes&lt;/td&gt;
&lt;td&gt;Republish the pool&lt;/td&gt;
&lt;td&gt;Latency-sensitive inference where clients trust each other&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory-enforced fractioning (CUDA 13.4)&lt;/td&gt;
&lt;td&gt;Memory capacity, enforced in the CUDA driver&lt;/td&gt;
&lt;td&gt;Yes: &lt;code&gt;nvidia.com/gpu.memory&lt;/code&gt; request and limit per container&lt;/td&gt;
&lt;td&gt;Either &lt;code&gt;sm-sharing&lt;/code&gt; or &lt;code&gt;time-slicing&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Whatever divides into the card&lt;/td&gt;
&lt;td&gt;Fractional &lt;code&gt;nvidia.com/gpu&lt;/code&gt; values&lt;/td&gt;
&lt;td&gt;SaaS inference where the OOM risk is the real problem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MIG&lt;/td&gt;
&lt;td&gt;Hardware partition: SMs, L2, memory capacity and bandwidth, copy engines&lt;/td&gt;
&lt;td&gt;Hard, in silicon&lt;/td&gt;
&lt;td&gt;Dedicated SM slices&lt;/td&gt;
&lt;td&gt;7 instances (A100/H100/H200)&lt;/td&gt;
&lt;td&gt;Changing geometry drains the GPU&lt;/td&gt;
&lt;td&gt;Client-facing production, regulated data, paid tiers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;vGPU&lt;/td&gt;
&lt;td&gt;A slice presented to a VM&lt;/td&gt;
&lt;td&gt;Depends on the profile&lt;/td&gt;
&lt;td&gt;Depends on the profile&lt;/td&gt;
&lt;td&gt;Licensed per profile&lt;/td&gt;
&lt;td&gt;Hypervisor&lt;/td&gt;
&lt;td&gt;Estates that are VM-first and already licensed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two rows need a caveat. CUDA Streams is not a multi-tenant mechanism at all: it is how one process overlaps its own kernels, so it sits in NVIDIA's table for completeness. vGPU needs NVIDIA licensing and a hypervisor, which is a different procurement conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  MIG: the only real hardware boundary
&lt;/h2&gt;

&lt;p&gt;MIG splits the card into GPU Instances, each with a fixed number of SM slices and memory slices. On an A100 or H100 the memory is cut into 8 slices and the SMs into 7, which is why the profile names look odd. From the &lt;a href="https://docs.nvidia.com/datacenter/tesla/mig-user-guide/latest/supported-mig-profiles.html" rel="noopener noreferrer"&gt;NVIDIA MIG user guide&lt;/a&gt;, on an H100 80 GB:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Profile&lt;/th&gt;
&lt;th&gt;Memory&lt;/th&gt;
&lt;th&gt;SMs&lt;/th&gt;
&lt;th&gt;Instances available&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;1g.10gb&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1/8 (10 GB)&lt;/td&gt;
&lt;td&gt;1/7&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;2g.20gb&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2/8 (20 GB)&lt;/td&gt;
&lt;td&gt;2/7&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;3g.40gb&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4/8 (40 GB)&lt;/td&gt;
&lt;td&gt;3/7&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;7g.80gb&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;8/8&lt;/td&gt;
&lt;td&gt;7/7&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each instance gets its own memory controllers, cache and copy engines. A tenant cannot see another tenant's memory and cannot starve another tenant's SMs. That is the whole point.&lt;/p&gt;

&lt;p&gt;The costs are real. You cannot split arbitrarily: only the published profiles exist, so a tenant who needs 25 GB lands on &lt;code&gt;3g.40gb&lt;/code&gt; and wastes 15 GB. MIG instances do not do peer-to-peer, so distributed training across instances is a bad idea. And changing the geometry means destroying every instance on that GPU and draining the node first.&lt;/p&gt;

&lt;p&gt;MIG only exists on GPUs with compute capability 8.0 or above. Per NVIDIA's &lt;a href="https://docs.nvidia.com/datacenter/tesla/mig-user-guide/latest/supported-gpus.html" rel="noopener noreferrer"&gt;supported GPU list&lt;/a&gt;: A100, A30, H100, H200, B200 and GB200. The Ada parts do not support it: no MIG on L4, L40, L40S, A40, A10 or A2. If your fleet is L40S inference boxes, you are in the sharing rows of the table, not here.&lt;/p&gt;

&lt;p&gt;Set the geometry on the host once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Enable MIG mode on GPU 0 and see which placements this board accepts&lt;/span&gt;
nvidia-smi -i 0 -mig 1
nvidia-smi -i 0 -lgipp

&lt;span class="c"&gt;# One 3g.40gb, one 2g.20gb, two 1g.10gb: 8 memory slices, 7 SM slices&lt;/span&gt;
sudo nvidia-smi -i 0 -mig -cgi 3g.40gb,2g.20gb,1g.10gb,1g.10gb -C
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Always run &lt;code&gt;-lgipp&lt;/code&gt; first: placements are fixed per board and driver, and an invalid combination is rejected.&lt;/p&gt;

&lt;p&gt;On Kubernetes, use the NVIDIA DRA driver. Each tenant gets a &lt;code&gt;ResourceClaim&lt;/code&gt; naming the profile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;resource.k8s.io/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ResourceClaim&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-a-inference&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-a&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;devices&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu&lt;/span&gt;
      &lt;span class="na"&gt;deviceClassName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu.nvidia.com&lt;/span&gt;
      &lt;span class="na"&gt;config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;opaque&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu.nvidia.com&lt;/span&gt;
          &lt;span class="na"&gt;parameters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;resource.nvidia.com/v1beta1&lt;/span&gt;
            &lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;GpuConfig&lt;/span&gt;
            &lt;span class="na"&gt;mig&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;singleStrategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;3g.40gb&lt;/span&gt;
&lt;span class="nn"&gt;---
&lt;/span&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Pod&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-a-inference&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-a&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;resourceClaims&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu&lt;/span&gt;
    &lt;span class="na"&gt;resourceClaimName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-a-inference&lt;/span&gt;
  &lt;span class="na"&gt;containers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;engine&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;vllm/vllm-openai:v0.10.2&lt;/span&gt;
    &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;claims&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu&lt;/span&gt;
        &lt;span class="na"&gt;request&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;
    &lt;span class="na"&gt;args&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"--model"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/models/tenant-a"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"--max-model-len"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"8192"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/mig/" rel="noopener noreferrer"&gt;DRA driver MIG guide&lt;/a&gt; also advertises each profile as an extended resource such as &lt;code&gt;nvidia.com/mig-3g.40gb&lt;/code&gt;, so a claim-less pod can request that in &lt;code&gt;resources.limits&lt;/code&gt;. Either form works; the &lt;code&gt;ResourceClaim&lt;/code&gt; form is what you want when tenant, profile and policy belong together in one object your admission controller can audit.&lt;/p&gt;

&lt;h2&gt;
  
  
  MPS: throughput with a leash, not a wall
&lt;/h2&gt;

&lt;p&gt;MPS lets many CUDA processes run concurrently on one device by placing their contexts in a single server process. SMs are time-shared at the instruction level rather than the context level, so you get better utilisation than plain time-slicing and much better tail latency for small kernels. What you do not get is a memory boundary: all clients still draw from one device heap.&lt;/p&gt;

&lt;p&gt;What you do get is a leash, and it is worth using. Per the &lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/mps/" rel="noopener noreferrer"&gt;DRA driver MPS guide&lt;/a&gt;, the DRA driver runs an MPS control daemon per node and lets you set three limits: &lt;code&gt;activeThreadPercentage&lt;/code&gt; (SM share), &lt;code&gt;pinnedDeviceMemory&lt;/code&gt; and &lt;code&gt;deviceMemory&lt;/code&gt;. The practical ceiling is 48 client processes on Volta and 64 on Ampere.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;resource.k8s.io/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ResourceClaim&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-b-inference&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-b&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;devices&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu&lt;/span&gt;
      &lt;span class="na"&gt;deviceClassName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu.nvidia.com&lt;/span&gt;
      &lt;span class="na"&gt;config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;opaque&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu.nvidia.com&lt;/span&gt;
          &lt;span class="na"&gt;parameters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;resource.nvidia.com/v1beta1&lt;/span&gt;
            &lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;GpuConfig&lt;/span&gt;
            &lt;span class="na"&gt;mps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;sharing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="na"&gt;strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;TimeSliced&lt;/span&gt;
                &lt;span class="na"&gt;timeSlicing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                  &lt;span class="na"&gt;maxClients&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;
                  &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;nvidia.com/gpu&lt;/span&gt;
                    &lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;
              &lt;span class="na"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="na"&gt;activeThreadPercentage&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;
                &lt;span class="na"&gt;pinnedDeviceMemory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;2Gi&lt;/span&gt;
                &lt;span class="na"&gt;deviceMemory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;8Gi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read that claim literally: eight concurrent clients, each capped at 25% of the SMs and 8 GB of device memory. A client that tries to allocate 20 GB fails inside its own container rather than evicting a neighbour. That is the difference between MPS and raw time-slicing, and it is the reason many teams make MPS the default for their own internal inference pools.&lt;/p&gt;

&lt;p&gt;There is a second constraint the DRA guide states plainly: MPS cannot share a device that is already being shared by time-slicing or MIG, and the device's compute mode must be &lt;code&gt;EXCLUSIVE_PROCESS&lt;/code&gt; because the control daemon's context owns the GPU. If your node image sets &lt;code&gt;DEFAULT&lt;/code&gt; compute mode, MPS will not come up. Set it once at provisioning:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nvidia-smi -i 0 -c EXCLUSIVE_PROCESS
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Time-slicing: cheap, simple, and unsafe on memory
&lt;/h2&gt;

&lt;p&gt;Time-slicing is the default many clusters fall into. Every container sees a whole GPU and gets 1/N of it in turn. Nothing is isolated. Its real virtue is that the DRA driver or device plugin can advertise a whole card as N identical replicas with a two-line change, which is ideal for dev clusters and for homogeneous batch jobs that are all yours.&lt;/p&gt;

&lt;p&gt;With the DRA driver (&lt;a href="https://dra-driver-nvidia-gpu.sigs.k8s.io/docs/guides/gpu-allocation/time-slicing/" rel="noopener noreferrer"&gt;time-slicing guide&lt;/a&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;resource.k8s.io/v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ResourceClaim&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;batch-embed&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-e&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;devices&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu&lt;/span&gt;
      &lt;span class="na"&gt;deviceClassName&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu.nvidia.com&lt;/span&gt;
      &lt;span class="na"&gt;config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;opaque&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu.nvidia.com&lt;/span&gt;
          &lt;span class="na"&gt;parameters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;resource.nvidia.com/v1beta1&lt;/span&gt;
            &lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;GpuConfig&lt;/span&gt;
            &lt;span class="na"&gt;sharing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
              &lt;span class="na"&gt;strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;TimeSliced&lt;/span&gt;
              &lt;span class="na"&gt;timeSlicing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;nvidia.com/gpu&lt;/span&gt;
                  &lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you are still on the NVIDIA device plugin or GPU Operator rather than DRA, the same idea lives in a ConfigMap that the device plugin reads at startup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ConfigMap&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;time-slicing-config&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gpu-operator&lt;/span&gt;
&lt;span class="na"&gt;data&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;any&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="s"&gt;-&lt;/span&gt;
    &lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1&lt;/span&gt;
    &lt;span class="na"&gt;sharing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;timeSlicing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;nvidia.com/gpu&lt;/span&gt;
          &lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The memory trap is this: &lt;code&gt;replicas: 4&lt;/code&gt; divides the SMs' time, never the memory. Four pods on an 80 GB H100 can still collectively allocate 80 GB, and the one that overflows takes an OOM. If you cannot accept that, do not use this row of the table.&lt;/p&gt;

&lt;h2&gt;
  
  
  Memory-enforced fractioning: the new middle ground
&lt;/h2&gt;

&lt;p&gt;CUDA 13.4 closed exactly that hole. As described in &lt;a href="https://developer.nvidia.com/blog/memory-enforced-gpu-sharing-in-kubernetes-with-nvidia-cuda-13-4/" rel="noopener noreferrer"&gt;NVIDIA's announcement&lt;/a&gt;, a container can now take a fractional GPU plus a memory request and limit, and the CUDA driver enforces the limit per container rather than relying on the last allocator to lose. It needs driver support for CUDA 13.4 and a recent NVIDIA Container Toolkit.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;apiVersion&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1&lt;/span&gt;
&lt;span class="na"&gt;kind&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Pod&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-c-inference&lt;/span&gt;
  &lt;span class="na"&gt;namespace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;tenant-c&lt;/span&gt;
&lt;span class="na"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;containers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;engine&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;vllm/vllm-openai:v0.10.2&lt;/span&gt;
    &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;limits&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;nvidia.com/gpu&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;
        &lt;span class="na"&gt;nvidia.com/gpu.memory&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;6Gi&lt;/span&gt;
        &lt;span class="na"&gt;nvidia.com/gpu.memory.limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;8Gi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are two strategies and the choice matters. &lt;code&gt;sm-sharing&lt;/code&gt; is the native MPS time-sharing mode: concurrent kernels, no memory enforcement. &lt;code&gt;time-slicing&lt;/code&gt; is the classic context time-slice, and that is the one where the memory limit is enforced, because each container owns its own CUDA context. The two are mutually exclusive on a device and therefore need separate resource names and device classes. This mechanism is not a security boundary either, but it does remove the failure mode that causes most multi-tenant incidents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: eight clients, four H100s
&lt;/h2&gt;

&lt;p&gt;Take a managed AI provider in Dubai running eight client organisations on four H100 80 GB cards. Four of those clients run production inference (a 7B to 13B class model each, max sequence 8192); the other four consume a shared retrieval-augmented generation (RAG) embedding pool. One nightly fine-tune and one internal dev environment round out the node.&lt;/p&gt;

&lt;p&gt;Step 1: classify. Production inference carries an SLA and untrusted data, so it is MIG. The embedding pool is ours, homogeneous and latency-tolerant, so it shares. The fine-tune needs a whole card's memory bandwidth. Dev is best-effort.&lt;/p&gt;

&lt;p&gt;Step 2: pick the geometry. Cards 0 and 1 each run &lt;code&gt;3g.40gb, 2g.20gb, 1g.10gb, 1g.10gb&lt;/code&gt;: 4 + 2 + 1 + 1 = 8 memory slices and 3 + 2 + 1 + 1 = 7 SM slices. That is four production clients per card with hard boundaries, and the two cards mirror each other as replica zones.&lt;/p&gt;

&lt;p&gt;Step 3: place the shared work. Card 2 carries the embedding pool as seven &lt;code&gt;1g.10gb&lt;/code&gt; instances. Card 3 stays whole as &lt;code&gt;7g.80gb&lt;/code&gt; for the nightly fine-tune, and the dev environment bursts onto spare capacity around it.&lt;/p&gt;

&lt;p&gt;Step 4: compare with the naive layout. Without MIG, giving each of those seven workloads its own guaranteed capacity costs seven cards. With MIG you need four, roughly 43% less hardware for the same tenancy, before you count power, floor space in a UAE data centre and the operational cost of running more nodes. If your pricing is per tenant per month, this is where the margin comes from.&lt;/p&gt;

&lt;p&gt;Step 5: verify. &lt;code&gt;nvidia-smi -L&lt;/code&gt; shows the instances; DCGM gives you per-instance SM and memory utilisation; label the metrics by tenant so you can answer "who caused this" from a Prometheus graph rather than a support ticket.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nvidia-smi -L
&lt;span class="c"&gt;# GPU 0: NVIDIA H100 80GB&lt;/span&gt;
&lt;span class="c"&gt;#   MIG 3g.40gb     GPU ID  0  (UUID: ... )&lt;/span&gt;
&lt;span class="c"&gt;#   MIG 2g.20gb     GPU ID  1&lt;/span&gt;
&lt;span class="c"&gt;#   MIG 1g.10gb     GPU ID  2&lt;/span&gt;
&lt;span class="c"&gt;#   MIG 1g.10gb     GPU ID  3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two adjustments worth making on day one. Reserve the largest profile for the tenant with the biggest KV cache rather than the biggest parameter count, because KV cache is what fills the memory. And keep one &lt;code&gt;1g.10gb&lt;/code&gt; unallocated per node as a canary: deploy a probe pod there on every node upgrade and you catch driver regressions before tenants do.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tenant boundary is not only hardware
&lt;/h2&gt;

&lt;p&gt;Isolation is a contract question as much as a technical one, and in the GCC that contract usually names a data residency commitment.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If your agreement says "dedicated compute", only MIG delivers it below the driver. MPS and time-slicing share one memory heap and one driver surface; the boundary is software. Say so in your own documentation before a client's auditor asks.&lt;/li&gt;
&lt;li&gt;MPS runs one control daemon per node, and the DRA driver runs it for you. Tenants on one node therefore share that daemon. Do not pool mutually untrusting clients in one MPS claim; give each tenant its own claim with its own &lt;code&gt;deviceMemory&lt;/code&gt; ceiling, or move them to MIG.&lt;/li&gt;
&lt;li&gt;Neither MPS nor time-slicing is a VM. Host-side concerns (kernel driver version, DCGM, node SSH, image provenance) are shared by every tenant on the node. If a client needs a VM boundary, use vGPU or pass a MIG instance through to their own VM.&lt;/li&gt;
&lt;li&gt;Record which MIG instance served which client's data. When a regulator in the UAE or Saudi Arabia asks how data is separated, an inventory of instance UUIDs to tenant IDs is a much better answer than a diagram.&lt;/li&gt;
&lt;li&gt;Keep the per-tenant limits in the claim object, not in a wiki, so the limit is enforceable by admission control and auditable in the cluster state.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;p&gt;Work through these in order and you will have a defensible design in a day.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Inventory each workload's memory high-water mark and latency target. Everything else follows from those two numbers.&lt;/li&gt;
&lt;li&gt;Check your hardware against the MIG support list. If the fleet is Ada (L4, L40S), skip to memory-enforced fractioning or MPS and negotiate your SLAs accordingly.&lt;/li&gt;
&lt;li&gt;Choose the isolation row first, then the profile. Write the profile into the tenant's contract so procurement and platform agree.&lt;/li&gt;
&lt;li&gt;Implement it as &lt;code&gt;ResourceClaim&lt;/code&gt; objects per tenant on the NVIDIA DRA driver, so limits live in the cluster and survive an engineer leaving.&lt;/li&gt;
&lt;li&gt;Set up DCGM metrics labelled by tenant before you onboard the first client. Retrofitting attribution is miserable.&lt;/li&gt;
&lt;li&gt;Load test with two tenants deliberately fighting for the GPU, and check that the SLA tenant's p99 does not move. That test is the acceptance criterion.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is the core of a GPU-as-a-service platform: hardware partitioning where money and contracts demand it, sharing where throughput wins, and an explicit answer for every tenant about which one they got. If you are designing that platform, our &lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;AI infrastructure&lt;/a&gt; work covers the GPU and Kubernetes layer end to end, and &lt;a href="https://www.azrty.com/software/kuvryn-ai" rel="noopener noreferrer"&gt;Kuvryn AI&lt;/a&gt; is the productised version of the pattern above: agents, models and GPU capacity for your teams, each in its own space, on your own servers. We are based in Dubai, and our own team does the design, deployment and support.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/mig-vs-mps-vs-time-slicing-how-to-isolate-multiple-tenants-on-one-gpu" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gpuinfrastructure</category>
      <category>kubernetes</category>
      <category>mig</category>
      <category>multitenancy</category>
    </item>
    <item>
      <title>H200 vs H100 for LLM inference: which GPU to buy, and where the B200 fits</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Fri, 13 Nov 2026 05:01:11 +0000</pubDate>
      <link>https://dev.to/azrty/h200-vs-h100-for-llm-inference-which-gpu-to-buy-and-where-the-b200-fits-1jba</link>
      <guid>https://dev.to/azrty/h200-vs-h100-for-llm-inference-which-gpu-to-buy-and-where-the-b200-fits-1jba</guid>
      <description>&lt;p&gt;If you are about to sign a purchase order for GPUs to run LLMs on your own infrastructure, the trap is this: the H100 and H200 have identical compute specs on paper, so vendors will happily ship you whichever is in stock. Inference throughput is decided mainly by memory capacity and bandwidth, not TFLOPs, and that is exactly where the two cards differ. This article maps model size and context length to a specific card, shows the tokens-per-second arithmetic using published benchmarks, and gives you a cost-per-million-tokens calculation you can copy, including where the Blackwell B200 earns its price premium and when renting beats owning.&lt;/p&gt;

&lt;p&gt;Every engineering leader who commits to self-hosted LLM inference eventually sits in the same purchase meeting. The vendor quotes an 8-GPU HGX node, the price difference between H100 and H200 looks like a rounding error next to the total, and the spec sheets are nearly identical. Then six months later the serving stack is GPU-memory-starved at a batch size of 8, and the business case you wrote is off by a factor of two.&lt;/p&gt;

&lt;p&gt;This is a hardware decision guide for that meeting. It pairs with two earlier questions we cover separately: whether to self-host at all (buy versus rent from an API), and which serving engine to run (vLLM versus SGLang versus TensorRT-LLM). This one answers a narrower but expensive question: which silicon, and how many cards.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decision on one page
&lt;/h2&gt;

&lt;p&gt;Three NVIDIA data centre GPUs matter for enterprise LLM inference right now: the H100 SXM (Hopper), the H200 SXM (Hopper with a memory upgrade) and the B200 (Blackwell). The headline specs, from NVIDIA's own pages and the &lt;a href="https://inferencex.semianalysis.com/chips/h200" rel="noopener noreferrer"&gt;SemiAnalysis InferenceX chip database&lt;/a&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;H100 SXM&lt;/th&gt;
&lt;th&gt;H200 SXM&lt;/th&gt;
&lt;th&gt;B200&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Architecture&lt;/td&gt;
&lt;td&gt;Hopper&lt;/td&gt;
&lt;td&gt;Hopper&lt;/td&gt;
&lt;td&gt;Blackwell&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HBM memory&lt;/td&gt;
&lt;td&gt;80 GB HBM3&lt;/td&gt;
&lt;td&gt;141 GB HBM3e&lt;/td&gt;
&lt;td&gt;180 GB HBM3e&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Memory bandwidth&lt;/td&gt;
&lt;td&gt;3.35 TB/s&lt;/td&gt;
&lt;td&gt;4.8 TB/s (1.4x H100)&lt;/td&gt;
&lt;td&gt;8 TB/s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dense FP8 tensor TFLOP/s&lt;/td&gt;
&lt;td&gt;1,979&lt;/td&gt;
&lt;td&gt;1,979 (identical)&lt;/td&gt;
&lt;td&gt;4,500&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dense FP4 tensor TFLOP/s&lt;/td&gt;
&lt;td&gt;not supported&lt;/td&gt;
&lt;td&gt;not supported&lt;/td&gt;
&lt;td&gt;9,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NVLink bandwidth per chip&lt;/td&gt;
&lt;td&gt;450 GB/s each way (900 GB/s total)&lt;/td&gt;
&lt;td&gt;450 GB/s each way&lt;/td&gt;
&lt;td&gt;900 GB/s each way (1.8 TB/s total)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TDP per chip&lt;/td&gt;
&lt;td&gt;up to 700 W&lt;/td&gt;
&lt;td&gt;up to 700 W (configurable)&lt;/td&gt;
&lt;td&gt;1,000 W&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All-in power per chip (with host, NIC, cooling)&lt;/td&gt;
&lt;td&gt;about 1.37 kW&lt;/td&gt;
&lt;td&gt;about 1.37 kW&lt;/td&gt;
&lt;td&gt;about 1.71 kW&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TCO rate, owned at large volume&lt;/td&gt;
&lt;td&gt;$1.17/GPU-hr&lt;/td&gt;
&lt;td&gt;$1.22/GPU-hr&lt;/td&gt;
&lt;td&gt;$1.73/GPU-hr&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TCO rate, retail tier&lt;/td&gt;
&lt;td&gt;$2.00/GPU-hr&lt;/td&gt;
&lt;td&gt;$2.90/GPU-hr&lt;/td&gt;
&lt;td&gt;$3.70/GPU-hr&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sources: &lt;a href="https://www.nvidia.com/en-us/data-center/h200/" rel="noopener noreferrer"&gt;NVIDIA H200 specifications&lt;/a&gt;, &lt;a href="https://inferencex.semianalysis.com/chips/h100" rel="noopener noreferrer"&gt;InferenceX H100&lt;/a&gt;, &lt;a href="https://inferencex.semianalysis.com/chips/h200" rel="noopener noreferrer"&gt;InferenceX H200&lt;/a&gt;, &lt;a href="https://inferencex.semianalysis.com/chips/b200" rel="noopener noreferrer"&gt;InferenceX B200&lt;/a&gt;. The dollar rates come from the SemiAnalysis AI Cloud TCO model: they are amortised cost per chip-hour, not list prices, and are the figures to use when comparing owned capacity with rented capacity.&lt;/p&gt;

&lt;p&gt;The short answer, before the working:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;70B-class models at real concurrency, or any 32k-plus context window: buy H200.&lt;/strong&gt; The 80 GB on an H100 forces either a tiny batch or multi-GPU tensor parallelism for a 70B FP8 model, and both cost you more than the H200 premium saves.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;8B to 14B models, short prompts, tight budget, spare H100 capacity already in the building: H100 is fine.&lt;/strong&gt; On small memory-bound workloads the H200 advantage shrinks to about 13 per cent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Greenfield cluster with a 3-year horizon and a modern serving stack: get a B200 quote alongside the H200 one.&lt;/strong&gt; Per dollar it is the better chip if you can serve FP4, but you pay more per hour and per watt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spiky demand, pilots, or a horizon under a year: rent.&lt;/strong&gt; Public on-demand prices for H200 are currently $3 to $5 per GPU-hour.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why inference throughput is a memory problem
&lt;/h2&gt;

&lt;p&gt;Prefill (processing the prompt) is compute-bound. Decode (generating tokens) is memory-bandwidth-bound: every generated token requires reading the model weights and the KV cache out of HBM. A useful approximation for decode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;output tokens/sec ≈ batch_size × memory_bandwidth / (weight_bytes + batch_size × kv_bytes_per_token)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things follow immediately. First, batch size amortises the weight read, so throughput scales with concurrency until the KV cache dominates. Second, at a fixed batch size, tokens per second track memory bandwidth almost linearly.&lt;/p&gt;

&lt;p&gt;That is why the H100 and H200 behave so differently despite identical FLOPs. Both deliver 1,979 dense FP8 TFLOP/s (&lt;a href="https://www.nvidia.com/en-us/data-center/h200/" rel="noopener noreferrer"&gt;H200 spec table&lt;/a&gt;). But the H200 has 141 GB of HBM3e at 4.8 TB/s against the H100's 80 GB at 3.35 TB/s: 76 per cent more capacity and 43 per cent more bandwidth. For decode, that is the whole story.&lt;/p&gt;

&lt;p&gt;What do measured numbers look like?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;NVIDIA's &lt;a href="https://nvidia.github.io/TensorRT-LLM/blogs/H200launch.html" rel="noopener noreferrer"&gt;TensorRT-LLM H200 launch benchmark&lt;/a&gt; measured 11,819 output tokens/sec per GPU on Llama2-13B (FP8, batch 1,024, 128-token prompts) and reports up to 1.9x H100 throughput on LLM workloads.&lt;/li&gt;
&lt;li&gt;The same table shows Llama2-70B on one H200 at 3,014 tokens/sec (batch 512, 128 in, 128 out) and 341 tokens/sec in a summarisation shape (64 concurrent requests, 2,048-token prompts, 128-token outputs). For Llama2-70B, NVIDIA's footnote notes the H100 ran batch 8 where the H200 ran batch 32. That batch headroom, not raw bandwidth, is why the gap reaches 1.9x.&lt;/li&gt;
&lt;li&gt;An independent &lt;a href="https://vast.ai/article/nvidia-h100-vs-h200-two-hopper-based-heavyweights" rel="noopener noreferrer"&gt;vast.ai comparison&lt;/a&gt; on a small model (DeepSeek R1 Distill Llama 8B, vLLM, 16-token prompts, 128-token outputs) found 13,650 tokens/sec on H100 versus 15,435 on H200: only 13 per cent.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both results are correct. On an 8B model with short prompts, the working set fits comfortably in 80 GB and the workload is not memory-starved, so the extra bandwidth buys little. On a 70B model, or long prompts, the H100 runs out of room for batch and KV cache, and the H200 pulls away. If your vendor quotes the 13 per cent figure to sell you H100s for a 70B deployment, or the 1.9x figure to sell you H200s for a chatbot over an 8B model, they are quoting the wrong benchmark.&lt;/p&gt;

&lt;p&gt;One more honest caveat: those TensorRT-LLM numbers were measured on v0.5.0, and the blog itself notes later releases improved materially. Treat them as conservative.&lt;/p&gt;

&lt;h2&gt;
  
  
  Memory maths: weights, KV cache and a rule of thumb
&lt;/h2&gt;

&lt;p&gt;Before comparing cards, budget the model. Weights are the easy part:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;weights in GB ≈ parameter count in billions × bytes per parameter
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;FP16 or BF16 costs 2 bytes per parameter, FP8 costs 1, INT4 weight-only quantisation costs about 0.5. Add roughly 10 per cent for the engine, activations and fragmentation. That gives a practical minimum card count:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model class&lt;/th&gt;
&lt;th&gt;BF16 weights&lt;/th&gt;
&lt;th&gt;FP8 weights&lt;/th&gt;
&lt;th&gt;INT4 weights&lt;/th&gt;
&lt;th&gt;H100 80 GB&lt;/th&gt;
&lt;th&gt;H200 141 GB&lt;/th&gt;
&lt;th&gt;B200 180 GB&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;8B&lt;/td&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;8 GB&lt;/td&gt;
&lt;td&gt;4 GB&lt;/td&gt;
&lt;td&gt;1 GPU&lt;/td&gt;
&lt;td&gt;1 GPU&lt;/td&gt;
&lt;td&gt;1 GPU&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;14B&lt;/td&gt;
&lt;td&gt;28 GB&lt;/td&gt;
&lt;td&gt;14 GB&lt;/td&gt;
&lt;td&gt;7 GB&lt;/td&gt;
&lt;td&gt;1 GPU&lt;/td&gt;
&lt;td&gt;1 GPU&lt;/td&gt;
&lt;td&gt;1 GPU&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;32B&lt;/td&gt;
&lt;td&gt;64 GB&lt;/td&gt;
&lt;td&gt;32 GB&lt;/td&gt;
&lt;td&gt;16 GB&lt;/td&gt;
&lt;td&gt;1 GPU at FP8 or INT4&lt;/td&gt;
&lt;td&gt;1 GPU&lt;/td&gt;
&lt;td&gt;1 GPU&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;70B&lt;/td&gt;
&lt;td&gt;140 GB&lt;/td&gt;
&lt;td&gt;70 GB&lt;/td&gt;
&lt;td&gt;35 GB&lt;/td&gt;
&lt;td&gt;1 GPU at FP8, tiny batch&lt;/td&gt;
&lt;td&gt;1 GPU at FP8&lt;/td&gt;
&lt;td&gt;1 GPU&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;405B&lt;/td&gt;
&lt;td&gt;810 GB&lt;/td&gt;
&lt;td&gt;405 GB&lt;/td&gt;
&lt;td&gt;203 GB&lt;/td&gt;
&lt;td&gt;8 GPUs (TP8)&lt;/td&gt;
&lt;td&gt;4 GPUs (TP4)&lt;/td&gt;
&lt;td&gt;3 to 4 GPUs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The KV cache is the part people forget. Per token:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kv_bytes_per_token = 2 × num_layers × num_kv_heads × head_dim × bytes_per_element
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a 70B-class model with grouped-query attention (80 layers, 8 KV heads, head dimension 128), that is 163,840 elements per token: 320 KiB at FP16, 160 KiB at FP8 KV cache. Multiply by sequence length and concurrency:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;8k context: about 2.5 GiB per concurrent sequence at FP16 KV, 1.25 GiB at FP8.&lt;/li&gt;
&lt;li&gt;32k context: about 10 GiB per sequence at FP16, 5 GiB at FP8.&lt;/li&gt;
&lt;li&gt;128k context: about 40 GiB per sequence at FP16, 20 GiB at FP8.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So a single H200 serving a 70B FP8 model (70 GB weights, roughly 70 GB left for KV and overhead) handles around 25 concurrent 8k sequences at FP16 KV, but only 2 to 3 at 128k with an FP8 KV cache, and 1 at 128k with FP16 KV. On a single H100 the same 70B model has only a few GB of headroom for KV at all, which is exactly the "batch 8 versus batch 32" effect NVIDIA's footnote describes. If your product promise is 100k-token context on a 70B model with meaningful concurrency, your minimum viable purchase is two H200s, or KV-cache quantisation and paging in the serving engine.&lt;/p&gt;

&lt;p&gt;A quick calculator to reuse when a vendor sends a model card:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;kv_bytes_per_token&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;num_layers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;num_kv_heads&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;head_dim&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bytes_per_element&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""KV cache bytes per generated token (K and V)."""&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;num_layers&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;num_kv_heads&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;head_dim&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;bytes_per_element&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;gpu_budget&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;param_b&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bytes_per_param&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ctx_len&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;concurrency&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;kv_bpt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;weights_gb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;param_b&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;bytes_per_param&lt;/span&gt;
    &lt;span class="n"&gt;kv_gb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;kv_bpt&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;ctx_len&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;concurrency&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1024&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;weights_gb&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;kv_gb&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;weights_gb&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;kv_gb&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;1.1&lt;/span&gt;  &lt;span class="c1"&gt;# 10% runtime overhead&lt;/span&gt;

&lt;span class="c1"&gt;# 70B FP8, 32k context, 16 concurrent sequences, FP8 KV&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;gpu_budget&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;70&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;32768&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;16&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;kv_bytes_per_token&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;128&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# (70, 80.0, 158.0) -&amp;gt; exceeds one H200 (141 GB); at this concurrency you need two&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Worked example: cost per million tokens
&lt;/h2&gt;

&lt;p&gt;Numbers, not vibes. Take a real workload: a 70B instruct model answering questions over internal documents, prompts around 2,048 tokens after retrieval, answers capped at 128 tokens, 64 concurrent requests, FP8 weights on a single H200.&lt;/p&gt;

&lt;p&gt;From the &lt;a href="https://nvidia.github.io/TensorRT-LLM/blogs/H200launch.html" rel="noopener noreferrer"&gt;TensorRT-LLM H200 table&lt;/a&gt;, the closest measured point (ISL 2,048, OSL 128, batch 64) is &lt;strong&gt;341 output tokens/sec per GPU&lt;/strong&gt;. With the SemiAnalysis TCO rates:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;usd_per_million_output_tokens&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;output_tok_s&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;usd_per_gpu_hour&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;gpus&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;tokens_per_hour&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;output_tok_s&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;usd_per_gpu_hour&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;gpus&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;tokens_per_hour&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1_000_000&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;usd_per_million_output_tokens&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;341&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.22&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# $0.99 per million, owned H200&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;usd_per_million_output_tokens&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;341&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;2.90&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# $2.36 per million, retail-tier rental&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;usd_per_million_output_tokens&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;341&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;3.50&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;   &lt;span class="c1"&gt;# $2.85 per million, current market on-demand&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same card, the same model, and the arithmetic for three workload shapes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Workload shape (70B FP8, 1x H200)&lt;/th&gt;
&lt;th&gt;Measured output tok/s&lt;/th&gt;
&lt;th&gt;$/M output tokens at $1.22/hr&lt;/th&gt;
&lt;th&gt;$/M at $2.90/hr&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;RAG summarisation: 2,048 in, 128 out, batch 64&lt;/td&gt;
&lt;td&gt;341&lt;/td&gt;
&lt;td&gt;$0.99&lt;/td&gt;
&lt;td&gt;$2.36&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Long answers: 128 in, 2,048 out, batch 128&lt;/td&gt;
&lt;td&gt;4,750&lt;/td&gt;
&lt;td&gt;$0.07&lt;/td&gt;
&lt;td&gt;$0.17&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Classification: 128 in, 128 out, batch 512&lt;/td&gt;
&lt;td&gt;3,014&lt;/td&gt;
&lt;td&gt;$0.11&lt;/td&gt;
&lt;td&gt;$0.27&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That 14x spread on one piece of hardware is the single most useful takeaway here. Your prompt shape moves cost per token far more than the choice between H100 and H200 does, so measure your own traffic mix before you model anything.&lt;/p&gt;

&lt;p&gt;For the H100 comparison, use NVIDIA's measured 1.9x claim for memory-bound 70B decode: 341 tokens/sec on H200 implies roughly 180 tokens/sec on an H100 at the same shape (an estimate derived from NVIDIA's ratio, not a measurement of your workload). At the $1.17/hr owned rate that is about $1.81 per million output tokens: the H200 delivers roughly 1.8x better cost per token at almost the same hourly rate. On the short-prompt 8B benchmark where the gap is 13 per cent, the same calculation says the H100 is the better buy. Again: match the benchmark to your model.&lt;/p&gt;

&lt;p&gt;Energy follows the same logic. An H200 draws about 1.37 kW all-in per chip, so 341 tokens/sec works out at about 1.1 Wh per thousand output tokens, while the long-answer shape (4,750 tokens/sec) is about 0.08 Wh per thousand. In a region where data centre power and cooling are a real line item, tokens per joule and tokens per square metre of rack belong in the business case.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the B200 fits
&lt;/h2&gt;

&lt;p&gt;The Blackwell B200 is a different proposition, not a faster H200. Per &lt;a href="https://inferencex.semianalysis.com/chips/b200" rel="noopener noreferrer"&gt;InferenceX's B200 entry&lt;/a&gt;: 180 GB of HBM3e at 8 TB/s, 4,500 dense FP8 TFLOP/s (2.3x the Hopper parts), 9,000 dense FP4 TFLOP/s, NVLink 5.0 at 900 GB/s each way, 1,000 W TDP and about 1.71 kW all-in per chip. The TCO model rates it at $1.73/GPU-hr owned and $3.70/GPU-hr retail: roughly 1.4x the H200's hourly cost for more than double the compute and 1.67x the memory bandwidth.&lt;/p&gt;

&lt;p&gt;Three things decide whether that premium pays:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;FP4 readiness.&lt;/strong&gt; The B200's headline advantage is NVFP4 serving. Open-weight models increasingly ship FP4 checkpoints with accuracy within noise of FP8, and vLLM, SGLang and TensorRT-LLM all support Blackwell FP4 paths. If your engine stack is pinned to a version that predates that support, you are buying FLOPs you cannot use.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Workload shape.&lt;/strong&gt; Decode-heavy serving with long contexts benefits from 8 TB/s and 180 GB. Compute-heavy prefill and training benefit from the doubled tensor throughput. Batch-classification workloads that already saturate Hopper need neither.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scale.&lt;/strong&gt; Above eight GPUs, Blackwell's interconnect story matters: NVLink 5.0 doubles per-chip bandwidth, and rack-scale systems such as &lt;a href="https://www.nvidia.com/en-us/data-center/dgx-gb200/" rel="noopener noreferrer"&gt;DGX GB200&lt;/a&gt; wire 72 Blackwell GPUs and 36 Grace CPUs into one NVLink domain with up to 13.4 TB of HBM3e and 576 TB/s aggregate bandwidth. For a 405B-class model with high concurrency that is a genuine architectural step, not a refresh.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A practical rule: if your workload fits comfortably in 141 GB and runs well on H200 at today's rates, the B200 will improve your cost per token mainly where FP4 applies. If you are sizing a new platform for the model sizes you will serve in two to three years, price Blackwell now, because the facility requirements (about 1.7 kW per chip all-in, liquid cooling in the rack-scale SKUs) are not something you retrofit cheaply.&lt;/p&gt;

&lt;h2&gt;
  
  
  Buy, rent or reserve: the market today
&lt;/h2&gt;

&lt;p&gt;Public on-demand prices, per GPU-hour, from live price aggregators: H100 SXM around $2.00 to $3.50 median across providers, cheapest listings near $1.33 to $1.99; H200 SXM around $3.00 to $5.34 median, cheapest near $2.63 to $2.99; B200 median about $8.50 with spot offers near $4.66 (&lt;a href="https://gpuperhour.com/" rel="noopener noreferrer"&gt;GPUPerHour&lt;/a&gt;, &lt;a href="https://siliconliquid.com/prices" rel="noopener noreferrer"&gt;Silicon Liquid&lt;/a&gt;, &lt;a href="https://www.kovaragrid.com/market" rel="noopener noreferrer"&gt;Kovara market&lt;/a&gt;). Spot and preemptible capacity runs 30 to 37 per cent below on-demand on H100 and H200.&lt;/p&gt;

&lt;p&gt;The ownership decision is then arithmetic. At the SemiAnalysis owned rate of $1.22/GPU-hr for H200 versus $3.50/GPU-hr to rent, at a 60 per cent duty cycle (432 hours a month), renting costs about $1,512 per GPU-month and the owned equivalent is about $527: a gap near $985 per GPU per month. Two corrections, both in the same direction. The owned rate assumes hyperscaler-scale procurement, so your real rate is higher; and owning carries capex, colocation, spares and an operations team, which the rental price includes. Use the gap as a lower bound on what ownership can save, and run it over the period you will actually operate the hardware, typically three to five years.&lt;/p&gt;

&lt;p&gt;Rules of thumb we use with clients:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Rent&lt;/strong&gt; when duty cycle is below about 40 to 50 per cent, the horizon is under 12 months, the model or quantisation strategy is still moving, or you need capacity this quarter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Own&lt;/strong&gt; when load is steady and predictable, the data must remain in a specific jurisdiction, the same platform will serve several teams, or you are paying a premium for burst capacity you could hold yourself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reserve or commit&lt;/strong&gt; for the middle case: monthly reserved instances typically discount against on-demand without capex.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For GCC organisations the data residency point is often decisive. Regulated data, government workloads and much enterprise policy in the UAE and Saudi Arabia keep inference inside national borders, and once the cluster runs in a local colocation facility or your own data centre, that question simply disappears. The trade is operational: you now own the platform. That is precisely the layer we design, build and run for clients from our team in the UAE, from GPU servers and Kubernetes up to a single gateway for every model, and it is what products like our FastLLM Proxy are for: routing, budgets and access control across both your own LLM servers and hosted providers in one place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Buying checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fix the workload first.&lt;/strong&gt; Model, precision, prompt length distribution, output length distribution, concurrency, and time-to-first-token SLA. Without these, every GPU comparison is marketing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do the memory budget&lt;/strong&gt; (weights plus KV plus 10 per cent) using the calculator above. If it lands within 20 per cent of a card boundary, buy the larger card: KV cache and batch headroom are what fail in production, not weights.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Model cost per million output tokens&lt;/strong&gt; for each candidate card using your own prompt mix and the snippet in the worked example, at both the owned and the rental rate. Compare against each other, not against peak TFLOPs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decide ownership with the duty cycle.&lt;/strong&gt; Below roughly half utilisation, rent; above it and past a year, buy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Size the facility, not just the server.&lt;/strong&gt; Hopper draws about 1.37 kW per chip all-in, so an 8-GPU HGX node is around 11 kW before top-of-rack switching. Blackwell is about 1.7 kW per chip and the rack-scale systems are liquid-cooled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose the form factor deliberately.&lt;/strong&gt; HGX SXM gives full NVLink domains of 8 GPUs and the best multi-GPU inference. The H200 NVL (PCIe, air-cooled, up to 600 W, 141 GB at 4.8 TB/s, NVIDIA AI Enterprise included) fits standard enterprise racks and up to four GPUs on an NVLink bridge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pin the serving stack.&lt;/strong&gt; Benchmark vLLM, SGLang or TensorRT-LLM at your exact model, precision and sequence lengths before purchase. The same hardware moved 341 to 4,750 tokens/sec across workload shapes in NVIDIA's own table; engine version and configuration matter as much.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plan operations from day one.&lt;/strong&gt; Spares and RMA paths in your region, cluster monitoring, an inference gateway with per-team budgets, and a quantisation policy (FP8 weights, FP8 or paged KV) documented in the runbook.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;p&gt;If you remember one line: &lt;strong&gt;H100 versus H200 is a memory decision, and for 70B-class models with long context the answer is H200; the B200 wins on cost per token when your stack can serve FP4.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Do this in order: measure your real prompt and output length distribution for two weeks; run the memory budget for your largest intended model at your intended context window; price that configuration in tokens per second and dollars per million tokens at both owned and rented rates; then write the purchase order against the number, not against the TFLOPs.&lt;/p&gt;

&lt;p&gt;If you want a second opinion on the sizing, the facility plan or the total cost model, our team in the UAE does this work for a living: we design, build and run the GPU and model platform on your own infrastructure under &lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;AI infrastructure&lt;/a&gt;, and our &lt;a href="https://www.azrty.com/software/fastllm-proxy" rel="noopener noreferrer"&gt;FastLLM Proxy&lt;/a&gt; gives you one OpenAI-compatible gateway with routing and budgets across your own servers and hosted providers while you decide how much to own.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/h200-vs-h100-for-llm-inference-which-gpu-to-buy-and-where-the-b200-fits" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gpuselection</category>
      <category>h200</category>
      <category>h100</category>
      <category>llminference</category>
    </item>
    <item>
      <title>Why Gulf AI projects overrun their budgets: six hidden costs your spreadsheet misses</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Fri, 13 Nov 2026 05:01:10 +0000</pubDate>
      <link>https://dev.to/azrty/why-gulf-ai-projects-overrun-their-budgets-six-hidden-costs-your-spreadsheet-misses-4jcb</link>
      <guid>https://dev.to/azrty/why-gulf-ai-projects-overrun-their-budgets-six-hidden-costs-your-spreadsheet-misses-4jcb</guid>
      <description>&lt;p&gt;Roland Berger's April 2025 analysis of Middle East AI projects found costs that frequently exceed initial projections by 500–1,000%, with more than half of AI initiatives in the region terminated because of budget overruns. This is not a pricing article. It is a diagnostic of why your estimate is wrong before anyone writes a line of code. Six cost categories specific to the Gulf are almost never in the spreadsheet: Arabic NLP compute overhead, data fragmentation remediation, vendor switching costs, the expat talent premium, data sovereignty compliance, and the gap between global delivery benchmarks and local integration reality. Here is what each one costs, how to size it, and how to rebuild the budget line so your finance director and your CTO are looking at the same number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the spreadsheet is already wrong
&lt;/h2&gt;

&lt;p&gt;The pattern is consistent. A vendor or an internal team produces a budget for an AI project, the board approves it, and within two quarters the number has moved so far that the project is either re-scoped into something unrecognisable or quietly cancelled. &lt;a href="https://www.rolandberger.com/en/Insights/Publications/Measuring-the-cost-of-AI-projects-in-the-Middle-East-A-comprehensive-analysis.html" rel="noopener noreferrer"&gt;Roland Berger's analysis of AI project costs in the Middle East&lt;/a&gt;, published in April 2025, puts figures to it: costs frequently exceed initial projections by 500–1,000%, more than half of AI initiatives in the region are terminated because of budget overruns, and fewer than 15% of organisations properly identify, quantify and measure the costs, risks and value of their AI projects.&lt;/p&gt;

&lt;p&gt;The money is not the constraint. The Middle East AI market is projected to reach USD 320 billion by 2030. Cost discipline is.&lt;/p&gt;

&lt;p&gt;Estimates fail for a structural reason. A typical spreadsheet covers the visible components Roland Berger lists: data acquisition and management, model development, application build and integration, and ongoing operational spend such as licences and inference. Those are real costs, and they are roughly the costs a global SaaS vendor prices for, which is why every competing bid includes them. The costs that sink projects in the Gulf sit underneath them.&lt;/p&gt;

&lt;p&gt;Regional survey data shows the same gap from a different angle. The &lt;a href="https://www.thenationalnews.com/future/technology/2025/02/26/middle-east-ai/" rel="noopener noreferrer"&gt;Deloitte and Mohamed bin Zayed University of Artificial Intelligence study of 155 companies across Saudi Arabia, the UAE and Qatar&lt;/a&gt; found that 26% of firms cite managing risks as a top barrier to adoption, that more than 80% feel pressured to adopt AI, and that almost half say they lack the talent and technology capabilities to scale it. A budget overrun is the most visible form of that risk. When the estimate is wrong, governance, ROI and vendor choice are wrong with it.&lt;/p&gt;

&lt;p&gt;The six categories below are the ones we see missing when clients in the UAE and the wider GCC ask us to review an AI business case. Each one can be sized, and each belongs in the budget as its own line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hidden cost 1: Arabic NLP compute overhead
&lt;/h2&gt;

&lt;p&gt;Roland Berger flags implementation complexity first: organisations deploying Arabic natural language processing "often encounter substantially higher computational requirements due to dialectical variations and linguistic complexities", and real-time analysis needs more compute than projected.&lt;/p&gt;

&lt;p&gt;The mechanism is straightforward. Most frontier models were trained predominantly on Western datasets and tokenised for English. Arabic text produces more tokens per unit of meaning on common tokenisers, and a workspace assistant that must handle Emirati, Egyptian, Levantine and Gulf dialect input in one conversation cannot rely on a single register. Dialect variation also multiplies evaluation work: every prompt change needs re-testing across dialects, not once.&lt;/p&gt;

&lt;p&gt;The sizing rule we apply is simple. Budget Arabic-first inference at 2–3 times the token volume of an equivalent English-only workload, then add retry overhead on top. Here is the arithmetic in code, using a bilingual workspace assistant as the example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Bilingual workspace assistant: monthly inference budget (USD)&lt;/span&gt;
&lt;span class="n"&gt;seats&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sessions_per_seat&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tokens_per_session&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12_000&lt;/span&gt;
&lt;span class="n"&gt;price_per_million&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;8.00&lt;/span&gt;          &lt;span class="c1"&gt;# blended input/output price&lt;/span&gt;
&lt;span class="n"&gt;retry_overhead&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.08&lt;/span&gt;             &lt;span class="c1"&gt;# 5-10% of calls retry at least once&lt;/span&gt;
&lt;span class="n"&gt;arabic_share&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dialect_multiplier&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;2.5&lt;/span&gt;

&lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;seats&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;sessions_per_seat&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;tokens_per_session&lt;/span&gt;
&lt;span class="n"&gt;english&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;arabic_share&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;arabic&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;arabic_share&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;dialect_multiplier&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monthly&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"English-only estimate"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"With Arabic dialect load"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;english&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;arabic&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;usd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;monthly&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;retry_overhead&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mf"&gt;1e6&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;price_per_million&lt;/span&gt;
    &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{label}: USD {usd:,.0f}/month, USD {usd * 12:,.0f}/year"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;English-only estimate: USD 2,074/month, USD 24,883/year
With Arabic dialect load: USD 3,940/month, USD 47,278/year
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is a 90% increase on the single line most people think of as fixed, before a single word of dialect evaluation is scheduled. If your budget shows one inference figure and most of your users are Arabic-speaking, that figure is fiction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hidden cost 2: Data fragmentation remediation
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.everpuredata.com/resources/type-a/enterprise-ai-readiness-middle-east-bridging-infrastructure-gap.html" rel="noopener noreferrer"&gt;MIT Sloan Management Review Middle East and Pure Storage readiness study&lt;/a&gt; (July 2025) gives the number that belongs on every board slide: only 33% of organisations report having more than 30% of their data accessible for AI use. Integration complexity (67%) and outdated infrastructure (56%) are the most commonly cited obstacles to scaling AI.&lt;/p&gt;

&lt;p&gt;Translate that into project work. If your customer records live in a 12-year-old core banking or ERP system, your contracts sit in shared drives with no owner, and half your scanned documents are Arabic PDFs with no machine-readable text, then "data preparation" is not a two-week task at the start of the project. It is months of de-duplication, lineage mapping, ownership negotiation across departments, OCR and annotation, plus the governance to keep it clean afterwards. Roland Berger makes the same point: preprocessing and standardisation requirements "frequently exceed the initial resource allocations".&lt;/p&gt;

&lt;p&gt;Planning guidance: where the readiness survey says a third of data is accessible, assume remediation work proportional to the gap, and give it its own budget line and its own owner. Never let it hide inside "discovery". A useful sanity check: if your estimate does not name the systems of record, the document formats and the person who owns each data domain, the data line is a guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hidden cost 3: Vendor lock-in and the switching bill
&lt;/h2&gt;

&lt;p&gt;Roland Berger's hidden cost list includes vendor dependency: organisations reliant on specific AI vendors "encounter substantial costs when trying to switch to alternative solutions", and these are "frequently underestimated during initial project planning".&lt;/p&gt;

&lt;p&gt;This bites harder in the Gulf than elsewhere. Vendor selection is often driven by the least risky option and by speed to a pilot, and by the time the model is embedded, three things have happened: your prompts are tuned to one provider's behaviour, your evaluation suite encodes that provider's failure modes, and your data sits in a region or a format another provider cannot take without re-architecture. When the provider later changes pricing, drops a model version, or cannot satisfy a data residency requirement, the switching cost arrives as an unbudgeted emergency.&lt;/p&gt;

&lt;p&gt;The fix is architectural, and cheap relative to the risk: put an OpenAI-compatible gateway in front of every provider so routing, budgets and access control live in one place, and keep prompts, evaluations and embeddings in infrastructure you control. A gateway policy can be as small as this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Illustrative gateway policy: one interface, providers swappable
&lt;/span&gt;&lt;span class="na"&gt;providers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;base_url:&lt;/span&gt; &lt;span class="s2"&gt;"https://llm.internal.example/v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;model:&lt;/span&gt; &lt;span class="s2"&gt;"self-hosted-32b"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="na"&gt;fallback&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s"&gt;base_url:&lt;/span&gt; &lt;span class="s2"&gt;"https://provider-b.example/v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;   &lt;span class="s"&gt;model:&lt;/span&gt; &lt;span class="s2"&gt;"hosted-small"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="na"&gt;routing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;strategy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;cheapest-first&lt;/span&gt;
  &lt;span class="na"&gt;budgets&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;workspace-assistant&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;monthly_usd&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4000&lt;/span&gt;
      &lt;span class="na"&gt;on_exceed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;degrade-to-cheap&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Budget for the switch from day one. A realistic one-off line for re-embedding a corpus, rewriting prompts and re-running evaluations against a new provider is three to six weeks of engineering time. Note that &lt;a href="https://thread-transfer.com/blog/2025-03-11-hidden-llm-costs/" rel="noopener noreferrer"&gt;Thread Transfer's LLM cost breakdown&lt;/a&gt; puts the crossover point where custom routing infrastructure pays for itself at roughly USD 100,000 per month of API spend; below that, a lightweight gateway is still worth it for the switching option alone. Our own &lt;a href="https://www.azrty.com/software/fastllm-proxy" rel="noopener noreferrer"&gt;FastLLM Proxy&lt;/a&gt; is an OpenAI-compatible gateway in front of your own LLM servers and 80 hosted providers, with routing, budgets and access control in one place, which is exactly this abstraction.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hidden cost 4: The expat talent premium
&lt;/h2&gt;

&lt;p&gt;Financial management is a major factor in executive dissatisfaction with AI projects in the region, second only to insufficient access to qualified personnel. Roland Berger's human capital finding is blunt: organisations in the UAE predominantly rely on expatriate talent, "resulting in elevated compensation requirements and associated onboarding expenditure".&lt;/p&gt;

&lt;p&gt;The Deloitte and MBZUAI study puts numbers on the demand side: more than 80% of regional organisations feel pressured to adopt AI, yet almost half say they lack the talent and technology capabilities to scale successfully. On the supply side, Thread Transfer's model for LLM operations puts running a production AI system at 0.5–2 fully loaded engineers, and prices a fully loaded engineer at USD 150,000 per year, or USD 75,000–300,000 annually for that function alone.&lt;/p&gt;

&lt;p&gt;Three costs hide inside that range. First, the salary premium and the relocation, visa and housing packages attached to it. Second, onboarding: a senior hire needs three months before they understand your data estate, which delays everything else. Third, retention and upskilling, which Roland Berger lists separately because training programmes "frequently require expansion beyond the initial projections". A project that budgets 0.5 FTE of AI engineering and runs at 1.5 FTE has created a recurring six-figure dirham gap that no amount of inference optimisation will close.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hidden cost 5: Data sovereignty and compliance overhead
&lt;/h2&gt;

&lt;p&gt;UAE compliance is not a one-off legal review at the end of the project. &lt;a href="https://www.uaelegislation.gov.ae/en/legislations/1972/download" rel="noopener noreferrer"&gt;Federal Decree-Law No. 45 of 2021 concerning the Protection of Personal Data&lt;/a&gt; (in force since 2 January 2022) creates standing operational obligations that cost money every quarter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A record of processing activities, covering categories of data, authorised persons, processing times and cross-border movements, which must be produced to the UAE Data Office on request (Article 7).&lt;/li&gt;
&lt;li&gt;A Data Protection Officer where processing uses new technologies at high risk, involves systematic profiling, or handles large volumes of sensitive personal data (Article 10).&lt;/li&gt;
&lt;li&gt;A data protection impact assessment before processing with modern technologies that pose a high risk to privacy, including systematic automated evaluation of individuals (Article 21).&lt;/li&gt;
&lt;li&gt;Breach notification to the Data Office and to affected data subjects (Article 9).&lt;/li&gt;
&lt;li&gt;Cross-border transfer conditions under Articles 22 and 23, which is precisely the review that turns "we will use the global API" into a project task.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Note also the carve-outs in Article 2: personal health data and personal banking and credit data have their own legislation, and free zones with their own data protection regimes sit outside the decree. If your AI touches those domains, the compliance perimeter is wider than the PDPL, and so is the budget.&lt;/p&gt;

&lt;p&gt;The regional pattern confirms the cost. Deloitte found that 53% of surveyed organisations use outside vendors to audit and test their AI tools, and misuse of customer data is among the top concerns cited. Budget a first-year compliance programme (DPO, records, impact assessment, transfer review, breach runbook, external audit) as its own line, plus an annual run rate. The finding that 26% of firms cite managing risks as a barrier is not about fear. It is about the cost of doing this properly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hidden cost 6: Global benchmark timelines vs local integration reality
&lt;/h2&gt;

&lt;p&gt;Global vendors quote delivery timelines from their standard implementation playbooks. Roland Berger's fourth recommendation is to take into account "extended implementation timelines compared to global benchmarks", and the readiness survey explains why: 67% cite integration complexity and 56% outdated infrastructure as obstacles, and only 46% of regional organisations have moved beyond pilots into broader implementation.&lt;/p&gt;

&lt;p&gt;The damage from timeline slip is not the calendar. It is burn rate. Every extra month keeps the data engineers, the ML engineers, the security reviewer and the project manager on the payroll while nothing ships. A four-month pilot that becomes seven months does not cost 75% more. It costs the full team burn for those three months, on top of everything else, with no revenue or saving attached.&lt;/p&gt;

&lt;p&gt;Budget for integration explicitly: name each legacy system, the interface it exposes, the owner who must approve access, and a realistic months figure per system. If the plan assumes a greenfield integration because the vendor's reference architecture says so, that assumption is worth zero in a Gulf enterprise running decade-old core systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: a bilingual workspace assistant for a Dubai venture studio
&lt;/h2&gt;

&lt;p&gt;Consider a realistic scenario, not a client case. A Dubai-based venture studio is building an AI-powered startup workspace: a bilingual assistant over 40,000 internal documents, 500 seats, Arabic and English, retrieval-augmented, hosted in part on cloud infrastructure. The team wants the board to approve a first-year budget. Here is how the evaluation runs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: the visible budget.&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line item&lt;/th&gt;
&lt;th&gt;Year 1 (AED)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Discovery and data preparation&lt;/td&gt;
&lt;td&gt;150,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Application build and integration&lt;/td&gt;
&lt;td&gt;450,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inference (English-only sizing)&lt;/td&gt;
&lt;td&gt;91,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud and tooling&lt;/td&gt;
&lt;td&gt;120,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Contingency at 10%&lt;/td&gt;
&lt;td&gt;81,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total visible&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;892,000&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Step 2: apply the six hidden categories.&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hidden cost&lt;/th&gt;
&lt;th&gt;What it actually is here&lt;/th&gt;
&lt;th&gt;Year 1 (AED)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Arabic compute overhead&lt;/td&gt;
&lt;td&gt;Inference rises from AED 91k to about AED 174k (the code above), plus dialect evaluation rounds&lt;/td&gt;
&lt;td&gt;128,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data remediation&lt;/td&gt;
&lt;td&gt;40,000 documents across six systems, roughly a third accessible, Arabic scanned PDFs needing OCR and ownership mapping&lt;/td&gt;
&lt;td&gt;210,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vendor switching&lt;/td&gt;
&lt;td&gt;Security review forces a move to a UAE-hosted endpoint: re-embedding, prompt and evaluation rework, three weeks&lt;/td&gt;
&lt;td&gt;95,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Talent premium&lt;/td&gt;
&lt;td&gt;Budget assumed 0.5 FTE of AI engineering (AED 275k); production needs 1.5 FTE at about AED 550k fully loaded each, a gap of&lt;/td&gt;
&lt;td&gt;550,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compliance (PDPL)&lt;/td&gt;
&lt;td&gt;Fractional DPO, processing records, impact assessment, cross-border transfer review, breach runbook, external audit&lt;/td&gt;
&lt;td&gt;165,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Timeline slip&lt;/td&gt;
&lt;td&gt;Plan said four months to pilot; integration reality says seven, so three extra months of team burn at about AED 140k per month&lt;/td&gt;
&lt;td&gt;420,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total hidden&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,568,000&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Step 3: the verdict.&lt;/strong&gt; Realistic year-one cost is about AED 2.46 million against an AED 892,000 spreadsheet: roughly 2.8 times the original number. For a task-specific project like this one, that is a normal outcome. Roland Berger's 500–1,000% band applies to transformative strategic initiatives that hit the full spectrum of hidden costs at once. This workspace is worth funding, but only as a stage-gated range of AED 2.2–2.7 million, with the Arabic inference sizing, the data remediation scope and the compliance programme approved as separate lines before build starts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: choose the estimating method.&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Estimating approach&lt;/th&gt;
&lt;th&gt;What goes into the number&lt;/th&gt;
&lt;th&gt;Typical miss&lt;/th&gt;
&lt;th&gt;Use it when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Vendor quote only&lt;/td&gt;
&lt;td&gt;Visible costs&lt;/td&gt;
&lt;td&gt;2–4 times on regional projects&lt;/td&gt;
&lt;td&gt;Never for board approval&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;TCO multiplier on API spend (mature teams add 20–30%)&lt;/td&gt;
&lt;td&gt;API plus platform overhead&lt;/td&gt;
&lt;td&gt;Misses language, data, compliance and talent&lt;/td&gt;
&lt;td&gt;Small, English-first pilots&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stage-gated regional TCO&lt;/td&gt;
&lt;td&gt;All six categories, expressed as ranges with review gates&lt;/td&gt;
&lt;td&gt;None, if reviewed monthly&lt;/td&gt;
&lt;td&gt;Any project seeking approval&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;p&gt;If you are building the AI budget line for the next financial year, do these five things before the next steering committee:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Split the budget into visible and hidden lines.&lt;/strong&gt; If a cost category from this article is missing from the spreadsheet, it has not disappeared. It is simply unmanaged.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Size inference for the language your users speak.&lt;/strong&gt; Run the token arithmetic on real session data, with the dialect multiplier and retry overhead included.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commission the data readiness check first.&lt;/strong&gt; Know what share of your data is genuinely AI-accessible, which systems of record are involved, and who owns each domain. The 33% figure from the regional survey is an average, not a floor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put switching costs in the plan.&lt;/strong&gt; Price the one-off cost of moving providers, and buy the abstraction (a gateway, portable prompts, owned evaluations) while it is still cheap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Approve ranges with stage gates, not point estimates.&lt;/strong&gt; Present AED 2.2–2.7 million with gates, not AED 892,000 with confidence. Roland Berger's finding that fewer than 15% of organisations quantify costs properly is an advantage available to anyone willing to do the arithmetic.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;At Azrty we do this work from Dubai: the readiness assessment, the cost model and the architecture that keeps switching costs low. If you want a second pair of eyes on an AI business case before it goes to your board, our &lt;a href="https://www.azrty.com/services/ai-strategy" rel="noopener noreferrer"&gt;AI strategy and readiness&lt;/a&gt; engagement is the right place to start. The projects that survive are not the ones with the best models. They are the ones whose budgets told the truth on day one.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/why-gulf-ai-projects-overrun-their-budgets-six-hidden-costs-your-spreadsheet-mis" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aibudget</category>
      <category>uae</category>
      <category>aistrategy</category>
      <category>costmanagement</category>
    </item>
    <item>
      <title>How to host an LLM privately in a UAE data center</title>
      <dc:creator>Azrty</dc:creator>
      <pubDate>Thu, 05 Nov 2026 05:07:02 +0000</pubDate>
      <link>https://dev.to/azrty/how-to-host-an-llm-privately-in-a-uae-data-center-1f18</link>
      <guid>https://dev.to/azrty/how-to-host-an-llm-privately-in-a-uae-data-center-1f18</guid>
      <description>&lt;p&gt;"Keep it in the UAE" is easy to say and hard to build. Here is how to host an LLM privately in a UAE data center, layer by layer: the GPU options, the sizing arithmetic, the config files and a control-to-component mapping against the PDPL.&lt;/p&gt;

&lt;p&gt;Hosting an LLM privately in a UAE data center means the GPUs, the model server and the gateway all run inside the country, so prompts and responses never leave it. Concretely: in-country GPU capacity or your own rack, Kubernetes with hardware-level isolation between tenants, vLLM serving open-weight models, and one OpenAI-compatible gateway that routes by data class and denies egress to global APIs by default.&lt;/p&gt;

&lt;p&gt;"Keep it in the UAE" is the sentence every CTO here has heard in a board meeting, usually followed by no detail at all. Do the GPUs have to sit in Dubai? Must the prompts never leave the country? Can a vendor's support engineer abroad see your data? Almost nobody publishes the full answer, so platform teams assemble one piecemeal: a GPU order here, an API contract there, and a compliance spreadsheet that says "local" and means nothing.&lt;/p&gt;

&lt;p&gt;This article is the blueprint we use with clients. It covers an in-country GPU cluster on Kubernetes, an OpenAI-compatible gateway in front of both your own models and hosted in-region ones, hardware-level tenant isolation, and a control-to-component mapping against the PDPL. By the end you should be able to hand a diagram, a sizing calculation and a compliance table to your team and start building. Azrty is a UAE company based in Dubai, and our own team does this design, deployment and support work locally, which is why the regional detail below comes from primary sources rather than brochure copy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does hosting an LLM privately in a UAE data center mean in law?
&lt;/h2&gt;

&lt;p&gt;Start with the law, because it is narrower and more sensible than most people assume. The &lt;a href="https://www.uaelegislation.gov.ae/en/legislations/1972/download" rel="noopener noreferrer"&gt;PDPL&lt;/a&gt;, Federal Decree-Law No. 45 of 2021, applies to the processing of personal data by controllers and processors established in the UAE, and to anyone processing the personal data of people in the UAE. It does not apply to government entities, to data governed by separate sector rules such as health and banking, or to firms in the financial free zones, because DIFC and ADGM each have their own data protection regimes.&lt;/p&gt;

&lt;p&gt;Two points matter for architecture:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The PDPL does not ban the cloud, and it does not ban non-UAE AI providers.&lt;/strong&gt; Articles 22 and 23 allow transfers to jurisdictions with an adequate level of protection, or under contractual safeguards, consent or the other conditions listed there. Calling a model API hosted outside the country is lawful if you meet one of those routes and record it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What the PDPL demands is deliberate, documented control.&lt;/strong&gt; Article 7 puts the duty on the controller: technical and organisational measures appropriate to the risk, a record of processing activities that includes cross-border movement, and processors chosen with sufficient guarantees. Article 8 puts the same discipline on the processor: process only on documented instructions, erase data when the processing period ends, keep your own records, and demonstrate compliance when asked.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So the engineering goal is not "nothing leaves the country". It is: classification drives routing, routing is enforced by the platform, and every crossing of a border is a decision someone signed off and the system logged. That reframing turns the design from a fortress into a gateway with policy, which is cheaper and, in practice, more compliant, because people route around fortresses.&lt;/p&gt;

&lt;h2&gt;
  
  
  The reference architecture in one picture
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        ┌────────────────────────────────────────────────────┐
        │      Applications, agents, chat UI, CI pipelines    │
        └──────────────────────────┬─────────────────────────┘
                                   │  OpenAI-compatible API
                                   ▼
        ┌────────────────────────────────────────────────────┐
        │      Gateway (FastLLM Proxy or LiteLLM Proxy)      │
        │  virtual keys, per-key and per-provider budgets,   │
        │  routing by data class, full request logs          │
        └──────────┬───────────────────────────┬─────────────┘
     PII-class traffic        non-sensitive or burst traffic
                   ▼                           ▼
   ┌──────────────────────────────┐   ┌──────────────────────────────┐
   │  Your GPU nodes (UAE rack or │   │  In-region hosted inference  │
   │  in-country GPU-as-a-Service)│   │  (UAE region endpoint)       │
   │  Kubernetes, NVIDIA MIG      │   │  capped by provider budget   │
   │  vLLM pod per model          │   └──────────────────────────────┘
   └──────────────────────────────┘
        Egress to global APIs: default denied, opt-in per team
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four layers, each with one decision to make: hardware and jurisdiction, cluster and tenant isolation, model serving, and the gateway. The rest of this article walks through them with specific products, configuration and numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Layer 1: GPUs in a UAE rack, rented or owned
&lt;/h2&gt;

&lt;p&gt;In-country capacity is no longer the blocker it was two years ago. Sovereign cloud providers such as G42's Core42 sell GPU capacity by the hour inside UAE data centres, and colocation operators such as Khazna provide the floor space and power if you would rather own the metal. That is what makes this blueprint timely: you can buy jurisdiction without buying a building.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;What it means&lt;/th&gt;
&lt;th&gt;When to choose it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;In-country GPU-as-a-Service&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Dedicated GPU instances in a UAE data centre, billed by the hour&lt;/td&gt;
&lt;td&gt;Most organisations. You get jurisdiction with no capex, and you still run your own Kubernetes, models and gateway on top&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Own rack in a UAE colo&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;You buy HGX-class servers and colocate them&lt;/td&gt;
&lt;td&gt;Regulated entities with hardware-custody requirements, or sustained training workloads that keep the GPUs busy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The misconception to kill in your next architecture review: on-premises is not a requirement of the PDPL. A GPU instance in a UAE data centre keeps every byte inside the country and satisfies residency demands from boards and sector regulators. Owning the metal is a choice, not an obligation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Layer 2: Kubernetes, and where should the tenant boundary actually live?
&lt;/h2&gt;

&lt;p&gt;Run the platform on Kubernetes with the &lt;a href="https://developer.nvidia.com/blog/improving-gpu-utilization-in-kubernetes" rel="noopener noreferrer"&gt;NVIDIA GPU Operator and device plugin&lt;/a&gt;. The decision that matters for hardware-level tenant isolation is which GPU sharing mechanism you allow per node pool:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mechanism&lt;/th&gt;
&lt;th&gt;Partitioning&lt;/th&gt;
&lt;th&gt;Isolation&lt;/th&gt;
&lt;th&gt;Verdict for this architecture&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;MIG&lt;/strong&gt; (Ampere and later: A100, H100)&lt;/td&gt;
&lt;td&gt;Physical, up to 7 GPU instances per card&lt;/td&gt;
&lt;td&gt;Memory, bandwidth, fault and QoS isolation between instances&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Use it for multi-team serving.&lt;/strong&gt; One MIG instance per team's vLLM pod means one team cannot OOM, starve or crash another&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Time-slicing&lt;/strong&gt; (&lt;code&gt;sharing.timeSlicing&lt;/code&gt; in the device plugin)&lt;/td&gt;
&lt;td&gt;Temporal, oversubscribed replicas&lt;/td&gt;
&lt;td&gt;None beyond time-sharing; NVIDIA's own documentation notes the plugin offers no other isolation benefits&lt;/td&gt;
&lt;td&gt;Dev sandboxes and batch jobs only, never PII-class serving&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;CUDA MPS&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Logical, kernels share SMs&lt;/td&gt;
&lt;td&gt;Partial, with limited fault isolation and QoS&lt;/td&gt;
&lt;td&gt;Skip unless you have a measured reason&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;vGPU&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;SR-IOV virtual functions per VM&lt;/td&gt;
&lt;td&gt;Strong, plus VM lifecycle tooling&lt;/td&gt;
&lt;td&gt;Only if your organisation is VM-first rather than Kubernetes-first&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Config for a node pool that mixes both, using the device plugin's configuration file (which the GPU Operator exposes as a ConfigMap from version 1.11 onwards):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v1&lt;/span&gt;
&lt;span class="na"&gt;flags&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;migStrategy&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;mixed"&lt;/span&gt;          &lt;span class="c1"&gt;# expose MIG instances and whole GPUs&lt;/span&gt;
  &lt;span class="na"&gt;failOnInitError&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;span class="na"&gt;sharing&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;timeSlicing&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;resources&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;nvidia.com/gpu&lt;/span&gt;
        &lt;span class="na"&gt;replicas&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;4&lt;/span&gt;             &lt;span class="c1"&gt;# dev pool only: four schedulable slots per card&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;migStrategy: mixed&lt;/code&gt;, teams request &lt;code&gt;nvidia.com/mig-1g.10gb&lt;/code&gt; for isolated serving, and the dev pool's time-sliced &lt;code&gt;nvidia.com/gpu&lt;/code&gt; resource gives four schedulable slots per card. The scheduler keeps the two apart. Deploy it all from Git with &lt;a href="https://www.azrty.com/software/solder" rel="noopener noreferrer"&gt;Solder&lt;/a&gt;, our Kubernetes operator: it keeps clusters in line with the repository, handles approvals and drift detection, and rolls back on its own, which turns the cluster into an auditable artefact rather than a pile of imperative commands.&lt;/p&gt;

&lt;h2&gt;
  
  
  Layer 3: Model serving with vLLM
&lt;/h2&gt;

&lt;p&gt;Serve open-weight models with vLLM as the first tier behind the gateway. Arabic capability makes the open-weight route genuinely viable in this region: the Jais family from MBZUAI, plus Qwen, gpt-oss and Llama variants, all deployable on your own instances. Typical arguments for a 14B-class model on one H100 80 GB:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;command&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;vllm"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;serve"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Qwen/Qwen2.5-14B-Instruct"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;args&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;--max-model-len=8192"&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;--gpu-memory-utilization=0.90"&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;--enable-prefix-caching"&lt;/span&gt;        &lt;span class="c1"&gt;# cached system prompts, a big win for assistants&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The throughput figure you design against should be the one you measure. Run &lt;code&gt;vllm bench serve&lt;/code&gt; at your real context lengths and concurrency: single-GPU throughput for a 14B-class model is in the low thousands of output tokens per second at realistic concurrency, and it falls as context grows. That measured number is what your capacity plan needs, not a vendor's best case.&lt;/p&gt;

&lt;h2&gt;
  
  
  Layer 4: One OpenAI-compatible gateway, two tiers of traffic
&lt;/h2&gt;

&lt;p&gt;The gateway is the component most UAE teams are missing, and it is what makes a residency policy real. Every application speaks one OpenAI-compatible API; the gateway decides which backend each request may touch. We build this layer with our own &lt;a href="https://www.azrty.com/software/fastllm-proxy" rel="noopener noreferrer"&gt;FastLLM Proxy&lt;/a&gt;, an OpenAI-compatible gateway in front of your LLM servers and 80 hosted providers, with routing, budgets and access control in one place. The open-source equivalent is &lt;a href="https://docs.litellm.ai/docs/proxy/architecture" rel="noopener noreferrer"&gt;LiteLLM Proxy&lt;/a&gt;, and its request flow (virtual-key authentication, rate limits per key, user and team, a router with load balancing, retries and fallbacks, then provider translation) is the pattern to copy either way.&lt;/p&gt;

&lt;p&gt;The config below puts the whole policy in one file: a private tier on your own GPUs, an in-region hosted tier behind a hard spend cap, and fallbacks that never leave the country.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;model_list&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="c1"&gt;# Tier 1: your GPUs, your data centre. PII-class traffic.&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;model_name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;assistant-private&lt;/span&gt;
    &lt;span class="na"&gt;litellm_params&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;openai/&amp;lt;your-served-model&amp;gt;&lt;/span&gt;          &lt;span class="c1"&gt;# the vLLM endpoint above&lt;/span&gt;
      &lt;span class="na"&gt;api_base&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;http://vllm.assist.svc.cluster.local:8000/v1&lt;/span&gt;
      &lt;span class="na"&gt;api_key&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/VLLM_KEY&lt;/span&gt;

  &lt;span class="c1"&gt;# Tier 2: in-region hosted, for non-PII and burst traffic.&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;model_name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;assistant-hosted&lt;/span&gt;
    &lt;span class="na"&gt;litellm_params&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;openai/&amp;lt;in-region-model-id&amp;gt;&lt;/span&gt;         &lt;span class="c1"&gt;# a UAE-region hosted endpoint&lt;/span&gt;
      &lt;span class="na"&gt;api_base&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/IN_REGION_BASE_URL&lt;/span&gt;
      &lt;span class="na"&gt;api_key&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;os.environ/IN_REGION_KEY&lt;/span&gt;

&lt;span class="na"&gt;router_settings&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;fallbacks&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="pi"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;assistant-private"&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;assistant-hosted"&lt;/span&gt;&lt;span class="pi"&gt;]}&lt;/span&gt;   &lt;span class="c1"&gt;# fail over, stay in-country&lt;/span&gt;
  &lt;span class="na"&gt;provider_budget_config&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;openai&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;                                         &lt;span class="c1"&gt;# provider of the hosted tier&lt;/span&gt;
      &lt;span class="na"&gt;budget_limit&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;400&lt;/span&gt;                             &lt;span class="c1"&gt;# USD per period, your cap&lt;/span&gt;
      &lt;span class="na"&gt;time_period&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;30d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two behaviours in that file do the compliance work. The fallback keeps availability high without sending PII abroad, because the hosted tier is itself in-region. The &lt;a href="https://docs.litellm.ai/docs/proxy/provider_budget_routing" rel="noopener noreferrer"&gt;provider budget&lt;/a&gt; is a hard stop: once the hosted tier has cost $400 in the period, the router skips it and returns a 429 rather than quietly overspending, which is how per-key and per-team spend control gets enforced rather than merely reported. Per the &lt;a href="https://docs.litellm.ai/docs/proxy/architecture" rel="noopener noreferrer"&gt;LiteLLM architecture&lt;/a&gt;, budget and rate-limit checks run against a Redis-backed cache before the request reaches a provider, and logging and spend accounting happen after the response, so nothing extra sits in the request path.&lt;/p&gt;

&lt;p&gt;At Azrty we run this stack, cluster to gateway to the applications on top, through our AI infrastructure service, with the platform layer provided by our own &lt;a href="https://www.azrty.com/software/kuvryn" rel="noopener noreferrer"&gt;Kuvryn&lt;/a&gt; software: a self-hosted Kubernetes platform that shows each AI application with its parts and its health, and when something breaks, the reason why. That is the difference between a compliance story and an operable one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: a 3,000-person group and its knowledge assistant
&lt;/h2&gt;

&lt;p&gt;Take a mainland UAE group with 3,000 staff building an internal assistant over HR, finance and operations documents. Assume:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;600 active users a day at 30 requests each: &lt;strong&gt;18,000 requests a day&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;1,000 input and 400 output tokens per request: &lt;strong&gt;18M input and 7.2M output tokens a day&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;The peak hour carries about 12% of daily volume, with peak concurrency around 60 streams&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Sizing the private tier.&lt;/strong&gt; The peak hour is roughly 2,160 requests at 400 output tokens, so 864,000 output tokens an hour, or about 240 output tokens a second sustained, with short bursts several times that under concurrency. One H100 running a 14B-class model serves in the low thousands of tokens a second, so a single GPU covers the peak comfortably, but a single GPU is also a single point of failure. The answer is N+1: two H100-class instances, on one node or two.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Costing the private tier.&lt;/strong&gt; Rent is where your provider's quote enters the arithmetic: two instances at 24/7 is 2 × your hourly rate × 730 hours. The point is the division at the end. Two dedicated GPUs divided by the 756M tokens a month this workload represents comes out several times the per-token price of in-region hosted inference. The GPUs reach parity only when they run near saturation; at pilot volumes they sit idle most of the day.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So do not buy GPUs for a pilot.&lt;/strong&gt; Route by data class instead: the minority of traffic that contains personal data goes to the private tier (which can start as two rented in-country GPU instances, not a rack), while internal, non-personal and bursty traffic goes to the hosted in-region tier behind the provider budget. Scale the private tier when measured utilisation justifies it, and re-run these numbers at each step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which PDPL control maps to which component?
&lt;/h2&gt;

&lt;p&gt;This is the table to put in front of your DPO and your auditors. Each row maps a duty in the &lt;a href="https://www.uaelegislation.gov.ae/en/legislations/1972/download" rel="noopener noreferrer"&gt;PDPL text&lt;/a&gt; to a component in this blueprint.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;PDPL duty&lt;/th&gt;
&lt;th&gt;What it requires&lt;/th&gt;
&lt;th&gt;Component in this architecture&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Art. 7 (controller)&lt;/td&gt;
&lt;td&gt;Technical and organisational measures appropriate to the risk&lt;/td&gt;
&lt;td&gt;TLS everywhere, encryption at rest in the in-country data centre, MIG-level isolation between teams, RBAC and per-key policy at the gateway&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Art. 7 (controller)&lt;/td&gt;
&lt;td&gt;A record of processing activities, including cross-border movement&lt;/td&gt;
&lt;td&gt;Gateway request logs (model, destination, data class, key) exported into the record; the Git history of the cluster as deployment evidence&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Art. 7 (controller)&lt;/td&gt;
&lt;td&gt;Processors appointed with sufficient guarantees&lt;/td&gt;
&lt;td&gt;In-region contracts for the hosted tier, with the provider budget as a technical control that enforces the contract's scope&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Art. 8 (processor)&lt;/td&gt;
&lt;td&gt;Process on documented instructions, erase on schedule, keep records, prove compliance&lt;/td&gt;
&lt;td&gt;Erasure and retention policy on logs and vector stores; per-key audit trail showing who touched what&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Arts. 22 and 23 (transfers)&lt;/td&gt;
&lt;td&gt;Transfers only under adequacy, contract, consent or the other listed conditions&lt;/td&gt;
&lt;td&gt;Default-deny egress: only the gateway can reach external APIs, only approved destinations are configured, and the processing record names each one and its legal basis&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Good practice, not a clause&lt;/td&gt;
&lt;td&gt;Reduce identifiability before the model sees the data&lt;/td&gt;
&lt;td&gt;Tokenisation or masking of national identifiers before prompts reach the gateway; classification rules in the router&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The transfers row is the heart of it. Cross-border movement in this design is not an accident that happens inside an SDK; it is a YAML entry a named person reviewed, the gateway enforces, and the logs evidence.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do next
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Classify, then size.&lt;/strong&gt; Split planned AI traffic into PII-class and non-PII and estimate daily tokens for each. The example above is ten minutes of arithmetic, and it changes the hardware conversation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start with in-country GPU-as-a-Service, not a rack.&lt;/strong&gt; Two rented H100-class instances in a UAE data centre cover the private tier for a 3,000-person organisation. Add metal when measured utilisation demands it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stand up the gateway before the second application.&lt;/strong&gt; One OpenAI-compatible endpoint, per-key budgets, one default-deny egress policy. Every application you onboard after that inherits the residency controls.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Benchmark on your hardware.&lt;/strong&gt; Run &lt;code&gt;vllm bench serve&lt;/code&gt; at your real context lengths and concurrency before you commit to a sizing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write the PDPL mapping now, not at audit time.&lt;/strong&gt; The table above is your template, and every claim in it should point at a config file in Git.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you want this mapped to your organisation rather than to a reference architecture, that is what our &lt;a href="https://www.azrty.com/services/operate" rel="noopener noreferrer"&gt;AI infrastructure service&lt;/a&gt; does: we assess, design, build and run the platform layer, from GPUs and models on your own infrastructure to the gateway, delivered by our team in Dubai. The first conversation is about traffic, classification and numbers, not logos.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.azrty.com/blog/how-to-host-an-llm-privately-in-a-uae-data-center" rel="noopener noreferrer"&gt;Azrty&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aiinfrastructure</category>
      <category>dataresidency</category>
      <category>pdpl</category>
      <category>kubernetes</category>
    </item>
  </channel>
</rss>
