Case study · AI infrastructure

Not tied to one chip: accelerator-portable inference for a Brazilian AI software company

A Brazilian software company served its own fine-tuned language models to retail and banking customers from GPUs in a São Paulo cloud region. Its stack assumed one GPU family and one provider. New US licensing for advanced chips shipped to Brazil, and growing interest in cloud providers' own accelerators, made that assumption a business risk. The goal was inference that could move between accelerators and providers without a rewrite, and without data leaving Brazil.

Case studyAI software · BrazilSumanta Mukhopadhyay9 min read
#ai#kubernetes#platform
CASE STUDY · CASE STUDY · AI INFRASTRUCTURE23 Nov 2026 · 15:50 GST
At a glance
SectorAI software · Brazil
My roleFractional CTO and AI architect
EngagementArchitecture review, platform design and delivery leadership
ScopeModel serving abstraction, multi-accelerator images, scheduling, evaluation per accelerator, capacity strategy, data residency
What changed
  • Models served from more than one accelerator type behind one gateway
  • Images matched to compatible nodes automatically
  • Quality and latency checked per accelerator before traffic moves
  • Capacity sourced from more than one provider in Brazil
  • Customer data kept in-country on every serving path
KubernetesModel gatewayOpen model formatsServing engines per acceleratorNode Feature DiscoveryPer-accelerator evaluation suiteCapacity contracts in-countryOpenTelemetry

Anonymised composite. Client names, identifying details and confidential figures are withheld; public facts are cited in the references.

The situation

A Brazilian software company sold AI features to retailers and banks: customer service assistants, document extraction and product search, built on open-weight models it had fine-tuned. It served them from GPUs rented in a São Paulo cloud region, because customers expected their data to stay in Brazil under the LGPD's rules on personal data5. Every part of the serving stack, from container images to the serving engine and capacity contracts, assumed one GPU family and one provider.

Why now. In November 2026 the US issued a rule requiring licences for exports of advanced AI chips to several countries, including Brazil, and tightening remote access to such chips12. At the same time, cloud providers were pushing their own accelerators harder; Amazon was reported to be near a deal for Decart, whose software helps models run on AWS's own chips3. For a company whose margins depended on inference cost, being tied to one chip in one region had become a business risk, not just a technical preference.

What had to be true

  • Models servable on more than one accelerator type, with evidence that quality held.
  • Applications unaware of the hardware: one interface, routing decided by the platform.
  • No accidental mismatches: images only scheduled where drivers and hardware fit.
  • Capacity from more than one provider, all inside Brazil.
  • Cost visible per model, per accelerator, so choices were made on numbers, not habit.

Architecture

Products
Customer service assistantlatency-sensitiveDocument extractionbatch-friendlyProduct searchembeddings
Gateway
Model gatewayone API for all modelsRouting policyby model, cost, latencyTenant and region tagsBrazil only
Serving
GPU poolprimary providerAlternative accelerator poolsecond providerSmall-model CPU poolembeddings, fallbacks
Build
Open model formatsone source of weightsImages per acceleratorwith declared requirementsPer-accelerator evaluationquality and latency
Operations
Node feature discoveryhardware and driversTelemetrycost and latency per poolCapacity registercontracts and limits
One set of weights, several builds, several pools, one gateway: hardware becomes a routing decision.

The data flow, end to end

  1. TrainFine-tuned weights are stored once in an open format
  2. BuildServing images are built per accelerator, each declaring its requirements
  3. EvaluateEach build runs the same evaluation set for quality, latency and cost
  4. ScheduleImages land only on nodes whose features match
  5. RouteThe gateway sends traffic by policy, starting small on new pools
  6. MeasureCost and latency per model and pool feed the next routing decision
Portability is proved per model and per accelerator, then turned into routing policy.

The hard part: the same model is not quite the same on different chips

Moving a model between accelerators sounds like a deployment detail. In practice the serving engine, numerical precision, kernels and memory limits differ, and small differences in outputs show up in exactly the places customers notice: extraction fields, tone, refusals. The team treated every accelerator build as a new release of the model, with the same evaluation set and acceptance thresholds as a retrain, before any production traffic moved.

The second trap was scheduling. An image built for one accelerator and its drivers must never land on a node that cannot run it. Node Feature Discovery reports hardware and system features of each node, and its image compatibility work lets an image declare requirements such as drivers and kernel features that can be validated against a node before scheduling4.

Terminal output of nfd compat validate-node showing an image's compatibility sets, listing kernel and device features with expressions and OK or FAIL status for each
Validating an image's declared requirements against a node: the guard rail that keeps accelerator-specific builds on compatible hardware. Source: Kubernetes blog, Chaoyi Huang, Marcin Franczyk and Vanessa Sochat · CC BY 4.0

Portability is not free. Each additional accelerator adds a build, an evaluation run and an operational pool. The team supported two serving accelerator types plus CPU, and stopped there.

The gateway and routing approach follows LLM model routing and Kubernetes inference gateways; serving engine choices are covered in LLM inference serving, and capacity planning in the multi-region AI capacity case study.

How it ran

ML engineering
  1. Open weight formats
  2. Per-accelerator evaluation
  3. Acceptance thresholds
Platform
  1. Images with declared requirements
  2. Feature-aware scheduling
  3. Gateway routing and telemetry
Commercial and legal
  1. Second provider in Brazil
  2. Capacity terms
  3. Data residency in contracts
ML proved quality, platform made it safe to run, commercial secured the capacity.
Phase 1Abstract
  • Model gateway
  • Apps off direct endpoints
  • Cost telemetry
Phase 2Prove
  • Second accelerator builds
  • Evaluation per build
  • Latency and cost data
Phase 3Run
  • Second provider pool
  • Feature-aware scheduling
  • Small traffic shares
Phase 4Optimise
  • Routing by cost
  • Batch work to cheaper pools
  • Quarterly capacity review
Abstract first, then prove, then run, then optimise on real numbers.

Key decisions and trade-offs

DecisionAlternativeWhy
Gateway in front of every modelApps call serving endpoints directlyMoving hardware becomes a routing change
Treat each accelerator build as a releaseAssume identical behaviourOutputs differ in ways customers notice
Images declare hardware requirementsRely on node labels by conventionMismatches caught before scheduling
Two accelerator types plus CPUSupport everythingEach target adds builds, tests and operations
All pools inside BrazilCheapest region anywhereCustomer contracts and data protection expectations

What I'd do again, and differently

Again: put the gateway in first; it made every later step cheaper and gave the cost data that justified the rest. Differently: write evaluation sets for each product before starting, not during the first migration. The slowest part was agreeing what "good enough" meant for each customer-facing task. See evaluation sets that predict production and the tech news for 23 November.

If you run AI products in Brazil or across Latin America, see my regional work, or analyse your challenge and bring the result to a call.

References
  1. 1
  2. 2
  3. 3
  4. 4
    Image Compatibility In Cloud Native EnvironmentsKubernetes blog (Chaoyi Huang, Marcin Franczyk, Vanessa Sochat) · 25 Jun 2025
  5. 5
FAQ

Common questions

Why does chip licensing matter to a software company?

It changes how easily cloud and data centre providers in a country can obtain advanced accelerators, which affects price and availability of the capacity a software company rents.

Can the same model run on different accelerators?

Often yes, but not identically. Serving engines, numerical precision and kernels differ, so outputs, latency and cost must be checked per accelerator before moving production traffic.

How does Kubernetes help?

Node Feature Discovery reports hardware and driver features on each node, so images built for a given accelerator can be scheduled only where they are compatible, and a gateway can route traffic across pools.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.