Update README.md
Browse files
README.md
CHANGED
@@ -1,21 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Fame PyTorch ROCm Kit 🔥🛡️
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
---
|
7 |
|
8 |
-
##
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
---
|
16 |
|
17 |
-
##
|
|
|
|
|
|
|
|
|
18 |
|
19 |
-
|
20 |
-
```bash
|
21 |
-
source ~/rocm_env/bin/activate
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
- ar
|
6 |
+
tags:
|
7 |
+
- rocm
|
8 |
+
- amd
|
9 |
+
- gpu
|
10 |
+
- build-environment
|
11 |
+
- pytorch
|
12 |
+
- custom-build
|
13 |
+
- deep-learning
|
14 |
+
- machine-learning
|
15 |
+
- llm-enigneering
|
16 |
+
- arabic
|
17 |
+
- multilingual
|
18 |
+
- bilingual
|
19 |
+
---
|
20 |
# Fame PyTorch ROCm Kit 🔥🛡️
|
21 |
|
22 |
+
Built with Courage. Built with Fire. Built with Fame.
|
23 |
+
|
24 |
+
---
|
25 |
+
|
26 |
+
## 🚀 About
|
27 |
+
|
28 |
+
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.
|
29 |
+
|
30 |
+
You will find everything needed to build, install, and test PyTorch from source, generating a valid `.whl` package for your local machine.
|
31 |
+
|
32 |
+
---
|
33 |
+
|
34 |
+
## 📋 Project Structure
|
35 |
+
|
36 |
+
| File/Folder | Purpose |
|
37 |
+
|:------------|:--------|
|
38 |
+
| `build_torch.sh` | Script to build PyTorch from source |
|
39 |
+
| `install_torch.sh` | Script to install the generated Wheel file |
|
40 |
+
| `test_torch.sh` | Script to test PyTorch import and ROCm status |
|
41 |
+
| `fame_torch_freeze.txt` | Environment freeze (package versions) |
|
42 |
+
| `pytorch-wheel/` | (Optional) Folder containing the `.whl` file |
|
43 |
+
| `MY_WHEELI_NOTES.md` | Notes related to the Wheel build |
|
44 |
+
| `PyTorch_ROCm_Build_Notes.md` | Extended ROCm build notes |
|
45 |
+
| `README.md` | This document – the Fame Masterplan |
|
46 |
+
---
|
47 |
+
|
48 |
+
|
49 |
+
## 🛠️ Build Instructions
|
50 |
+
|
51 |
+
1. **Activate your ROCm environment**
|
52 |
+
|
53 |
+
```bash
|
54 |
+
source ~/rocm_env/bin/activate
|
55 |
+
```
|
56 |
+
|
57 |
+
2. **Navigate to the project folder**
|
58 |
+
|
59 |
+
```bash
|
60 |
+
cd fame-pytorch-kit/
|
61 |
+
```
|
62 |
+
|
63 |
+
3. **Build PyTorch**
|
64 |
+
|
65 |
+
```bash
|
66 |
+
bash build_torch.sh
|
67 |
+
```
|
68 |
+
|
69 |
+
The generated `.whl` file will be located in `pytorch/dist/`.
|
70 |
+
|
71 |
+
---
|
72 |
+
|
73 |
+
## 📦 Install Instructions
|
74 |
+
|
75 |
+
### Quick Install
|
76 |
+
|
77 |
+
```bash
|
78 |
+
bash install_torch.sh
|
79 |
+
```
|
80 |
+
|
81 |
+
### Manual Install
|
82 |
+
|
83 |
+
```bash
|
84 |
+
cd pytorch/dist/
|
85 |
+
pip install torch-2.8.0a0+gitc402b3b-cp312-cp312-linux_x86_64.whl
|
86 |
+
|
87 |
+
```
|
88 |
+
|
89 |
+
Make sure your Python environment (venv) is activated!
|
90 |
|
91 |
---
|
92 |
|
93 |
+
## ✅ Test Instructions
|
94 |
|
95 |
+
```bash
|
96 |
+
bash test_torch.sh
|
97 |
+
```
|
98 |
+
|
99 |
+
Or manually:
|
100 |
+
|
101 |
+
```bash
|
102 |
+
python -c "import torch; print(torch.cuda.is_available())"
|
103 |
+
python -c "import torch; print(torch.cuda.get_device_name(0))"
|
104 |
+
python -c "import torch; print(torch.version.hip)"
|
105 |
+
```
|
106 |
+
|
107 |
+
Expected: `True`, GPU Name, HIP version string.
|
108 |
+
|
109 |
+
---
|
110 |
+
|
111 |
+
## 📜 License
|
112 |
+
|
113 |
+
This project is licensed under the MIT License.
|
114 |
|
115 |
---
|
116 |
|
117 |
+
## 🤝 Credits
|
118 |
+
|
119 |
+
Fame Kit proudly built by [sbeierle](https://github.com/sbeierle) with 🛡️ Courage, 🔥 Fire, and 🚀 Fame.
|
120 |
+
|
121 |
+
---
|
122 |
|
123 |
+
# Built with Fire. Built with Fame. 🛡️🔥
|
|
|
|