Volunteers wanted to help translate FreshPorts
Searches without login should now work. You must get asked to click a button.
Port details on branch 2026Q4
py-pytorch PyTorch: Tensors and dynamic neural networks in Python
2.14.1 misc Σ=1 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.14.0_2Version of this port present on the latest quarterly branch.
Maintainer: yuri@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2023-05-08 04:18:22
Last Update: 2026-10-10 18:15:29
Commit Hash: 04cfc67
People watching this port, also watch: libgd, tin, irssi, wine, tripwire
License: BSD3CLAUSE
WWW:
https://pytorch.org/
https://github.com/pytorch/pytorch
Description: #
PyTorch is an open-source machine learning library for Python, based on the Torch library, used for applications such as natural language processing. It is primarily developed by Facebook's AI Research lab. PyTorch provides two high-level features: * Tensor computation (like NumPy) with strong GPU acceleration * Deep neural networks built on a tape-based autograd system It is a popular choice for deep learning research and production due to its flexibility and ease of use.
HomepageHomepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR}
Conflicts: #
CONFLICTS_BUILD:
  • mpich
To install the port: #
cd /usr/ports/misc/py-pytorch/ && make install clean
To add the package, run one of these commands:
  • pkg install misc/py-pytorch
  • pkg install py312-pytorch
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py312-pytorch listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py312-pytorch
Package flavors (<flavor>: <package>) #
  • py312: py312-pytorch
distinfo: #
TIMESTAMP = 1790908268 SHA256 (pytorch/pytorch-v2.14.1.tar.gz) = d0ebad9ca4219959b29b7ad9ab6469fe49a3d668f8b5a62dd115f02f3a914447 SIZE (pytorch/pytorch-v2.14.1.tar.gz) = 797872843

Expand this list (2 items)

Collapse this list.

SHA256 (pytorch/pytorch-cpuinfo-bc3c01e_GH0.tar.gz) = 09459e830a588fee730feb19d8a32fedf2d36d48db7bd9b18c3159c7e74ea0ce SIZE (pytorch/pytorch-cpuinfo-bc3c01e_GH0.tar.gz) = 3547453

Collapse this list.


Packages (timestamps in pop-ups are UTC): #
py312-pytorch
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest2.14.1----
FreeBSD:14:quarterly2.14.0_2----
FreeBSD:15:latest2.14.1-n/a-n/a
FreeBSD:15:quarterly2.14.0_2-n/a-n/a
FreeBSD:16:latest2.14.12.14.1n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. cmake : devel/cmake-core
  2. gmake : devel/gmake
  3. pybind11>0 : devel/pybind11
  4. py312-numpy>=1.16 : math/py-numpy@py312
  5. fxdiv.h : devel/fxdiv
  6. py312-filelock>0 : sysutils/py-filelock@py312
  7. py312-fsspec>0 : filesystems/py-fsspec@py312
  8. py312-hypothesis>0 : devel/py-hypothesis@py312
  9. py312-Jinja2>0 : devel/py-Jinja2@py312
  10. py312-optree>0 : devel/py-optree@py312
  11. py312-packaging>0 : devel/py-packaging@py312
  12. py312-psutil>0 : sysutils/py-psutil@py312
  13. py312-pyyaml>0 : devel/py-pyyaml@py312
  14. py312-requests>0 : www/py-requests@py312
  15. py312-scikit-build-core>=1.0 : devel/py-scikit-build-core@py312
  16. py312-six>0 : devel/py-six@py312
  17. py312-sympy>=1.13.3 : math/py-sympy@py312
  18. py312-typing-extensions>0 : devel/py-typing-extensions@py312
  19. py312-wheel>0 : devel/py-wheel@py312
  20. glslc : graphics/shaderc
  21. vulkan-headers>0 : graphics/vulkan-headers
  22. python3.12 : lang/python312
  23. py312-build>=0 : devel/py-build@py312
  24. py312-installer>=0 : devel/py-installer@py312
Test dependencies: #
  1. py312-expecttest>0 : devel/py-expecttest@py312
  2. py312-pytest-rerunfailures>0 : devel/py-pytest-rerunfailures@py312
  3. py312-pytest-xdist>0 : devel/py-pytest-xdist@py312
  4. python3.12 : lang/python312
Runtime dependencies: #
  1. py312-filelock>0 : sysutils/py-filelock@py312
  2. py312-fsspec>0 : filesystems/py-fsspec@py312
  3. py312-Jinja2>0 : devel/py-Jinja2@py312
  4. py312-networkx>0 : math/py-networkx@py312
  5. py312-numpy>=1.16 : math/py-numpy@py312
  6. py312-sympy>=1.13.3 : math/py-sympy@py312
  7. py312-typing-extensions>=4.10.0 : devel/py-typing-extensions@py312
  8. py312-pyyaml>0 : devel/py-pyyaml@py312
  9. py312-astunparse>0 : devel/py-astunparse@py312
  10. py312-dill>0 : devel/py-dill@py312
  11. py312-protobuf>0 : devel/py-protobuf@py312
  12. python3.12 : lang/python312
