File size: 5,249 Bytes
17c17fe 37ce357 17c17fe 60fc423 a09e3b2 5ba1de3 a09e3b2 17c17fe a09e3b2 a42fa1b a09e3b2 a42fa1b a09e3b2 a42fa1b a09e3b2 a42fa1b a09e3b2 17c17fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
---
license: mit
language:
- en
- ar
tags:
- rocm
- amd
- gpu
- build-environment
- pytorch
- custom-build
- deep-learning
- machine-learning
- llm-enigneering
- arabic
- multilingual
- bilingual
---
# 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**
```bash
source ~/rocm_env/bin/activate
```
2. **Navigate to the project folder**
```bash
cd fame-pytorch-kit/
```
3. **Build PyTorch**
```bash
bash build_torch.sh
```
The generated `.whl` file will be located in `pytorch/dist/`.
---
## 📦 Install Instructions
### Quick Install
```bash
bash install_torch.sh
```
### Manual Install
```bash
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
bash test_torch.sh
```
Or manually:
```bash
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](https://github.com/sbeierle) with 🛡️ Courage, 🔥 Fire, and 🚀 Fame.
---
# Built with Fire. Built with Fame. 🛡️🔥
---
# Fame PyTorch ROCm Kit 🔥
مُصمم بشجاعة. مُصمم ببراعة. مُصمم بشغف.
---
## 🚀 حول
يوفر هذا المشروع مجموعة بناء كاملة ومنظمة لتجميع نسخة PyTorch ROCm عاملة على وحدات معالجة الرسومات AMD - دون عناء استخدام وحدات ROCm أو HIP أو OpenMP أو Git الفرعية.
ستجد كل ما تحتاجه لبناء PyTorch وتثبيته واختباره من المصدر، مع إنشاء حزمة `.whl` صالحة لجهازك المحلي.
---
## 📋 هيكل المشروع
| ملف/مجلد | الغرض |
|:-----------|:--------|
| `build_torch.sh` | سكربت لبناء PyTorch من المصدر |
| `install_torch.sh` | سكربت تثبيت ملف Wheel المُولّد |
| `test_torch.sh` | سكربت لاختبار استيراد PyTorch وحالة ROCm |
| `fame_torch_freeze.txt` | تجميد البيئة (إصدارات الحزمة) |
| `pytorch-wheel/` | (اختياري) المجلد الذي يحتوي على ملف `.whl` |
| `MY_WHEELI_NOTES.md` | ملاحظات متعلقة ببناء Wheel |
| `PyTorch_ROCm_Build_Notes.md` | ملاحظات بناء ROCm الموسعة |
| `README.md` | هذه الوثيقة - الخطة الرئيسية لـ Fame |
---
## 🛠️ تعليمات البناء
1. **تفعيل بيئة ROCm**
```bash
source ~/rocm_env/bin/activate
```
2. **انتقل إلى مجلد المشروع**
```bash
cd fame-pytorch-kit/
```
3. **بناء PyTorch**
```bash
bash build_torch.sh
```
سيكون ملف `.whl` المُنشأ موجودًا في `pytorch/dist/`.
---
## 📦 تعليمات التثبيت
### تثبيت سريع
```bash
bash install_torch.sh
```
### تثبيت يدوي
```bash
cd pytorch/dist/
pip install torch-2.8.0a0+gitc402b3b-cp312-cp312-linux_x86_64.whl
```
تأكد من تفعيل بيئة بايثون (venv) لديك!
---
## ✅ تعليمات الاختبار
```bash
bash test_torch.sh
```
أو يدويًا:
```bash
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)"
```
المتوقع: `True`، اسم وحدة معالجة الرسومات، سلسلة إصدار HIP.
---
## 📜 الترخيص
هذا المشروع مرخص بموجب ترخيص معهد ماساتشوستس للتكنولوجيا (MIT).
---
## 🤝 شكر وتقدير
مجموعة الشهرة مصممة بفخر من قِبل [sbeierle](https://github.com/sbeierle) بشجاعة 🛡️، وحماس 🔥، وشهرة 🚀.
---
# صُنعت بالنار. صُنعت بالشهرة. 🛡️🔥
# Fame PyTorch ROCm Kit 🔥
|