5.4 KiB
5.4 KiB
Windows Dependency Installer for LLM_Train
This dependency installer helps you automatically install common software packages required for LLM_Train on Windows using the Chocolatey package manager.
Quick Start
Option 1: Batch File (Recommended)
- Double-click
install_dependencies.bat - Grant administrator permissions when prompted
- Select packages to install in the GUI
Option 2: PowerShell Script
- Right-click
install_dependencies.ps1→ "Run with PowerShell" - Grant administrator permissions when prompted
- Select packages to install in the GUI
Option 3: Direct Python Execution
# Run as administrator
python windows_dependency_installer.py
What Gets Installed
Essential Packages (Auto-selected)
- Git - Version control system (required for repository cloning)
- Python 3 - Python programming language (if not already installed)
- 7-Zip - File archiver for extracting downloads
- Visual C++ Redistributables - Microsoft runtime libraries
Development Tools
- Visual Studio Code - Advanced code editor with Python support
- Notepad++ - Enhanced text editor
GPU Acceleration
- CUDA Toolkit - NVIDIA CUDA development toolkit for GPU acceleration
- NVIDIA Display Driver - Latest NVIDIA graphics drivers
System Utilities
- Wget - Command-line downloader
- cURL - Data transfer tool
- PowerToys - Windows system utilities
Runtimes
- .NET Runtime - Microsoft .NET framework
Optional Tools
- WinRAR - Alternative file archiver
- Firefox - Web browser
- VLC Media Player - Media player
System Requirements
- Windows 10/11 (Windows 8.1 may work but is not tested)
- Administrator privileges (required for Chocolatey and package installation)
- Internet connection (for downloading packages)
- Python 3.7+ (for running the installer GUI)
Features
Chocolatey Integration
- Automatically installs Chocolatey if not present
- Uses Chocolatey's robust package management
- Handles dependencies automatically
Smart Package Selection
- Select Essential - Chooses only required packages
- Select All - Selects all available packages
- Custom Selection - Pick individual packages
Installation Monitoring
- Real-time installation log
- Progress tracking
- Success/failure reporting
- Package status checking
System Status Checks
- Administrator privilege detection
- Chocolatey installation status
- Individual package installation status
Troubleshooting
"Python not found" Error
- Install Python from https://python.org/downloads/
- During installation, check "Add Python to PATH"
- Restart your command prompt/PowerShell
"Administrator privileges required" Error
- Right-click the batch file → "Run as administrator"
- Or open Command Prompt as administrator and run manually
"Chocolatey installation failed" Error
- Ensure you're running as administrator
- Check your internet connection
- Temporarily disable antivirus software during installation
- Check Windows execution policy:
Set-ExecutionPolicy RemoteSigned
Package Installation Failures
- Check the installation log for specific error messages
- Try installing packages individually
- Ensure sufficient disk space
- Check for conflicting software
Network/Firewall Issues
- Ensure Chocolatey URLs are not blocked:
- Configure proxy settings if behind corporate firewall
- Temporarily disable firewall/antivirus
Manual Installation
If the automatic installer fails, you can install Chocolatey manually:
- Open PowerShell as Administrator
- Run:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) - Then install packages manually:
choco install git python 7zip vcredist-all -y choco install cuda nvidia-display-driver -y # For GPU support
Package Descriptions
Why Each Package?
- Git: Required for cloning model repositories and version control
- Python: Core runtime for LLM_Train (if system Python is outdated)
- 7-Zip: Many model files are compressed and need extraction
- Visual C++ Redistributables: Required by many Python packages and binaries
- CUDA Toolkit: Enables GPU acceleration for faster model inference
- NVIDIA Drivers: Latest drivers for optimal GPU performance
- Visual Studio Code: Best IDE for Python development and debugging
- Wget/cURL: Alternative download tools for model files
- PowerToys: Useful Windows utilities for power users
Security Notes
- All packages are installed from official Chocolatey community repository
- Chocolatey packages are maintained by the community and Microsoft
- Administrator privileges are required only for system-wide installation
- No personal data is collected or transmitted
Support
If you encounter issues:
- Check the installation log for error messages
- Search for the specific error on Chocolatey community forums
- Try installing individual packages manually
- Ensure your Windows is up to date
License
This installer uses Chocolatey (Apache 2.0 License) and installs various packages with their respective licenses. Please review individual package licenses as needed.