Library dependencies: #
  1. libabsl_base.so : devel/abseil
  2. libonnx.so : misc/onnx
  3. libopenblas.so : math/openblas
  4. libprotobuf.so : devel/protobuf
  5. libsleef.so : math/sleef
  6. libvulkan.so : graphics/vulkan-loader
  7. libmpi_mpifh.so : net/openmpi
This port is required by: #
for Build #
  1. audio/py-torchaudio
  2. math/dgl
  3. misc/py-NATTEN
  4. misc/py-mmcv
  5. misc/py-mmdet
  6. misc/py-torchao
  7. misc/py-torchmetrics
Expand this list (13 items / 6 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list.
  2. misc/py-torchvision
  3. misc/py-vllm
  4. misc/py-xformers
  5. multimedia/py-torchcodec
  6. Collapse this list.

Deleted ports which required this port:

Expand this list of 2 deleted ports
  1. math/py-dgl*
  2. misc/py-natten*
  3. Collapse this list of deleted ports.
for Run #
  1. audio/py-torchaudio
  2. graphics/py-easyocr
  3. graphics/py-kornia
  4. graphics/py-olmocr
  5. math/py-torchsde
  6. misc/colibri
  7. misc/comfyui
Expand this list (48 items / 41 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list.
  2. misc/netron
  3. misc/py-NATTEN
  4. misc/py-accelerate
  5. misc/py-bitsandbytes
  6. misc/py-comfy-aimdo
  7. misc/py-comfy-kitchen
  8. misc/py-compressed-tensors
  9. misc/py-datasets
  10. misc/py-deepspeed
  11. misc/py-facenet-pytorch
  12. misc/py-kokoro
  13. misc/py-lion-pytorch
  14. misc/py-mmcv
  15. misc/py-openai-whisper
  16. misc/py-optimum
  17. misc/py-peft
  18. misc/py-pytorch-lightning
  19. misc/py-safetensors
  20. misc/py-sagemaker-serve
  21. misc/py-schedulefree
  22. misc/py-sentence-transformers
  23. misc/py-spandrel
  24. misc/py-timm
  25. misc/py-timm-vis
  26. misc/py-torchao
  27. misc/py-torchmetrics
  28. misc/py-torchsummary
  29. misc/py-torchvision
  30. misc/py-transformers
  31. misc/py-vllm
  32. misc/py-xformers
  33. misc/py-xgrammar
  34. multimedia/py-torchcodec
  35. science/py-kliff
  36. textproc/py-docling-eval
  37. textproc/py-docling-ibm-models
  38. textproc/py-docling-metrics-layout
  39. textproc/py-docling-ocr
  40. Collapse this list.

Deleted ports which required this port:

Expand this list of 3 deleted ports
  1. math/py-dgl*
  2. misc/py-natten*
  3. misc/py-torch-geometric*
  4. Collapse this list of deleted ports.
for Test #
  1. devel/py-autoray
  2. devel/py-beartype
  3. graphics/py-albumentations
  4. math/py-faiss
  5. misc/py-datasets
  6. misc/py-einops
  7. misc/py-optuna

Configuration Options: #
===> The following configuration options are available for py312-pytorch-2.14.1: VULKAN=on: Vulkan GPU support ===> Use 'make config' to modify these settings
Options name: #
misc_py-pytorch
USES: #
compiler:c++17-lang localbase:ldflags mpi:openmpi python shebangfix pkgconfig
pkg-message: #
For install:
You installed PyTorch: an AI toolkit. ## Need env var on amd64 Zen5/Zen6 CPU architectures Due to the bug in the OpenBLAS CPU arch detection PyTorch will crash on Zen5/Zen6 CPU architectures. Reference: https://github.com/OpenMathLib/OpenBLAS/issues/6029 Use the following environment variable to work around this problem: OPENBLAS_CORETYPE=SKYLAKEX (some other values might work too) The same problem exists in all software that uses OpenBLAS, not just PyTorch. ## Need env var on aarch64 due to high TLS requirements When running PyTorch on aarch64 you will need to have this environment variable set: LD_STATIC_TLS_EXTRA=4096 It pre-allocates more TLS space when the Python process starts so that the PyTorch shared libraries will have sufficient TLS space when they are loaded dynamically.
Master Sites: #
Expand this list (1 items)
Collapse this list.
  1. https://github.com/pytorch/pytorch/releases/download/v2.14.1/
Collapse this list.

There are no commits on branch 2026Q4 for this port