This repository provides a fully containerized development workflow for PyTorch in Fedora, complete with useful tooling and pre-configurations.
-
Git Configuration
Ensure you have a global Git configuration. If not, run the following commands:git config --global user.name "Your Name" git config --global user.email "your-email@example.com"
-
Install Podman If you are using Fedorda at Red Hat, it should be preinstalled.
-
Install VSCode
-
Install vscode extensions Install the following extensions: dev containers.
-
Set docker path for VSCode Add "dev.containers.dockerPath": "podman" to the settings.json file in your User VSCode settings. Default location is at ~/.config/Code/User/settings.json.
-
Fork PyTorch to Your GitHub Go to github.com/pytorch/pytorch In the top-right corner (between Notifications and Star), click Fork GitHub will create a copy of the repository under your GitHub account
-
Clone your forked Repo From within this project directory run: git clone git@github.com:username/pytorch.git
- Reopen Repostitory in Container This will trigger a build if it is the first time. For more details see devcontainer
- Run Build Script From the terminal run: ./scripts/build_pytorch.sh
For custom vscode configuration, update devcontainer.json.