NeuroDonu commited on
Commit
26cf8ae
·
verified ·
1 Parent(s): 5a23be3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +81 -70
README.md CHANGED
@@ -7,76 +7,87 @@ tags:
7
  - code
8
  ---
9
 
10
- Important Note: These instructions detail the installation of specific versions of CUDA, MSVC, Triton, and SageAttention using potentially unofficial builds hosted on Hugging Face. Proceed with caution and understand that these might not be the standard or officially supported methods. These steps cover the dependencies; the final step to install Musubi Tuner itself is not included here.
11
- Installation Guide for Musubi Tuner Prerequisites (Windows)
 
 
12
  This guide outlines the steps to install the necessary prerequisites for potentially running Musubi Tuner, based on the provided components and links.
13
- Prerequisites:
14
- Windows Operating System (Windows 10 or 11 specified)
15
- NVIDIA GPU compatible with CUDA 12.8
16
- 7-Zip (or another tool capable of extracting .7z archives)
17
- Step 1: Install CUDA Toolkit and Additional Components (TensorRT/cuDNN)
18
- Download Base CUDA Toolkit:
19
- Go to the NVIDIA CUDA Toolkit archive: CUDA 12.8.1 Download
20
- Select the options for Windows, x86_64, Version 11 (referring to Windows 11, should also work for 10), and exe (local).
21
- Download and run the installer, following the on-screen prompts for a standard installation.
22
- Download Additional Components:
23
- Navigate to this Hugging Face link: CUDA_128.7z Download
24
- Download the CUDA_128.7z file (You might need to click "Download" or look for a download button/link on the page).
25
- Integrate Components:
26
- Open File Explorer and go to the CUDA installation directory, typically:
27
- C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8
28
- Use code with caution.
29
- Using 7-Zip, extract the contents of the downloaded CUDA_128.7z archive.
30
- Merge the extracted files and folders into the C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8 directory. Overwrite files if prompted. This step adds the necessary TensorRT and cuDNN files according to the provided archive.
31
- Step 2: Install Microsoft Visual C++ (MSVC)
32
- Download Visual Studio Installer:
33
- Download the setup file from this link: VisualStudioSetup.exe Download
34
- Run Installer and Select Components:
35
- Run the downloaded VisualStudioSetup.exe.
36
- In the "Workloads" tab, select "Desktop development with C++".
37
- In the "Installation details" pane on the right, ensure the following (and potentially others shown in the images) are selected. Refer to the provided screenshots:
38
- MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)
39
- Windows 11 SDK (or the appropriate Windows 10 SDK if on Win10)
40
- C++ CMake tools for Windows
41
- ![alt text](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/d3hFnWhZJer_gYebiv7k8.png)
42
 
