Getting Started with PyTorch on Fedora 42
PyTorch is an open-source machine learning framework developed by Meta AI.
It provides dynamic computational graphs and automatic differentiation, making it highly flexible and popular in both academia and industry.
At its core, the torch
module in PyTorch offers powerful tensor computation, similar to NumPy, but with GPU acceleration.
With Fedora 42, PyTorch is now available directly through the system package manager, making installation and updates seamless for users.
PyTorch is officially available only on Fedora 42 and above via the system repositories. Installing on earlier Fedora versions using |
Installation
You can install PyTorch using the Fedora package manager:
sudo dnf install python3-torch
This installs the core torch
package and dependencies required to start developing with PyTorch.
Basic Usage
Feedback
If you encounter issues or have suggestions for the Fedora package, file a bug at https://bugzilla.redhat.com or join the Fedora AI SIG.
Want to help? Learn how to contribute to Fedora Docs ›