TorchTPU Doctor: Agent Skill & Profiler for PyTorch on Cloud TPUs
Agent Skill, 7-rule AST linter (TPU001–TPU007, including higher-order autograd recompile checks), and TorchDispatchMode profiler for native PyTorch (torch_tpu), cutting Cloud TPU v6e LoRA step time 2,537× (47.3s → 18.6ms) and uncovering upstream bottlenecks in Hugging Face transformers & peft.