Home
/
Reference
/
TOML Model Schema
No TOML schema sections or fields match your query.
Top-Level Fields
5 fields
Key
Type & Constraints
Default
Description
format
required
string
"hypergan-model/1"
Schema format identifier, must be 'hypergan-model/1'.
name
required
string
—
Unique model identifier or slug, e.g. 'cifar10-dcgan' or 'demo/gaussian-grid'.
description
string
""
Human-readable description of the model architecture and intended dataset.
defaults
string
particlegan particlegan:unified_v12 particlegan:unified_v11 particlegan:empf particlegan:bispf_optimized particlegan:rhbi_optimized hypergan
"particlegan"
Numerical formulation preset ('particlegan', 'particlegan:<preset>', or 'hypergan').
extends
string
—
Path or packaged model name this configuration inherits from.
Dataset provider configuration ([data] or alias [dataset]).
Field
Type & Allowed Values
Default
Description
builtin
string
gaussian_grid cifar10 paired_linear image_folder
—
Built-in dataset loader identifier.
factory
string
—
Custom Python batch generator callable in module:Class format.
dataset
string
—
Custom item-level Dataset class in module:Class format.
root
string
—
Root filesystem path to dataset directory.
width
integer
64
Target image width in pixels for image_folder.
height
integer
64
Target image height in pixels for image_folder.
channels
integer
3
Number of image color channels (1 for L, 3 for RGB).
mode
string
RGB L
"RGB"
Color mode for image_folder ('RGB' or 'L').
resize
string
center_crop pad stretch none
"center_crop"
Spatial resize policy for image_folder.
alpha
string
composite_white composite_black error
"composite_white"
Alpha compositing mode for RGBA/palette images.
follow_symlinks
boolean
false
Whether image_folder should traverse directory symlinks.
batch_size
integer
—
Global batch size per training step (alias for train.batch_size).
shuffle
boolean
true
Whether item-level datasets shuffle items each epoch.
workers
integer
0
Number of background worker threads for item-level datasets.
args
object
—
Optional subtable of constructor arguments passed to the dataset or factory.
Latent distribution or ParticleGAN learned particle table.
Field
Type & Allowed Values
Default
Description
kind
string
particles mog gaussian
"particles"
Prior distribution family (alias: 'type').
z_dim
integer
4
Dimensionality of latent code vector.
num_particles
integer
10000
Number of learned latent particles or mixture components.
init_std
number
1.0
Initial standard deviation for latent draws or particle centers.
fixed_sigma
number
—
Fixed isotropic Gaussian noise scale for 'mog' priors.
sigma_rel
number
0.025
Relative nearest-neighbor sigma calibration scale for 'mog' priors.
learnable
boolean
true
Whether particle centers are updated by the prior optimizer.
standardize
boolean
—
Whether to standardize learned 'mog' particle centers across rows.
initialization_seed
integer
—
Dedicated deterministic RNG seed for initializing the particle table.
initialization_device
string
execution cpu
"execution"
Device used to draw initial particle table ('execution' or 'cpu').
TOML
[networks.<name>]
13 fields
Declared neural network components (generator, critics, encoders, auxiliary).
Field
Type & Allowed Values
Default
Description
role
string
generator critic encoder auxiliary
—
Functional role in the GAN training graph.
hndl
string
—
Relative path to native HNDL (.hndl) network source file.
file
string
—
Alternative key for .hndl file path.
source
string
—
Inline HNDL architecture DSL string.
module
string
—
Custom PyTorch nn.Module class or factory in module:Class format.
reuse
string
—
Name of another declared network whose weights are shared for this pass.
freeze_parameters
boolean
false
When true on a reused network, blocks parameter gradients while keeping input gradients.
inputs
object
—
Mapping from network input argument ports to graph bindings ('latent', 'candidate', 'batch.real', '<network>').
input_shape
array
—
Input tensor shape contract for HNDL networks, e.g. ['B', 128] or { z = ['B', 128] }.
output_shape
array
—
Output tensor shape contract for HNDL networks, e.g. ['B', 1] or ['B', 3, 64, 64].
input_dtype
string
—
Optional input tensor dtype for HNDL networks (e.g. 'float32' or 'int64').
trainable
boolean
true
Whether optimizer updates parameters for this network.
args
object
—
Constructor arguments for module networks or HNDL template parameters/providers.
TOML
[[losses]]
13 fields
Array of objective loss tables ([[losses]]) minimized during training.
Field
Type & Allowed Values
Default
Description
type
string
adversarial prior reconstruction objective
—
Objective loss family.
id
string
—
Unique identifier for metrics publication (required for 'objective' and secondary 'adversarial' terms).
critic
string
—
Name of the critic network scoring real and fake samples (for type='adversarial').
penalty
number
1.0
Critic gradient penalty coefficient (for type='adversarial'; 0 disables).
critic_weight
number
—
Critic-phase adversarial multiplier. Defaults to weight.
generator_weight
number
—
Generator-phase adversarial multiplier. Defaults to weight.
weight
number
1.0
Scalar multiplier on this loss term.
fn
string
"mse"
Loss function ('mse', 'l1', or 'module:callable') for 'reconstruction'/'objective' losses.
input
string
—
Input binding for 'reconstruction'/'objective' losses (defaults to 'generated' for reconstruction).
target
string
—
Target binding for 'reconstruction'/'objective' losses (defaults to 'batch.real' for reconstruction).
inputs
object
—
Named argument bindings table for custom multi-input losses or conditional critics.
detach
array
['target']
List of input port names to detach before gradient computation.
rows
string
sampled_unique full
"sampled_unique"
Particle table subset regularized by type='prior' loss.
Shared critic gradient-penalty schedule and anchor settings.
Field
Type & Allowed Values
Default
Description
kappa
number
1.0
Scale factor for ParticleGAN critic gradient penalty.
lazy_k
integer
1
Lazy regularization interval in training steps.
anchor_weight
number
1.0
Anchor stabilization weight.
anchor_decay
number
0.999
EMA decay for critic anchor stabilization in [0, 1).
Unified training schedule, optimizer, and backend determinism settings.
Field
Type & Allowed Values
Default
Description
steps
integer
5
Total logical training steps to execute.
batch_size
integer
16
Global batch size per training step.
seed
integer
42
Master RNG seed for deterministic initialization.
device
string
"cuda"
Target compute device ('cuda', 'cuda:0', 'cuda:1', 'cpu').
initialization
string
constructor deterministic_orthogonal
"constructor"
Network weight initialization policy.
lr
number
0.0006
Base generator/encoder Adam learning rate.
d_lr_mult
number
1.5
Critic learning-rate multiplier relative to lr.
prior_lr_mult
number
10.0
Learnable prior learning-rate multiplier relative to lr.
betas
array
[0.0, 0.999]
Adam [beta1, beta2] coefficients for network parameters.
prior_betas
array
[0.0, 0.999]
Adam [beta1, beta2] coefficients for learnable prior parameters.
implementation
string
recipe device_adam torch_fused_adam
"device_adam"
Adam optimizer kernel implementation.
ema
number
0.995
Exponential moving average decay for inference generator weights in [0, 1).
lr_anneal_start
number
0.6
Fraction of total steps where learning-rate annealing begins.
lr_floor
number
0.05
Final learning-rate floor multiplier (1.0 keeps LR constant for step extension).
every_steps
integer
10
Cadence in steps for writing scalar training metrics.
checkpoint_every
integer
1000
Default step interval between durable checkpoints.
preview_every
integer
0
Default step interval between preview grid renders (0 disables).
progress_every
integer
100
Default step interval between CLI progress lines.
backend
object
—
CUDA/cuDNN determinism and TF32 backend flags.
Periodic preview and inference sampling configuration.
Field
Type & Allowed Values
Default
Description
count
integer
256
Number of samples rendered in periodic preview grids.
seed
integer
123
Deterministic RNG seed for preview sampling.
output
string
"generator"
Primary generator output binding to sample.
views
object
—
Up to 4 named output bindings rendered as extra preview grids.
comparison
array
—
List of 2 to 4 {label, binding} columns for side-by-side comparison grids.
TOML
[samplers.<name>]
0 fields
Named read-side visualization samplers ([samplers.<name>]).
Dynamic table mapping named entries; see the Configuration Guide for usage examples.
TOML
[checkpoints]
5 fields
Model checkpoint creation and retention policies.
Field
Type & Allowed Values
Default
Description
latest_only
boolean
false
Retain only the latest published training checkpoint across all attempts.
keep_last
integer
3
Number of most recent checkpoints to retain.
keep_best
object
{'metric': 'fid50k_train', 'mode': 'min', 'count': 2}
Best-checkpoint retention criteria ({metric, mode, count} or integer count).
keep_every
integer
50000
Step interval to retain perpetual milestone checkpoints.
export_bundle
string
on_eval on_checkpoint never
"on_eval"
When to automatically export standalone EMA generator bundles.
Runtime device topology, viewer autostart, and output cadence settings.
Field
Type & Allowed Values
Default
Description
checkpoint_every
integer
1000
Step interval between atomic checkpoint commits.
preview_every
integer
0
Step interval between preview PNG image tile generations.
progress_every
integer
100
Step interval for emitting CLI progress lines.
devices
string
—
Target GPU device specification, e.g. '0', '0,1', 'gpu0,gpu1', 'cuda:0', or 'cpu'.
viewer
boolean
—
Automatically start the background Web Observatory during training.
cpu_threads
integer
—
PyTorch intra-op CPU thread limit per worker.
nodes
integer
1
Number of cluster nodes participating in distributed training.
strategy
string
gradient_allreduce parameter_average pseudo_gradient
"gradient_allreduce"
Distributed replica aggregation strategy.
TOML
[aggregation]
4 fields
Distributed replica synchronization and outer-optimizer settings.
Field
Type & Allowed Values
Default
Description
strategy
string
gradient_allreduce parameter_average pseudo_gradient
"gradient_allreduce"
Replica aggregation strategy.
sync_every_steps
integer
1
Synchronization cadence in local steps (alias: 'sync_every').
outer_lr
number
1.0
Outer optimizer learning rate for pseudo_gradient / DiLoCo.
outer_momentum
number
0.0
Outer Nesterov momentum factor in [0.0, 1.0).
Scalar training metric calculation and logging configuration.
Field
Type & Allowed Values
Default
Description
preset
string
standard none
"standard"
Built-in scalar metric preset bundle.
every_steps
integer
10
Frequency in training steps for scalar metric logging (alias: 'every').
disable
array
—
List of standard metric IDs to disable.
overrides
object
—
Per-metric enable/disable overrides table.
TOML
[evaluations.<id>]
11 fields
Declared snapshot evaluation tasks ([evaluations.<id>], e.g. InceptionFID or SampleDiversity).
Field
Type & Allowed Values
Default
Description
factory
string
—
Evaluator class import path ('module:Class').
fn
string
—
Evaluator function import path ('module:callable').
every
integer
—
Interval in training steps for automatic evaluation (omit for manual trigger).
samples
integer
—
Total number of generated and reference examples to evaluate.
batch_size
integer
—
Batch size per evaluation forward pass.
seed
integer
—
Deterministic RNG seed for evaluation draws.
prior_seed
integer
—
Seed for the evaluation prior generator (default seed + 2).
data_seed
integer
—
Seed for the evaluation data generator (default seed + 1).
inputs
object
—
Bind plugin inputs to generated, reference or named EMA network outputs.
device
string
—
Execution device for the evaluation worker ('cuda', 'cuda:0', 'cpu').
data
object
—
Evaluation dataset table ({builtin/dataset/factory, ...}) or 'train' to reuse [data] with shuffle=false.