{
  "id": 21670298,
  "title": "From CUDA and Jax to TorchTPU: Lessons from a Cayley Graph Solver",
  "url": "https://urgent.news/2026/11/24/from-cuda-and-jax-to-torchtpu-lessons-from-a-cayley-graph-solver",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-24T19:40:43.000Z",
  "source": {
    "name": "Hacker News",
    "slug": "hacker-news",
    "url": "https://andlukyane.com/blog/cayley-graphs-and-torchtpu"
  },
  "original_language": "en",
  "account": "CayleyPy researcher conducted experiments to evaluate the performance of TorchTPU against A100 and JAX implementations in a shortest-path problem. TorchTPU, a native PyTorch backend for TPUs, showed ease of integration but required optimization for efficient performance. Initial training port on TorchTPU was 1.65 times slower than the A100 implementation, and the first TPU beam search was 5.7 times slower than JAX. After optimizations including fused eager execution, rewriting attention, and fixing a deduplication bug, TorchTPU achieved comparable wall-clock performance to the A100 and 25% faster per level beam search than JAX on an eight-chip v6e machine. The investigation also led to valuable improvements in the solver itself and contributed to fixing attention-routing regression in TorchTPU. The code and experiments are available on Kaggle notebooks running on a free TPU v5e-8.",
  "summary": null,
  "summary_source": "publisher",
  "key_points": [],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}