File size: 953 Bytes
bfbd0d9
dd4486d
 
20ca3e6
dd4486d
 
 
 
 
 
 
 
 
 
 
 
bfbd0d9
dd4486d
 
 
 
 
 
 
 
 
 
bfbd0d9
dd4486d
 
 
 
 
 
bfbd0d9
dd4486d
 
 
 
 
bfbd0d9
20ca3e6
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
{
  "architectures": ["MultiModalityCausalLM"],
  "model_type": "multi_modality",
  "torch_dtype": "bfloat16",
  
  "llama_config": {
    "architectures": ["LlamaForCausalLM"],
    "hidden_size": 2048,
    "intermediate_size": 5632,
    "max_position_embeddings": 16384,
    "num_attention_heads": 16,
    "num_hidden_layers": 24,
    "num_key_value_heads": 16,
    "rms_norm_eps": 1e-6,
    "vocab_size": 102400,
    "torch_dtype": "bfloat16"
  },

  "clip_vision_config": {
    "architectures": ["CLIPVisionModel"],
    "hidden_size": 1024,
    "image_size": 384,
    "patch_size": 16,
    "projection_dim": 2048,
    "num_hidden_layers": 24,
    "num_attention_heads": 16,
    "intermediate_size": 4096
  },

  "alignment_config": {
    "projector_type": "mlp_gelu",
    "depth": 2,
    "input_dim": 1024,
    "n_embed": 2048
  },

  "generation_config": {
    "image_token_size": 16384,
    "vq_codebook_size": 8,
    "image_token_embed": 2048
  }
}