{"library":"torch","type":"library","category":null,"description":"Deep learning framework with GPU-accelerated tensor operations. Current version is 2.10.0 (Jan 2026). Install command varies by CUDA version — plain pip install torch gives CPU-only build. torch.load weights_only default changed to True in 2.6, breaking thousands of existing checkpoints. TorchScript deprecated in 2.10.","language":"python","status":"active","version":"2.10.0","tags":["deep-learning","ml","gpu","cuda","neural-networks","autograd"],"last_verified":"Tue Jun 09","install":[{"cmd":"pip install torch","imports":["# For trusted checkpoints (your own models):\nmodel.load_state_dict(torch.load('model.pt', weights_only=True))\n\n# For checkpoints with non-tensor objects (optimizer states, custom classes):\ncheckpoint = torch.load('checkpoint.pt', weights_only=False)  # only for trusted files","device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')\nmodel = MyModel().to(device)\ntensor = tensor.to(device)"]},{"cmd":"pip install torch --index-url https://download.pytorch.org/whl/cu128","imports":[]},{"cmd":"pip install torch --index-url https://download.pytorch.org/whl/cu124","imports":[]},{"cmd":"pip install torch --index-url https://download.pytorch.org/whl/rocm6.2","imports":[]}],"homepage":"https://pytorch.org","github":"https://github.com/pytorch/pytorch","docs":"https://pytorch.org/docs","changelog":null,"pypi":"https://pypi.org/project/torch/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":33,"avg_install_s":81.5,"avg_import_s":null,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/torch/compatibility"}}