FoLA / config.json
FuxiangZhai's picture
Initial release
1ff52f5
Raw History Blame Contribute Delete
2.07 kB
{
"model_type": "fola",
"base_model": "ByteDance-Seed/BAGEL-7B-MoT",
"llm_config": {
"architectures": [
"Qwen2ForCausalLM"
],
"attention_dropout": 0.0,
"bos_token_id": 151643,
"eos_token_id": 151645,
"hidden_act": "silu",
"hidden_size": 3584,
"initializer_range": 0.02,
"intermediate_size": 18944,
"max_position_embeddings": 32768,
"max_window_layers": 28,
"model_type": "qwen2",
"num_attention_heads": 28,
"num_hidden_layers": 28,
"num_key_value_heads": 4,
"rms_norm_eps": 1e-06,
"rope_theta": 1000000.0,
"sliding_window": 131072,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"use_cache": true,
"use_sliding_window": false,
"vocab_size": 152064,
"qk_norm": true,
"layer_module": "Qwen2MoTDecoderLayer"
},
"vae": {
"file": "ae.safetensors",
"latent_patch_size": 2,
"max_latent_size": 64
},
"generation_lora": {
"rank": 32,
"alpha": 32.0,
"target_modules": [
"self_attn.q_proj_moe_gen",
"self_attn.v_proj_moe_gen",
"mlp_moe_gen.gate_proj",
"mlp_moe_gen.up_proj",
"mlp_moe_gen.down_proj"
],
"layers": 28,
"merged": false,
"dtype": "float32"
},
"latent_policy": {
"input_dim": 3584,
"hidden_dim": 2048,
"output_dim": 3584,
"parameters": 26200000,
"dtype": "float32",
"num_latent_tokens": 8,
"latent_scale": 0.02,
"action": "policy mean (temperature 0)",
"reader": "prompt",
"reader_cue": "An image is being generated for the prompt: \"{prompt}\". Decide what the finished image must get right to match the prompt exactly.",
"decision_step": 0
},
"end_embedding": {
"key": "latent_reasoning_end_embed",
"dim": 3584,
"dtype": "bfloat16",
"trainable": false,
"init": "fixed random, N(0, 0.02^2)"
},
"generation_context": "[prompt][z_1 ... z_8][end]",
"sampling": {
"resolution": 1024,
"flow_steps": 50,
"euler_steps": 49,
"timestep_shift": 3.0,
"text_guidance": 4.0
}
}