cd /news/ai-agents/from-gpu-to-tpu-with-coding-agents-w… · home › topics › ai-agents › article
[ARTICLE · art-162743] src=arxiv.org ↗ pub= topic=ai-agents verified=true sentiment=↓ negative

From GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs?

A study posted to arXiv on 25 October 2026 by Hui Sun and co-authors used Claude Code to migrate ten of 148 PyTorch ML research projects from NVIDIA GPUs to Google Cloud TPUs, finding that 53 of 70 execution attempts failed (76%) and 26 of those failures (49%) raised no error. Eight projects met the project-goal criterion, migrations required 2.4 human interventions on average, and in one four-chip migration the agent reported success despite a gradient-clipping change that cut accuracy from 86.53% to 84.89%. Costs varied widely: in one workload the TorchTPU PyTorch backend for TPUs trained 1.86 times faster and 25% cheaper per run than the GPU.

read2 min views2 publishedNov 2, 2026
From GPU to TPU with Coding Agents: What Works, What Fails, and What It Costs?
Image: source
  [Submitted on 25 Oct 2026 (

[v1](https://arxiv.org/abs/2610.34422v1)), last revised 29 Oct 2026 (this version, v2)]

[View PDF](https://arxiv.org/pdf/2610.34422)

[HTML (experimental)](https://arxiv.org/html/2610.34422v2)

Abstract:A coding agent can migrate a machine learning workload, report success, and still change how the model trains. Rising compute costs, limited accelerator capacity, and vendor dependence are pushing organizations toward alternatives to graphics processing units (GPUs); a key question is whether agent-generated migrations to tensor processing units (TPUs) can be trusted and at what cost. We build a dataset of 148 PyTorch ML research projects and use Claude Code to migrate ten of them from NVIDIA GPUs to Google Cloud TPUs. We independently assess whether each migration runs, preserves numerical behavior, executes on the intended hardware, maintains the project's goal, and delivers acceptable performance. We also examine failures, human effort, and costs. Eight projects meet our project-goal criterion, and migrations require 2.4 human interventions on average. Of 70 execution attempts, 53 fail (76%), and 26 of these failures (49%) raise no error. The most frequent cause is repeated compilation and other execution inefficiencies, while interactions with third-party libraries can silently change the computation: in one four-chip migration, the agent reports success despite a change in gradient clipping that reduces accuracy from 86.53% to 84.89%. Execution costs vary widely: in one workload, TorchTPU, a PyTorch execution backend for TPUs, trains 1.86 times faster and 25% cheaper per run than the GPU. For practitioners, these findings motivate independent reference runs, verification under the intended hardware configuration, and workload-specific acceptance and stopping criteria that account for both computational and human costs.

Submission history #

From: Hui Sun [
[view email](https://arxiv.org/show-email/f5f1c053/2610.34422)]

**Sun, 25 Oct 2026 16:21:56 UTC (261 KB)**

[\[v1\]](https://arxiv.org/abs/2610.34422v1)
**[v2]** Thu, 29 Oct 2026 18:31:39 UTC (148 KB)

Additional Features

Current browse context:

cs.SE

References & Citations

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?) alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?) Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?) arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

── more in #ai-agents 4 stories · sorted by recency
── more on @hui sun 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/from-gpu-to-tpu-with…] indexed:0 read:2min 2026-11-02 · —