File size: 4,252 Bytes
e949b16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
  "adapter_layer_norm_eps": 1e-06,
  "alignment_activation_fn": "swiglu",
  "alignment_intermediate_size": 12288,
  "architectures": [
    "Cohere2VisionForConditionalGeneration"
  ],
  "downsample_factor": 2,
  "dtype": "bfloat16",
  "enable_adapter_layer_norm": false,
  "image_token": 255031,
  "image_token_id": 255031,
  "max_splits_per_img": 12,
  "model_type": "cohere2_vision",
  "text_config": {
    "_sliding_window_pattern": 4,
    "add_cross_attention": false,
    "architectures": [
      "Cohere2MoeForCausalLM"
    ],
    "attention_bias": false,
    "attention_dropout": 0.0,
    "bos_token_id": 2,
    "cross_attention_hidden_size": null,
    "decoder_start_token_id": null,
    "dtype": "bfloat16",
    "eos_token_id": 255001,
    "expert_selection_fn": "sigmoid",
    "finetuning_task": null,
    "first_k_dense_replace": 0,
    "head_dim": 128,
    "hidden_act": "silu",
    "hidden_size": 4096,
    "initializer_range": 0.02,
    "intermediate_size": 4096,
    "is_decoder": false,
    "layer_norm_eps": 1e-05,
    "layer_switch": 4,
    "layer_types": [
      "sliding_attention",
      "sliding_attention",
      "sliding_attention",
      "full_attention",
      "sliding_attention",
      "sliding_attention",
      "sliding_attention",
      "full_attention",
      "sliding_attention",
      "sliding_attention",
      "sliding_attention",
      "full_attention",
      "sliding_attention",
      "sliding_attention",
      "sliding_attention",
      "full_attention",
      "sliding_attention",
      "sliding_attention",
      "sliding_attention",
      "full_attention",
      "sliding_attention",
      "sliding_attention",
      "sliding_attention",
      "full_attention",
      "sliding_attention",
      "sliding_attention",
      "sliding_attention",
      "full_attention",
      "sliding_attention",
      "sliding_attention",
      "sliding_attention",
      "full_attention"
    ],
    "logit_scale": 1.0,
    "max_position_embeddings": 5000000,
    "model_type": "cohere2_moe",
    "norm_topk_prob": true,
    "num_attention_heads": 128,
    "num_experts": 128,
    "num_experts_per_tok": 8,
    "num_hidden_layers": 32,
    "num_key_value_heads": 8,
    "num_shared_experts": 4,
    "order_of_interleaved_layers": "local_attn_first",
    "pad_token_id": 0,
    "position_embedding_type": "rope_gptj",
    "prefix": null,
    "prefix_dense_intermediate_size": 16384,
    "prefix_dense_sliding_window_pattern": 1,
    "pruned_heads": {},
    "rms_norm_eps": null,
    "rope_parameters": {
      "rope_theta": 50000,
      "rope_type": "default"
    },
    "rope_theta": 50000,
    "rotary_pct": 1.0,
    "sep_token_id": null,
    "shared_expert_combination_strategy": "average",
    "sliding_window": 4096,
    "task_specific_params": null,
    "tf_legacy_loss": false,
    "tie_encoder_decoder": false,
    "tie_word_embeddings": true,
    "tokenizer_class": null,
    "torchscript": false,
    "use_bfloat16": false,
    "use_cache": true,
    "use_embedding_sharing": true,
    "use_gated_activation": true,
    "use_parallel_block": true,
    "use_parallel_embedding": false,
    "use_qk_norm": false,
    "vocab_size": 262144
  },
  "tie_word_embeddings": true,
  "transformers_version": "5.8.0.dev0",
  "vision_config": {
    "add_cross_attention": false,
    "attention_dropout": 0.0,
    "bos_token_id": null,
    "cross_attention_hidden_size": null,
    "decoder_start_token_id": null,
    "dtype": "bfloat16",
    "eos_token_id": null,
    "finetuning_task": null,
    "hidden_act": "gelu_pytorch_tanh",
    "hidden_size": 1152,
    "image_size": 512,
    "intermediate_size": 4304,
    "is_decoder": false,
    "layer_norm_eps": 1e-06,
    "model_type": "siglip_vision_model",
    "num_attention_heads": 16,
    "num_channels": 3,
    "num_hidden_layers": 27,
    "pad_token_id": null,
    "patch_size": 16,
    "prefix": null,
    "pruned_heads": {},
    "sep_token_id": null,
    "task_specific_params": null,
    "tf_legacy_loss": false,
    "tie_encoder_decoder": false,
    "tie_word_embeddings": true,
    "tokenizer_class": null,
    "torchscript": false,
    "use_bfloat16": false,
    "vision_use_head": false
  },
  "vision_feature_layer": -1,
  "vision_feature_select_strategy": "full"
}