File size: 3,108 Bytes
e9891a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
  "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"
  }
}