Installation¶
This guide will help you install PettingLLMs and its dependencies.
Prerequisites¶
Before installing PettingLLMs, ensure you have:
- Python 3.8+
- CUDA 11.8+ (for GPU support)
- Git
Quick Installation¶
The easiest way to install PettingLLMs is using the provided setup script:
This script will:
- Create a virtual environment
- Install all required dependencies
- Set up the PettingLLMs package in development mode
Manual Installation¶
If you prefer to install manually, follow these steps:
1. Clone the Repository¶
2. Create Virtual Environment¶
python -m venv pettingllms_venv
source pettingllms_venv/bin/activate # On Linux/Mac
# or
pettingllms_venv\Scripts\activate # On Windows
3. Install Dependencies¶
For CUDA 12.8:
For other CUDA versions:
4. Install PettingLLMs¶
Verify Installation¶
To verify that PettingLLMs is installed correctly:
Docker Installation (Optional)¶
If you prefer using Docker, you can build a container with all dependencies:
Troubleshooting¶
CUDA Issues¶
If you encounter CUDA-related errors:
- Check your CUDA version:
nvcc --version - Install the appropriate PyTorch version for your CUDA
- Verify GPU is accessible:
python -c "import torch; print(torch.cuda.is_available())"
Import Errors¶
If you get import errors:
- Ensure the virtual environment is activated
- Reinstall the package:
pip install -e . - Check Python version compatibility
Dependency Conflicts¶
If you encounter dependency conflicts:
- Try creating a fresh virtual environment
- Update pip:
pip install --upgrade pip - Install dependencies one at a time to identify conflicts
Next Steps¶
Once installation is complete, proceed to the Quick Start Guide to run your first training session.