Welcome to HyperGen
HyperGen is an optimized inference and fine-tuning framework for diffusion models. Train LoRAs 3x faster with 80% less VRAM, or serve models with an OpenAI-compatible API.Installation
1
Install HyperGen
Install HyperGen via pip:For GPU support, make sure you have PyTorch with CUDA installed:
2
Verify Installation
Check that HyperGen is installed correctly:
Your First LoRA Training
Train a LoRA in just 5 lines of code:1
Prepare Your Dataset
Create a folder with your training images:
Caption files (
.txt) are optional but recommended for better results. Just place a text file with the same name as each image.2
Train the LoRA
Create a Python file and run:
3
Generate Images
Use your trained model to generate images:
Serving a Model
Serve any diffusion model with an OpenAI-compatible API:1
Start the Server
http://localhost:80002
Generate Images via API
Use the OpenAI Python client:
Advanced Configuration
Customize your training with additional parameters:GPU Requirements
Minimum
- 8GB VRAM (NVIDIA GPU)
- CUDA 11.8+
- For SDXL/SD 1.5 models
Recommended
- 16GB+ VRAM
- CUDA 12.1+
- For FLUX.1 and larger models
Next Steps
Installation
Detailed installation guide with all options
Training Guide
Complete LoRA training documentation
Serving Guide
Production deployment and API usage
Supported Models
All compatible model architectures