pytorch logo

pytorch

Enrichment pending
pytorch/pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

GraphCanon updated today · GitHub synced today

102k
Stars
28k
Forks
18k
Open issues
1.9k
Watchers
today
Last push
Python OtherCreated Aug 13, 2016

Trust & integrity

Full report
Maintenance
Very active (0d since push)
As of today · Source: github_public_v1
Provenance
Not a fork · Organization account
As of today · Source: github_public_v1
Security (OSV)
No criticals
As of today · Source: osv@v1

Public GitHub metadata and optional OSV dependency scans. Signals, not a guarantee. Trust methodology.

Overview

Tensors and Dynamic neural networks in Python with strong GPU acceleration

Capability facts

Deploy
Self-host

Source: dockerfile:Dockerfile · Jul 11, 2026

Docker
Dockerfile present

Source: dockerfile:Dockerfile · Jul 11, 2026

Languages
python

Source: github.language+pyproject.toml · Jul 11, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Jul 11, 2026)

You can pass `PYTHON_VERSION=x.y` make variable to specify which Python version is to be used by Miniconda, or leave it
Source link

Tags

README

magma installation: run with active conda environment. specify CUDA version to install

.ci/docker/common/install_magma_conda.sh 12.4


(optional) If using torch.compile with inductor/triton, install the matching version of triton


Docker Image

Using pre-built images

You can also pull a pre-built docker image from Docker Hub and run with docker v23.0+

docker run --gpus all --rm -ti --ipc=host pytorch/pytorch:latest

Please note that PyTorch uses shared memory to share data between processes, so if torch multiprocessing is used (e.g. for multithreaded data loaders) the default shared memory segment size that container runs with is not enough, and you should increase shared memory size either with --ipc=host or --shm-size command line options to nvidia-docker run.

Building the image yourself

NOTE: Must be built with a Docker version >= 23.0

The Dockerfile is supplied to build images with CUDA 12.1 support and cuDNN v9. You can pass PYTHON_VERSION=x.y make variable to specify which Python version is to be used by Miniconda, or leave it unset to use the default, as the Dockerfile uses system Python.

make -f docker.Makefile

---

# images are tagged as docker.io/${your_docker_username}/pytorch

You can also pass the CMAKE_VARS="..." environment variable to specify additional CMake variables to be passed to CMake during the build. See setup.py for the list of available variables.

make -f docker.Makefile

Getting Started

Pointers to get you started:


License

PyTorch has a BSD-style license, as found in the LICENSE file.