--- license: apache-2.0 language: - ru - en tags: - code --- ### **Installation Guide for Musubi Tuner Prerequisites (Windows)** **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. This guide outlines the steps to install the necessary prerequisites for potentially running Musubi Tuner, based on the provided components and links. if you have any errors write in topic in my chat --> https://t.me/neuralchatik/9586. Else DM --> https://t.me/NeuroDonu **Prerequisites:** * Windows Operating System (Windows 10 or 11 specified) * NVIDIA GPU compatible with CUDA 12.8 * 7-Zip (or another tool capable of extracting `.7z` archives) **Step 1: Install CUDA Toolkit and Additional Components (TensorRT/cuDNN)** 1. **Download Base CUDA Toolkit:** * 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) * Select the options for Windows, x86_64, Version 11 (referring to Windows 11, should also work for 10), and `exe (local)`. * Download and run the installer, following the on-screen prompts for a standard installation. 2. **Download Additional Components:** * Navigate to this Hugging Face link: [CUDA_128.7z Download](https://huggingface.co/datasets/NeuroDonu/PortableSource/blob/main/CUDA_128.7z) * Download the `CUDA_128.7z` file (You might need to click "Download" or look for a download button/link on the page). 3. **Integrate Components:** * Open File Explorer and go to the CUDA installation directory, typically: ``` C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.8 ``` * Using 7-Zip, extract the contents of the downloaded `CUDA_128.7z` archive. * **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. **Step 2: Install Microsoft Visual C++ (MSVC)** 1. **Download Visual Studio Installer:** * Download the setup file from this link: [VisualStudioSetup.exe Download](https://huggingface.co/datasets/NeuroDonu/PortableVersions/blob/main/VisualStudioSetup.exe) 2. **Run Installer and Select Components:** * Run the downloaded `VisualStudioSetup.exe`. * In the "Workloads" tab, select **"Desktop development with C++"**. * 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: * MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest) * Windows 11 SDK (or the appropriate Windows 10 SDK if on Win10) * C++ CMake tools for Windows ![MSVC Workload](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/d3hFnWhZJer_gYebiv7k8.png) ![MSVC Components 1](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/wn9LjGigIGJ2Yrp_aaA-F.png) ![MSVC Components 2](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/1IfwdUXWrLP_PSVsPKj9z.png) * Click "Install" and wait for the process to complete. **Step 3: Set Up Build Environment and Install Python Packages** 1. **Open Developer Command Prompt:** * Go to your Windows Start Menu and search for "x64 Native Tools Command Prompt for VS 2022". * Right-click and select "Run as administrator". ![Native Tools Prompt](https://cdn-uploads.huggingface.co/production/uploads/64be12f15b8d826146e79b74/LVVuT_PjmtT6eIvxMixCH.png) 2. **Navigate to Your Project Directory:** * 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: ```bash cd /d "C:\path\to\your\portable\" ``` *(Replace `"C:\path\to\your\portable\"` with the actual path).* 3. **Install Triton:** * *(Assumption: You have a portable Python installation in a subdirectory named `python` within your current directory, and `uv` is available)*. * **If using Python 3.10:** ```bash 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 ``` * **If using Python 3.11:** ```bash 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 ``` 4. **Add Additional Python Files:** * 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). * Extract the contents of this zip file directly into your main portable Python directory (e.g., the directory containing `python.exe`). 5. **Install SageAttention:** * **If using Python 3.10:** ```bash python\python.exe -m uv pip install https://huggingface.co/datasets/NeuroDonu/PortableVersions/resolve/main/sageattention-2.1.1-cp310-cp310-win_amd64.whl ``` * **If using Python 3.11:** ```bash python\python.exe -m uv pip install https://huggingface.co/datasets/NeuroDonu/PortableVersions/resolve/main/sageattention-2.1.1-cp311-cp311-win_amd64.whl ``` **Step 4: Install Musubi Tuner (Next Steps)** * The instructions above cover the installation of the dependencies (CUDA, MSVC, Triton, SageAttention) as specified in your request. * **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.