Run PyTorch on a Google TPU in one line: just swap cuda for tpu
kuanhoong · x · 2026-11-12
A quick tip for running PyTorch on Google TPU: swap the device selection from cuda to tpu in a single line of code. The author also shared an 11-minute video tutorial walking through the process.
More from Infra
- Liquid AI's 74M-param LiquidCodec hits 361x realtime encoding on a single CPU thread — helloiamleonie · 2026-11-13
- AI Agent Traffic on Cloudflare Up 1,700% in a Year as Over Half of Web Traffic Turns Non-Human — PeterDiamandis · 2026-11-13
- One 8×B200 node serves 3,000 DeepSeek agents, 19x official capacity — james_y_zou · 2026-11-13
- Outlook is down for thousands of users — and Microsoft's status page is down too — dkpk · 2026-11-13
- Tracking data claims 1.5GW of restricted Nvidia chips still ended up in China via smuggling — zephyr_z9 · 2026-11-13
- Azure outage: Microsoft cloud connections down and status page won't load — nazgulsenpai · 2026-11-13