AuroraIMG-6M / config.json
ThatHungarian's picture
Upload 12 files
e9891a2 verified
Raw History Blame Contribute Delete
3.11 kB
{
"model_type": "auroraimg",
"architecture": "latent-flow-matching-unet",
"model_name": "AuroraIMG-6M",
"image_size": 64,
"image_channels": 3,
"num_parameters": {
"text_encoder": 1320000,
"denoiser": 4420000,
"vae": 1080000,
"total": 6820000
},
"vae": {
"in_channels": 3,
"latent_channels": 8,
"latent_size": 16,
"downsample_factor": 4,
"encoder_channels": [32, 64, 128],
"decoder_channels": [128, 64, 32],
"groupnorm_groups": 8,
"logvar_clamp": [-30.0, 20.0],
"output_activation": "tanh",
"upsample_mode": "nearest"
},
"text_encoder": {
"vocab_size": 4096,
"hidden_size": 128,
"num_layers": 4,
"num_heads": 4,
"ffn_size": 512,
"max_length": 64,
"position_embedding": "rope",
"rope_theta": 1000.0,
"pad_token_id": 0,
"bos_token_id": 1,
"eos_token_id": 2,
"tokenizer_file": "tokenizer.json",
"lowercase_input": true
},
"denoiser": {
"in_channels": 8,
"out_channels": 8,
"base_channels": 64,
"level_channels": [64, 128, 128],
"level_resolutions": [16, 8, 4],
"attention_tokens": [256, 64, 16],
"ffn_multipliers": [2, 3, 4],
"num_heads": 4,
"context_dim": 128,
"time_embedding_dim": 128,
"fourier_features": 32,
"fourier_scale": 10.0,
"num_timesteps": 1000,
"groupnorm_groups": 8,
"conditioning": "adaln-zero",
"text_pooling": "mean"
},
"latent_normalization": {
"stats_in_checkpoint": true,
"checkpoint_keys": ["lat_mu", "lat_sd"],
"note": "decode with vae.decode(z * lat_sd + lat_mu)"
},
"objective": {
"type": "flow_matching",
"interpolation": "x_t = (1 - t) * z + t * noise",
"prediction": "velocity",
"target": "noise - z"
},
"sampling": {
"sampler": "euler",
"num_steps": 50,
"t_start": 1.0,
"t_end": 0.0,
"guidance_scale": 6.0,
"guidance_rescale": 1.0,
"null_prompt": "",
"use_ema": true
},
"training": {
"dataset": "pixparse/cc12m-wds",
"train_pairs": 9882283,
"holdout_pairs": 50000,
"vae": {
"steps": 25000,
"batch_size": 2048,
"optimizer": "adamw",
"learning_rate": 0.0005,
"warmup_steps": 1000,
"kl_weight": 5e-05,
"gradient_loss_weight": 0.5,
"gram_loss_weight": 0.1
},
"flow": {
"steps": 300000,
"batch_size": 2048,
"warmup_steps": 10000,
"min_lr_ratio": 0.01,
"optimizers": {
"muon": {"learning_rate": 0.02, "momentum": 0.95, "weight_decay": 0.01, "ns_steps": 5},
"adamw": {"learning_rate": 0.0005, "weight_decay": 0.01}
},
"grad_clip_norm": 1.0,
"ema_decay": 0.9998,
"caption_dropout": 0.1,
"timestep_sampling": "logit-normal",
"uniform_timestep_fraction": 0.15,
"precision": "bf16"
}
},
"files": {
"checkpoint": "Model.pt",
"checkpoint_keys": ["ema_te", "ema_den", "vae", "lat_mu", "lat_sd"],
"tokenizer": "tokenizer.json"
}
}