File size: 3,938 Bytes
4297722
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0acfc1a
4297722
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
    "_commit_hash": null,
    "architectures": [
        "YuanVLChatModel"
    ],
    "auto_map": {
        "AutoConfig": "configuration_yuanvl.YuanVLChatConfig",
        "AutoModel": "modeling_yuanvl_chat.YuanVLChatModel",
        "AutoModelForCausalLM": "modeling_yuanvl_chat.YuanVLChatModel"
    },
    "clip_download_path": "path/to/internvit-448",
    "clip_model_name": "InternViT-448",
    "imagemlp_recompute": true,
    "downsample_ratio": 0.5,
    "dynamic_image_size": true,
    "force_image_size": 448,
    "max_dynamic_patch": 9,
    "min_dynamic_patch": 1,
    "model_type": "yuanvl",
    "ps_version": "v2",
    "select_layer": -1,
    "template": "yuan-chat",
    "torch_dtype": "bfloat16",
    "use_backbone_lora": 0,
    "use_llm_lora": 0,
    "use_thumbnail": true,
    "img_context_token_id": 77188,
    "attention_dropout": 0.0,
    "vision_config": {
        "architectures": [
            "InternVisionModel"
        ],
        "attention_dropout": 0.0,
        "drop_path_rate": 0.0,
        "dropout": 0.0,
        "hidden_act": "gelu",
        "hidden_size": 1024,
        "image_size": 448,
        "initializer_factor": 1.0,
        "initializer_range": 0.02,
        "intermediate_size": 4096,
        "layer_norm_eps": 1e-06,
        "model_type": "intern_vit_6b",
        "norm_type": "layer_norm",
        "num_attention_heads": 16,
        "num_channels": 3,
        "num_hidden_layers": 24,
        "output_attentions": false,
        "output_hidden_states": false,
        "patch_size": 14,
        "qk_normalization": false,
        "qkv_bias": true,
        "return_dict": true,
        "torch_dtype": "bfloat16",
        "transformers_version": "4.37.2",
        "use_bfloat16": true,
        "use_flash_attn": true
    },
    "llm_config": {
        "_from_model_config": true,
        "architectures": [
            "YuanForCausalLM"
        ],
        "attention_projection_size": 4096,
        "attn_dropout": 0.0,
        "auto_map": {
            "AutoConfig": "configuration_yuanvl.YuanConfig",
            "AutoModelForCausalLM": "yuanvl.YuanForCausalLM"
        },
        "causal_mask": true,
        "attn_mask_type": "causal",
        "dropout": 0,
        "hidden_act": "silu",
        "hidden_size": 2048,
        "initializer_range": 0.02,
        "intermediate_size": 8192,
        "use_lf_gate": true,
        "lf_conv2d_group": 1,
        "lf_conv2d_num_pad": 0,
        "use_lfa_bias": true,
        "mask_token_id": 77185,
        "max_position_embeddings": 131072,
        "model_max_length": 131072,
        "model_type": "yuan",
        "moe_num_experts": 32,
        "ffn_hidden_size": 8192,
        "moe_config": {
            "moe_num_experts": 32,
            "moe_top_k": 2,
            "norm_topk_prob": true,
            "num_attention_router_heads": 1,
            "gated_linear_unit": true,
            "ffn_hidden_size": 8192,
            "router_type": "attn_router"
        },
        "num_attention_heads": 16,
        "num_hidden_layers": 24,
        "output_router_logits": true,
        "pad_token_id": 77188,
        "reset_attention_mask": false,
        "reset_position_ids": false,
        "rms_norm_eps": 1e-06,
        "rotary_base": 1000000,
        "rotary_percent": 0.5,
        "tie_word_embeddings": false,
        "rep_token": "<rep>",
        "rep_token_id": 134962,
        "eod_token": "<eod>",
        "eod_token_id": 77185,
        "bos_token": "<BOS>",
        "bos_token_id": 134960,
        "sep_token": "<sep>",
        "sep_token_id": 77187,
        "tokenizer_class": "YuanVLTokenizer",
        "torch_dtype": "bfloat16",
        "transformers_version": "4.42.2",
        "use_cache": true,
        "use_flash_attention": true,
        "use_loss_mask": false,
        "use_moe": true,
        "vocab_size": 136064,
        "use_bias": false,
        "use_rope_scaling": false,
        "head_dim": 256
    },
    "eos_token_id": 77185
}