Skip to content

sbeierle/fame-pytorch-kit

Repository files navigation

Fame PyTorch ROCm Kit πŸ”₯

Built with Courage. Built with Fire. Built with FAME.


πŸš€ About

This project provides a complete and clean build kit for compiling a working PyTorch ROCm version on AMD GPUs – without the usual headaches involving ROCm, HIP, OpenMP, or Git submodules.

You will find everything needed to build, install, and test PyTorch from source, generating a valid .whl package for your local machine.


πŸ“‹ Project Structure

File/Folder Purpose
build_torch.sh Script to build PyTorch from source
install_torch.sh Script to install the generated Wheel file
test_torch.sh Script to test PyTorch import and ROCm status
fame_torch_freeze.txt Environment freeze (package versions)
pytorch-wheel/ (Optional) Folder containing the .whl file
MY_WHEELI_NOTES.md Notes related to the Wheel build
PyTorch_ROCm_Build_Notes.md Extended ROCm build notes
README.md This document – the Fame Masterplan

πŸ› οΈ Build Instructions

  1. Activate your ROCm environment
source ~/rocm_env/bin/activate
  1. Navigate to the project folder
cd fame-pytorch-kit/
  1. Build PyTorch
bash build_torch.sh

The generated .whl file will be located in pytorch/dist/.


πŸ“¦ Install Instructions

⚠️ Important Note: This installation step compiles and installs a full ROCm-enabled PyTorch build. Please ensure that the install_torch.sh script is used, as it includes all necessary flags:

USE_ROCM=1

CMAKE_ARGS="-DROCM_ARCH=gfx1100"

and proper ROCM/HIP paths via LD_LIBRARY_PATH, PATH, etc.

πŸ” If you skip this and install a .whl built only via build_torch.sh, you'll get a CPU-only PyTorch build. (Which is also valid – and a great first success. ROCm is optional and modular.)

Quick Install

bash install_torch.sh

Manual Install

cd pytorch/dist/
pip install torch-2.8.0a0+gitc402b3b-cp312-cp312-linux_x86_64.whl

Make sure your Python environment (venv) is activated!


βœ… Test Instructions

bash test_torch.sh

Or manually:

python -c "import torch; print(torch.cuda.is_available())"
python -c "import torch; print(torch.cuda.get_device_name(0))"
python -c "import torch; print(torch.version.hip)"

Expected: True, GPU Name, HIP version string.


πŸ“œ License

This project is licensed under the MIT License.


🀝 Credits

Fame Kit proudly built by sbeierle with πŸ›‘οΈ Courage, πŸ”₯ Fire, and πŸš€ Fame.


Built with Fire. Built with Fame. πŸ›‘οΈπŸ”₯

=======

fame-pytorch-kit

About

Custom-built PyTorch ROCm Kit for AMD GPUs – compile, install, and test with full control. πŸ”₯

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages