{"id":213709,"date":"2026-10-22T04:44:02","date_gmt":"2026-10-22T04:44:02","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/213709\/"},"modified":"2026-10-22T04:44:02","modified_gmt":"2026-10-22T04:44:02","slug":"torchtpu-is-now-open-source-run-native-pytorch-on-tpus","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/213709\/","title":{"rendered":"TorchTPU is now open source: Run native PyTorch on TPUs"},"content":{"rendered":"<p>SGLang: Accelerating agentic and structured workloads<\/p>\n<p>Developed in partnership with RadixArk, our native PyTorch backend for <a href=\"https:\/\/github.com\/sgl-project\/sglang-torchtpu\/\" rel=\"noopener nofollow\" target=\"_blank\">SGLang<\/a> accelerates highly structured and agentic workloads on TPUs. SGLang uses RadixAttention to reuse KV cache across requests, allowing repeated prompt prefixes to skip recomputation entirely. SGLang-TorchTPU preserves upstream worker models, schedulers, and API servers, using a disaggregation transfer backend that also acts as the I\/O backend for HiCache to optimize latency and throughput for complex multi-step generation.<\/p>\n<p style=\"padding-left:40px\">&#8220;At RadixArk, TorchTPU has supercharged our development velocity as we roll out SGLang support across diverse silicon. It\u2019s given us a painless path to native TPU acceleration, passing massive efficiency gains and flexible compute choices directly down to our customers.&#8221; &#8211; Banghua Zhu, CTO and co-founder, RadixArk<\/p>\n<p>llm-d for distributed LLM inference<\/p>\n<p>To run inference engines across large fleets, we are releasing llm-d 1.0 with Red Hat, IBM, and a community of more than 500 contributors and 25 organizations. As a Cloud Native Computing Foundation (CNCF) Sandbox project, llm-d connects two open-source communities: PyTorch, where vLLM and SGLang serve models, and Kubernetes, where distributed systems run and scale in production. The llm-d router sends each request to the replica that already holds its context, using prefix-cache-aware routing. It also splits compute-heavy prefill from memory-heavy decode. llm-d 1.0 makes that ready for production with multi-tenant flow control, router high availability, stable v1 APIs, and session-aware routing for agents. On Google Kubernetes Engine (GKE), you can have the choice of running on either GPUs or Google TPUs, with a common llm-d endpoint, and choose the hardware that fits each workload.<\/p>\n<p style=\"padding-left:40px\">&#8220;At Zenteiq, we use GKE Inference Gateway powered by llm-d to accelerate synthetic data generation for our sovereign Scientific Foundation Models. By leveraging load-aware and prefix-cache-aware routing, we have achieved over 4\u00d7 higher aggregate inference throughput, increasing daily generated token capacity from 1.47 billion to 5.97 billion tokens per 1,000 TPU v6e accelerators. The open-source foundation of llm-d, integrated with GKE, enables us to efficiently serve multiple model families at scale without developing and maintaining a custom inference scheduler.&#8221; &#8211; Prof. Sashikumaar Ganesan, Founder, Zenteiq.ai<\/p>\n<p>Training at scale<\/p>\n<p>Scaling PyTorch training across thousands of accelerators requires fault-tolerant, compile-aware distributed frameworks. We have integrated TorchTPU into the PyTorch community\u2019s core training, reinforcement learning (RL), and orchestration frameworks.<\/p>\n<p>TorchTitan: Distributed high performance training at scale<\/p>\n<p><a href=\"https:\/\/github.com\/google-pytorch\/torchtitan\" rel=\"noopener nofollow\" target=\"_blank\">TorchTitan<\/a> is the PyTorch-native reference implementation for scalable distributed training and features a production-grade integration with TorchTPU. By connecting to PyTorch&#8217;s torch.compile and TorchTitan\u2019s compile friendly SimpleFSDP, specialized Pallas kernels, and graph-level optimizations, developers can build and train models on TPUs with high efficiency at scale.<\/p>\n<p>TorchTitan provides recipes for pre-training large dense models (such as Llama 3 70B\/405B, Qwen 3 8B\/32B, and MuseGlimmer 30B), Mixture-of-Experts (MoE) such as Qwen 3 235B, and diffusion transformers (such as FLUX.1 12B), and has been validated running with up to 8000 Ironwood TPUs (TPU v7x). Beyond initial pre-training, TorchTitan serves as the scalable trainer inside post-training pipelines like VeRL for Group Relative Policy Optimization (GRPO) and RL alignment.To test large-scale efficiency on demanding open architectures, TorchTPU\u2019s training paths via TorchTitan demonstrated up to 52% Model Flops Utilization (MFU) on Qwen 3 8B, showing near-linear scaling and stability across up to 8,192 Ironwood TPUs.<\/p>\n<p>VeRL: Scalable post-training and reinforcement learning in preview<\/p>\n<p>RL is a foundational technique for frontier labs that are advancing model capabilities, as well as for enterprises customizing models for domain-specific tasks. Yet, orchestrating distributed RL workloads remains one of the most complex challenges in modern AI infrastructure. Bridging that gap, <a href=\"https:\/\/github.com\/verl-project\/verl\/tree\/main\/examples\/tpu\/grpo\" rel=\"noopener nofollow\" target=\"_blank\">VeRL<\/a> has quickly become one of the most popular RL frameworks, supporting everything from verifiable math and coding rewards, to multi-turn agentic tool use at massive scale.\u00a0<\/p>\n<p>To help expand hardware choice for this thriving community, we upstreamed a TPU backend and an end-to-end reference recipe to VeRL. Built on a disaggregated trainer-sampler architecture designed to maximize training efficiency, our GRPO reference recipe on mathematical reasoning datasets demonstrates how developers can deploy VeRL workloads on TPUs while preserving their existing, hardware-agnostic model and algorithm code.\u00a0<\/p>\n<p>Ray: Orchestrating heterogenous compute<\/p>\n<p>We\u2019ve also added native TorchTPU support to <a href=\"https:\/\/github.com\/ray-project\/ray\" rel=\"noopener nofollow\" target=\"_blank\">Ray<\/a>, enabling you to orchestrate PyTorch data processing, training, RL, and serving across CPUs, GPUs, and TPUs within a single workflow. With a few lines of resource configuration, you can schedule each stage of a heterogeneous AI pipeline onto the accelerator best suited for the job.<\/p>\n<p style=\"padding-left:40px\">\u201cAt Ray Summit we talked about the PARK stack, PyTorch, AI models, Ray, and Kubernetes, because that&#8217;s what teams are building production AI on today. TorchTPU embeds Google TPUs directly in that industry-standard stack. We&#8217;ve also worked closely with the Google team to support TPUs as a first-class accelerator in Ray. Coupled with native PyTorch support, teams can now seamlessly develop, scale, and monitor their workloads on TPUs.&#8221; &#8211; Edward Oakes, Chief Architect, Anyscale<\/p>\n<p>Deployment flexibility and operational efficiency<\/p>\n<p>True portability requires standardizing deployment tools across different hardware profiles, including edge devices and cloud accelerators.<\/p>\n<p>LiteRT joins the PyTorch Ecosystem<\/p>\n<p>Many PyTorch models need to run on phones, laptops, browsers, and embedded devices. Today, <a href=\"https:\/\/github.com\/google-ai-edge\/litert\" rel=\"noopener nofollow\" target=\"_blank\">LiteRT<\/a> (formerly TensorFlow Lite), Google&#8217;s high-performance on-device AI inference, joins the PyTorch ecosystem.\u00a0<\/p>\n<p>With <a href=\"https:\/\/github.com\/google-ai-edge\/litert-torch\" rel=\"noopener nofollow\" target=\"_blank\">LiteRT-Torch<\/a>, you convert a PyTorch model with a single litert-torch.convert() call. It builds on torch.export() and Core ATen operators, so your model code stays in PyTorch. For LLMs, LiteRT Torch exports Hugging Face Transformer models to run with <a href=\"https:\/\/github.com\/google-ai-edge\/LiteRT-LM\" rel=\"noopener nofollow\" target=\"_blank\">LiteRT-LM<\/a>. The converted models run on Android, iOS, macOS, Windows, Linux, web, and IoT devices, with hardware acceleration across CPUs (via XNNPack), GPUs (via open source <a href=\"https:\/\/developers.googleblog.com\/ml-drift-next-gen-gpu-aiml-inference-at-the-edge\/\" rel=\"noopener nofollow\" target=\"_blank\">ML Drift<\/a>), and NPUs from major chipsets provided through a single API.\u00a0<\/p>\n<p>TPU agent suite in early preview<\/p>\n<p>To expand Pytorch adoption on TPUs, we are announcing that the <a href=\"https:\/\/github.com\/google-pytorch\/tpu-agent-suite\" rel=\"noopener nofollow\" target=\"_blank\">TPU agent suite<\/a> is in preview on GitHub. Integrating through plug-ins with several coding harness-model combinations, the TPU agent suite helps automate onboarding, diagnostics, user questions, and inference performance tuning for many PyTorch models.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"SGLang: Accelerating agentic and structured workloads Developed in partnership with RadixArk, our native PyTorch backend for SGLang accelerates&hellip;\n","protected":false},"author":2,"featured_media":213646,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[24,407,10605,132,1429,335,10196],"class_list":["post-213709","post","type-post","status-publish","format-standard","has-post-thumbnail","category-google","tag-ai","tag-ai-infrastructure","tag-application-development","tag-google","tag-google-ai","tag-open-source","tag-tpus"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/213709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=213709"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/213709\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/213646"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=213709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=213709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=213709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}