43
- ![alt text](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/wn9LjGigIGJ2Yrp_aaA-F.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
 
45
- ![alt text](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/1IfwdUXWrLP_PSVsPKj9z.png)
46
- Click "Install" and wait for the process to complete.
47
- Step 3: Set Up Build Environment and Install Python Packages
48
- Open Developer Command Prompt:
49
- Go to your Windows Start Menu and search for "x64 Native Tools Command Prompt for VS 2022".
50
- Right-click and select "Run as administrator".
51
- ![alt text](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/LVVuT_PjmtT6eIvxMixCH.png)
52
- Navigate to Your Project Directory:
53
- In the command prompt, use the cd command to change to the directory where your portable Python installation is located (your "portable dir"). For example:
54
- cd /d "C:\path\to\your\portable\python\env"
55
- Use code with caution.
56
- Bash
57
- (Replace "C:\path\to\your\portable\python\env" with the actual path).
58
- Install Triton:
59
- (Assumption: You have a portable Python installation in a subdirectory named python within your current directory, and uv is available).
60
- If using Python 3.10:
61
- python\python.exe -m uv pip install https://huggingface.co/madbuda/triton-windows-builds/resolve/main/triton-3.0.0-cp310-cp310-win_amd64.whl
62
- Use code with caution.
63
- Bash
64
- If using Python 3.11:
65
- python\python.exe -m uv pip install https://huggingface.co/madbuda/triton-windows-builds/resolve/main/triton-3.0.0-cp311-cp311-win_amd64.whl
66
- Use code with caution.
67
- Bash
68
- Add Additional Python Files:
69
- Download the specified zip file: python_3.11.9_comfy.zip Download (Click "Download" on the Hugging Face page).
70
- Extract the contents of this zip file directly into your main portable Python directory (e.g., the directory containing python.exe).
71
- Install SageAttention:
72
- If using Python 3.10:
73
- python\python.exe -m uv pip install https://huggingface.co/datasets/NeuroDonu/PortableVersions/resolve/main/sageattention-2.1.1-cp310-cp310-win_amd64.whl
74
- Use code with caution.
75
- Bash
76
- If using Python 3.11:
77
- python\python.exe -m uv pip install https://huggingface.co/datasets/NeuroDonu/PortableVersions/resolve/main/sageattention-2.1.1-cp311-cp311-win_amd64.whl
78
- Use code with caution.
79
- Bash
80
- Step 4: Install Musubi Tuner (Next Steps)
81
- The instructions above cover the installation of the dependencies (CUDA, MSVC, Triton, SageAttention) as specified in your request.
82
- The actual command or method to install the "musubi tuner nightly build" itself is missing from the provided information. You will need to consult the documentation or source repository for Musubi Tuner to find the correct command for installing it after completing these prerequisite steps.
 
7
  - code
8
  ---
9
 
10
+ ### **Installation Guide for Musubi Tuner Prerequisites (Windows)**
11
+
12
+ **Important Note:** These instructions detail the installation of specific versions of CUDA, MSVC, Triton, and SageAttention using potentially unofficial builds hosted on Hugging Face. Proceed with caution and understand that these might not be the standard or officially supported methods. These steps cover the *dependencies*; the final step to install Musubi Tuner itself is not included here.
13
+
14
  This guide outlines the steps to install the necessary prerequisites for potentially running Musubi Tuner, based on the provided components and links.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
+ **Prerequisites:**
17
+
18
+ * Windows Operating System (Windows 10 or 11 specified)
19
+ * NVIDIA GPU compatible with CUDA 12.8
20
+ * 7-Zip (or another tool capable of extracting `.7z` archives)
21
+
22
+ **Step 1: Install CUDA Toolkit and Additional Components (TensorRT/cuDNN)**
23
+
24
+ 1. **Download Base CUDA Toolkit:**
25
+ * Go to the NVIDIA CUDA Toolkit archive: [CUDA 12.8.1 Download](https://developer.nvidia.com/cuda-12-8-1-download-archive?target_os=Windows&target_arch=x86_64&target_version=11&target_type=exe_local)
26
+ * Select the options for Windows, x86_64, Version 11 (referring to Windows 11, should also work for 10), and `exe (local)`.
27
+ * Download and run the installer, following the on-screen prompts for a standard installation.
28
+ 2. **Download Additional Components:**
29
+ * Navigate to this Hugging Face link: [CUDA_128.7z Download](https://huggingface.co/datasets/NeuroDonu/PortableSource/blob/main/CUDA_128.7z)
30
+ * Download the `CUDA_128.7z` file (You might need to click "Download" or look for a download button/link on the page).
31
+ 3. **Integrate Components:**
32
+ * Open File Explorer and go to the CUDA installation directory, typically:
33
+ ```
34
+ C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8
35
+ ```
36
+ * Using 7-Zip, extract the contents of the downloaded `CUDA_128.7z` archive.
37
+ * **Merge** the extracted files and folders into the `C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8` directory. Overwrite files if prompted. This step adds the necessary TensorRT and cuDNN files according to the provided archive.
38
+
39
+ **Step 2: Install Microsoft Visual C++ (MSVC)**
40
+
41
+ 1. **Download Visual Studio Installer:**
42
+ * Download the setup file from this link: [VisualStudioSetup.exe Download](https://huggingface.co/datasets/NeuroDonu/PortableVersions/blob/main/VisualStudioSetup.exe)
43
+ 2. **Run Installer and Select Components:**
44
+ * Run the downloaded `VisualStudioSetup.exe`.
45
+ * In the "Workloads" tab, select **"Desktop development with C++"**.
46
+ * In the "Installation details" pane on the right, ensure the following (and potentially others shown in the images) are selected. Refer to the provided screenshots:
47
+ * MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)
48
+ * Windows 11 SDK (or the appropriate Windows 10 SDK if on Win10)
49
+ * C++ CMake tools for Windows
50
+ ![MSVC Workload](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/d3hFnWhZJer_gYebiv7k8.png)
51
+ ![MSVC Components 1](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/wn9LjGigIGJ2Yrp_aaA-F.png)
52
+ ![MSVC Components 2](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/1IfwdUXWrLP_PSVsPKj9z.png)
53
+ * Click "Install" and wait for the process to complete.
54
+
55
+ **Step 3: Set Up Build Environment and Install Python Packages**
56
+
57
+ 1. **Open Developer Command Prompt:**
58
+ * Go to your Windows Start Menu and search for "x64 Native Tools Command Prompt for VS 2022".
59
+ * Right-click and select "Run as administrator".
60
+ ![Native Tools Prompt](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/LVVuT_PjmtT6eIvxMixCH.png)
61
+ 2. **Navigate to Your Project Directory:**
62
+ * In the command prompt, use the `cd` command to change to the directory where your portable Python installation is located (your "portable dir"). For example:
63
+ ```bash
64
+ cd /d "C:\path\to\your\portable\python\env"
65
+ ```
66
+ *(Replace `"C:\path\to\your\portable\python\env"` with the actual path).*
67
+ 3. **Install Triton:**
68
+ * *(Assumption: You have a portable Python installation in a subdirectory named `python` within your current directory, and `uv` is available)*.
69
+ * **If using Python 3.10:**
70
+ ```bash
71
+ python\python.exe -m uv pip install https://huggingface.co/madbuda/triton-windows-builds/resolve/main/triton-3.0.0-cp310-cp310-win_amd64.whl
72
+ ```
73
+ * **If using Python 3.11:**
74
+ ```bash
75
+ python\python.exe -m uv pip install https://huggingface.co/madbuda/triton-windows-builds/resolve/main/triton-3.0.0-cp311-cp311-win_amd64.whl
76
+ ```
77
+ 4. **Add Additional Python Files:**
78
+ * Download the specified zip file: [python_3.11.9_comfy.zip Download](https://huggingface.co/madbuda/triton-windows-builds/blob/main/python_3.11.9_comfy.zip) (Click "Download" on the Hugging Face page).
79
+ * Extract the contents of this zip file directly into your main portable Python directory (e.g., the directory containing `python.exe`).
80
+ 5. **Install SageAttention:**
81
+ * **If using Python 3.10:**
82
+ ```bash
83
+ python\python.exe -m uv pip install https://huggingface.co/datasets/NeuroDonu/PortableVersions/resolve/main/sageattention-2.1.1-cp310-cp310-win_amd64.whl
84
+ ```
85
+ * **If using Python 3.11:**
86
+ ```bash
87
+ python\python.exe -m uv pip install https://huggingface.co/datasets/NeuroDonu/PortableVersions/resolve/main/sageattention-2.1.1-cp311-cp311-win_amd64.whl
88
+ ```
89
+
90
+ **Step 4: Install Musubi Tuner (Next Steps)**
91
 
92
+ * The instructions above cover the installation of the dependencies (CUDA, MSVC, Triton, SageAttention) as specified in your request.
93
+ * **The actual command or method to install the "musubi tuner nightly build" itself is missing from the provided information.** You will need to consult the documentation or source repository for Musubi Tuner to find the correct command for installing it after completing these prerequisite steps.