# HyperGAN > HyperGAN 2.2.0: Declarative generative model training, live WebAssembly observation, and standalone export in PyTorch, HNDL, and ParticleGAN. HyperGAN is a production-grade framework for training, inspecting, and deploying generative models. It combines declarative `format = "hypergan-model/1"` TOML model files, HNDL (`0.12.0`) neural network graphs, ParticleGAN (`0.12.0`, `unified_v12`) optimization with multi-critic coupled thermal coordination, single-host NCCL and experimental multi-node execution, a Foldlite DB (`0.5.0`) WebAssembly Web Observatory, a lazy-loaded typed Python API (`129` public symbols), and standalone generator export (`bundle`, `pt2`, `onnx`, `safetensors`). ## Canonical Documentation Site - [Documentation Home](https://hypergan.github.io/HyperGAN/): Overview, installation, measured highlights, and guides. - [Quickstart](https://hypergan.github.io/HyperGAN/quickstart/): Install, scaffold with `hypergan new`, validate, train, and observe. - [Examples Gallery](https://hypergan.github.io/HyperGAN/examples/): Packaged wheel recipes (`gaussian-grid`, `image-folder-128`, `colorization-128`, `cifar10-tiny-transformer`, `cifar10-transgan`), starter templates, TOML configs, Python API scripts, HNDL networks, and execution profiles. - [Python API Reference](https://hypergan.github.io/HyperGAN/reference/api/): Auto-generated reference for all 129 PEP 561 typed symbols in `hypergan.__all__`. - [CLI Reference](https://hypergan.github.io/HyperGAN/reference/cli/): Auto-generated command, subcommand, and flag reference from `hypergan.cli._parser()`. - [TOML Schema Reference](https://hypergan.github.io/HyperGAN/reference/schema/): Auto-generated `hypergan-model/1` schema (18 sections, 111 fields). - [HNDL Operators Reference](https://hypergan.github.io/HyperGAN/reference/ops/): Auto-generated catalog of all 85 HNDL operators across 12 categories. ## System Architecture - **Model Specification (`hypergan-model/1`)**: Declarative TOML describing data providers, latent priors, HNDL or Python networks, multi-critic adversarial/prior/reconstruction/objective losses, training schedules, retention policies, and snapshot evaluations. - **HNDL (`0.12.0`, HyperGAN Network Description Language)**: Declarative architecture DSL compiling to `torch.nn.Module` graphs with static symbolic shape inference, parameter sharing, pretrained foundation backbones (`pretrained`), and 85 built-in and augmentation operators across 12 categories. - **ParticleGAN (`0.12.0`, `unified_v12`)**: Energy-optimal Unified 4-Law learned particle prior optimization with `coupled_max` multi-critic thermal coordination (`MultiCriticThermalCoordinator`), dual-safe `fwAD` softmax critic penalties (`DualSafeSoftmaxMode`), and full-graph composite generator probing. - **Foldlite DB (`0.5.0`) & Web Observatory**: Append-only event journals, `.fold` projection views, and a shared Rust/WebAssembly streaming reducer powering the local dashboard (`hypergan view`, default `127.0.0.1:8765`), grouped learning-curve rail, retained EMA preview sliders, snapshot evaluation charts, and layer-by-layer Model inspection. - **Distributed Engine & Unified Checkpoints**: Single-host multi-GPU NCCL replicated training (`--devices 0,1`, measured `2.20×` scaling on 2× RTX A6000 at global batch 256) and experimental multi-node DDP/DiLoCo execution with unified `schema_version = 2` checkpoints (`state.pt` + per-rank RNG/sampler shards). - **Standalone Export (`hypergan export`)**: Privacy-clean EMA generator exports in `bundle` (`.pt`), PyTorch `pt2`, `onnx`, and `safetensors`, plus `hg.load_bundle()` (`LoadedGenerator`) for sampling and latent interpolation. ## Primary Interfaces - `hypergan` (`import hypergan as hg`): Lazy-loaded top-level Python API exposing 129 typed symbols (`new`, `load`, `override`, `validate`, `train`, `resume`, `ps`, `list_runs`, `status`, `logs`, `inspect`, `read_run_info`, `tag`, `sample`, `evaluate`, `export`, `load_bundle`, `schema`, `ops`, `gc`, `rm`, and dataclasses such as `Model`, `Run`, `RunInfo`, `RunStatus`, `PsSnapshot`, `LoadedGenerator`). - `hypergan` CLI: - `hypergan new` / `hypergan recipes`: Project scaffolding, starter templates, and 5 packaged wheel recipes. - `hypergan validate` / `hypergan schema` / `hypergan ops`: Torch-free structural config validation and live schema/operator inspection (`--json` supported). - `hypergan train` / `hypergan resume`: Launch or continue single-device or multi-GPU training with optional supervised Web Observatory. - `hypergan ps` / `hypergan status` / `hypergan logs` / `hypergan inspect` / `hypergan model` / `hypergan tag`: Daemonless global run registry and live run management. - `hypergan checkpoint` / `hypergan stop` / `hypergan gc` / `hypergan rm`: Durable boundary checkpointing, graceful shutdown, and strict target-resolved cleanup. - `hypergan sample` / `hypergan evaluate` (`eval`) / `hypergan export`: EMA sampling, snapshot metrics (FID, color moments, diversity), and standalone generator export. - `hypergan runs` / `hypergan queue` / `hypergan view`: Side-by-side run comparison, multi-GPU job queue, and local Web Observatory server. ## Deep-Dive Guides - [Configuration Guide](https://github.com/HyperGAN/HyperGAN/blob/master/docs/configuration.md): Complete `hypergan-model/1` TOML and runtime guide. - [Python API Guide](https://github.com/HyperGAN/HyperGAN/blob/master/docs/python-api.md): End-to-end config-first Python API patterns. - [ParticleGAN Integration](https://github.com/HyperGAN/HyperGAN/blob/master/docs/particlegan.md): `unified_v12`, named presets, and multi-critic thermal coordination. - [HNDL Language Reference](https://github.com/HyperGAN/HyperGAN/blob/master/docs/hndl-reference.md): Grammar, shape inference, diagnostics, and 85-operator catalog. - [Web Observatory & Streaming API](https://github.com/HyperGAN/HyperGAN/blob/master/docs/local-web.md): Browser dashboard, auth, TLS proxy, and `/api/v1/*` REST/SSE routes. - [Deploying Exported Generators](https://github.com/HyperGAN/HyperGAN/blob/master/docs/deployment.md): Serving recipes for `bundle`, `pt2`, `onnx`, and `safetensors`. - [Distributed Training & Scaling](https://github.com/HyperGAN/HyperGAN/blob/master/docs/distributed.md): Multi-GPU NCCL, execution profiles, aggregation, and scaling measurements. - [Image Data & FID Evaluation](https://github.com/HyperGAN/HyperGAN/blob/master/docs/image-data.md): `ImageFolder`, alpha compositing, colorization, and snapshot FID evaluation. - [Glossary](https://github.com/HyperGAN/HyperGAN/blob/master/GLOSSARY.md) · [Changelog](https://github.com/HyperGAN/HyperGAN/blob/master/CHANGELOG.md)