Skip to main content

System Requirements

Python Version

Python 3.10 or higher

GPU (Recommended)

NVIDIA GPU with CUDA 11.8+

VRAM Requirements

Minimum 8GB, Recommended 16GB+

Operating System

Linux, macOS, or Windows

Installation Methods

The simplest way to install HyperGen:
This will install HyperGen and all required dependencies.

Install from Source

For the latest development version or to contribute:
1

Clone the repository

2

Install in editable mode

The -e flag installs in editable mode, so changes to the source code are reflected immediately.

Install with uv (Faster)

For faster installation using uv:
Or from source:

GPU Setup

CUDA Installation

HyperGen requires PyTorch with CUDA support for GPU acceleration.

Verify GPU Setup

Check that PyTorch can access your GPU:
Expected output:

Dependencies

HyperGen automatically installs the following core dependencies:

Optional Dependencies

For faster training and inference with attention optimization:
Or manually:
Flash Attention requires CUDA and may take several minutes to compile on first installation.

xFormers (Alternative Optimization)

Alternative memory-efficient attention implementation:
Or manually:

DeepSpeed (Multi-GPU Training)

For distributed training across multiple GPUs:
Or manually:

Video Models Support

For CogVideoX and other video diffusion models:
Or manually:

All Optional Dependencies

Install everything at once:
This will install all optional dependencies, which may take significant time and disk space.

Development Installation

For contributing to HyperGen:
This includes:
  • pytest - Testing framework
  • pytest-cov - Coverage reporting
  • ruff - Linting and formatting

Troubleshooting

CUDA Out of Memory

If you encounter CUDA out of memory errors:
  1. Reduce batch size:
  2. Enable gradient checkpointing (coming in Phase 2)
  3. Use a smaller model or lower precision:

Installation Fails on Flash Attention

Flash Attention requires specific CUDA versions and compilation:
  1. Ensure you have CUDA 11.8 or 12.1 installed
  2. Install build tools:
  3. Skip Flash Attention for now:

Import Errors

If you get import errors after installation:
  1. Verify installation:
  2. Reinstall in a clean environment:

macOS Metal (MPS) Support

For Apple Silicon Macs:
MPS support is experimental. Some features may not work as expected.

Verifying Installation

Test your installation with a quick script:

Next Steps

Quick Start

Train your first LoRA in 5 minutes

Training Guide

Learn about LoRA training parameters

Serving Guide

Deploy a model with the API server

Supported Models

See which models are compatible