The current version has a known security vulnerability. Review the advisory and consider upgrading.
torch has 93.7M monthly downloads and 101K GitHub stars. Version 2.12.1 supports Python 3.10+, first published in 2017.
It is actively maintained under a permissive license, last released in Jun 2026.
It is built on top of cuda-bindings, cuda-toolkit and filelock. It is used by 16,009 tracked packages, including sglang, torchvision and sentence-transformers.
GitHub topics include neural-network, autograd and gpu.
Package Insights
((week_daily_avg - month_daily_avg) / month_daily_avg) * 100Weekly Downloads
GitHub Stars
Downloads by OS
Python Versions
Top Countries
Dependencies
- cuda-bindings <14,>=13.0.3
- cuda-toolkit ==13.0.2
- filelock
- fsspec >=0.8.5
- jinja2
- networkx >=2.5.1
- nvidia-cublas <=13.1.1.3,>=13.1.0.3
- nvidia-cudnn-cu13 ==9.20.0.48
- nvidia-cusparselt-cu13 ==0.8.1
- nvidia-nccl-cu13 ==2.29.7
- nvidia-nvshmem-cu13 ==3.4.5
- setuptools <82
- sympy >=1.13.3
- triton ==3.7.1
- typing-extensions >=4.10.0
3 optional dependencies
- opt-einsum[opt-einsum]
- optree[optree]
- pyyaml[pyyaml]
Used By
- sglang
- torchvision
- sentence-transformers
- accelerate
- timm
- torchmetrics
- peft
- pytorch-lightning
- ultralytics
- compressed-tensors
- ultralytics-thop
- bitsandbytes
- xgrammar
- lightning
- vllm
- quack-kernels
- flashinfer-python
- torch-c-dlpack-ext
- easyocr
- docling-ibm-models
- mteb
- kornia
- torchdata
- xformers
- open-clip-torch
- openai-whisper
- unsloth
- julius
- tilelang
- tensordict
- pyannote-audio
- optimum
- torch-audiomentations
- torch-pitch-shift
- speechbrain
- spandrel
- stable-baselines3
- tokenspeed-mla
- sagemaker-serve
- x-transformers
- vector-quantize-pytorch
- deepspeed
- torchviz
- unsloth-zoo
- spacy-curated-transformers
- silero-vad
- thop
- humming-kernels
- whisperx
- torchrl