HyperGAN documentation
Start with the README for installation and the CLI tour, and the glossary for terms. Pages below are grouped by who they are for.
User guide#
Writing a model file, preparing data, training, watching and recovering runs.
- Configuration: every table and field of a
hypergan-model/1model file. - Python API Reference: full reference for
hypergan.api, typed dataclasses, and non-blocking execution. - HNDL Architecture Reference: syntax, operators and configuration of neural networks in HNDL.
- Train on your own images: image folders, alpha compositing, and dataset checks.
- Custom PyTorch modules & datasets: integrating custom modules, losses, and datasets.
- Particle LoRAs and frozen-model hosts: routed shared banks, training ownership, checkpoints and inference.
- Deploying exported models: standalone bundles, ONNX, and inference serving with LoadedGenerator.
- Image-folder data: image folders, preprocessing and dataset checks.
- Image previews and samples: preview grids during training and
hypergan sample. - Image FID evaluation: the pinned FID protocol and its
fidextra. - Web Observatory:
hypergan view, the dashboard, authentication and the REST/SSE API. - Observe a run and request a checkpoint: events, progress and on-demand checkpoints.
- Recover training runs: checkpoints, resume and compatibility rules.
- Native CUDA training: single-GPU training and the CUDA test gate.
- Public execution profiles and execution profiles and preflight: running on several devices.
- Multi-GPU readiness before a paid run: local gates, larger GPU counts, transport settings and cloud recovery limits.
- Bounded scaling benchmark: fixed-batch or weak-scaling measurements locally and on Modal, with resource estimates and rank evidence.
- Container profile: building and running the Docker image.
- AMD ROCm readiness: ROCm support status and the preflight script; no ROCm hardware run backs it yet.
- Migrating from historical HyperGAN: legacy configurations and checkpoints.
Recipes#
Measured, production, or exploratory model recipes under examples/ (canonical runnable set) and examples/archive/ (historical research ablations).
- CIFAR with a frozen pretrained critic: the first measured image recipe.
- CIFAR tiny transformer with a feature-only critic
- Tiny transformer generator at 128px
- 128px logos with the CIFAR feature-only recipe
- Logo colorization
- RGB logo AE-GAN at 256×256
- Eight-color words
- Simple StyleTransformer at 128px
- TransGAN 128px with the section 3.4 recipe and its comparison with the official TransGAN implementation
- Image recipe numerical controls: trainable and frozen components, and the numerical settings the image recipes share.
Internals#
Contracts for contributors working on the engine, distributed execution and storage.
- ParticleGAN integration: the boundary between ParticleGAN and HyperGAN.
- Native HNDL integration: the HNDL operators the image recipes need.
- Shared training lifecycle
- Foldlite DB integration: event storage and shared reducers.
- Event maps and file-backed views: how metric events become viewer series.
- Distributed numerical groundwork, fixed-topology CPU recovery and CPU gradient accumulation
- Local CPU worker supervision and persistent CPU worker commands
- Replicated run service, replicated CUDA training and bounded observation for replicated runs
- Local two-GPU NCCL readiness
- CI and PyPI releases
- Versioned API docs and assets on S3
The test layout and how to run each tier are in tests/README.md. Dated design notes and experiment reports are in reports/, with older ones under reports/archive/.