BSD Ports

ai/py-pytorch 2.7.0_1 MidnightBSD

PyTorch: Tensors and dynamic neural networks in Python

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
dee1e47e52
License
bsd3
Categories
ai

Description

PyTorch is a Python package that provides two high-level features: * Tensor computation (like NumPy) with strong GPU acceleration * Deep neural networks built on a tape-based autograd system

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}pytorch

From mports:

cd /usr/mports/ai/py-pytorch && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytorch>0:ai/py-pytorch

Dependencies

As this port's Makefile names them.

Build 6

Library 8

Runtime 11

Build dependencies 14
Run dependencies 18

Configuration

No options to configure.

USES
compiler:c++17-lang localbase:ldflags python llvm:max=15
Service scripts
none

Files

distinfo 2
FileSizeSHA256
pytorch/pytorch-v2.7.0.tar.gz2.85987092e+08ecca266fa2de4235a9fd5a18a33299a9de55ab3babb87f8c297c1c9ab8d436bd
pytorch/pytorch-cpuinfo-1e83a2f_GH0.tar.gz3.541839e+06b8945cf45d4f13054d7f52e8bd9314690ea840d4d0ff21febd95ff04de3c613e
Master sites 1
  • https://github.com/pytorch/pytorch/releases/download/v2.7.0/

Commit history 1

DateCommitCreditsLog message
dee1e47e52 Lucas Holt ai: add new category and move AI/ML ports from misc
Create the ai category (Artificial intelligence and machine learning) and relocate 42 AI/ML ports from misc into it. - Register ai in Mk/bsd.mport.mk VALID_CATEGORIES and the top-level Makefile - Add ai/Makefile; drop the moved entries from misc/Makefile (also removes the stale linux-claude SUBDIR left over from the claude-code rename) - git mv 42 ports and set their primary CATEGORIES to ai - Rewrite misc/<port> dependency origins to ai/<port> in external dependents (devel/py-beartype, math/py-faiss, multimedia/py-torchcodec, textproc/py-tokenizers) and among the moved ports themselves - Record the origin migrations in MOVED Ports moved: chatgpt-shell-cli, claude-code, claude-code-legacy, clawhub, codex, gemini-cli, github-copilot-cli, grok-cli, lean-ctx, llama-cpp, ollama, …