Yuan-lab commited on
Commit
4297722
·
verified ·
1 Parent(s): 0c059f4

Upload config.json

Browse files
Files changed (1) hide show
  1. config.json +126 -0
config.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "architectures": [
4
+ "YuanVLChatModel"
5
+ ],
6
+ "auto_map": {
7
+ "AutoConfig": "configuration_yuanvl.YuanVLChatConfig",
8
+ "AutoModel": "modeling_yuanvl_chat.YuanVLChatModel",
9
+ "AutoModelForCausalLM": "modeling_yuanvl_chat.YuanVLChatModel"
10
+ },
11
+ "clip_download_path": "path/to/internvit-448",
12
+ "clip_model_name": "InternViT-448",
13
+ "imagemlp_recompute": true,
14
+ "downsample_ratio": 0.5,
15
+ "dynamic_image_size": true,
16
+ "force_image_size": 448,
17
+ "max_dynamic_patch": 9,
18
+ "min_dynamic_patch": 1,
19
+ "model_type": "yuanvl",
20
+ "ps_version": "v2",
21
+ "select_layer": -1,
22
+ "template": "yuan-chat",
23
+ "torch_dtype": "bfloat16",
24
+ "use_backbone_lora": 0,
25
+ "use_llm_lora": 0,
26
+ "use_thumbnail": true,
27
+ "img_context_token_id": 77188,
28
+ "attention_dropout": 0.0,
29
+ "vision_config": {
30
+ "architectures": [
31
+ "InternVisionModel"
32
+ ],
33
+ "attention_dropout": 0.0,
34
+ "drop_path_rate": 0.0,
35
+ "dropout": 0.0,
36
+ "hidden_act": "gelu",
37
+ "hidden_size": 1024,
38
+ "image_size": 448,
39
+ "initializer_factor": 1.0,
40
+ "initializer_range": 0.02,
41
+ "intermediate_size": 4096,
42
+ "layer_norm_eps": 1e-06,
43
+ "model_type": "intern_vit_6b",
44
+ "norm_type": "layer_norm",
45
+ "num_attention_heads": 16,
46
+ "num_channels": 3,
47
+ "num_hidden_layers": 24,
48
+ "output_attentions": false,
49
+ "output_hidden_states": false,
50
+ "patch_size": 14,
51
+ "qk_normalization": false,
52
+ "qkv_bias": true,
53
+ "return_dict": true,
54
+ "torch_dtype": "bfloat16",
55
+ "transformers_version": "4.37.2",
56
+ "use_bfloat16": true,
57
+ "use_flash_attn": true
58
+ },
59
+ "llm_config": {
60
+ "_from_model_config": true,
61
+ "architectures": [
62
+ "YuanForCausalLM"
63
+ ],
64
+ "attention_projection_size": 4096,
65
+ "attn_dropout": 0.0,
66
+ "auto_map": {
67
+ "AutoConfig": "configuration_yuanvl.YuanConfig",
68
+ "AutoModelForCausalLM": "yuanvl.YuanForCausalLM"
69
+ },
70
+ "causal_mask": true,
71
+ "attn_mask_type": "causal",
72
+ "dropout": 0,
73
+ "hidden_act": "silu",
74
+ "hidden_size": 2048,
75
+ "initializer_range": 0.02,
76
+ "intermediate_size": 8192,
77
+ "use_lf_gate": true,
78
+ "lf_conv2d_group": 1,
79
+ "lf_conv2d_num_pad": 0,
80
+ "use_lfa_bias": true,
81
+ "mask_token_id": 77185,
82
+ "max_position_embeddings": 131072,
83
+ "model_max_length": 131072,
84
+ "model_type": "yuan",
85
+ "ffn_hidden_size": 8192,
86
+ "moe_config": {
87
+ "moe_num_experts": 32,
88
+ "moe_top_k": 2,
89
+ "norm_topk_prob": true,
90
+ "num_attention_router_heads": 1,
91
+ "gated_linear_unit": true,
92
+ "ffn_hidden_size": 8192,
93
+ "router_type": "attn_router"
94
+ },
95
+ "num_attention_heads": 16,
96
+ "num_hidden_layers": 24,
97
+ "output_router_logits": true,
98
+ "pad_token_id": 77188,
99
+ "reset_attention_mask": false,
100
+ "reset_position_ids": false,
101
+ "rms_norm_eps": 1e-06,
102
+ "rotary_base": 1000000,
103
+ "rotary_percent": 0.5,
104
+ "tie_word_embeddings": false,
105
+ "rep_token": "<rep>",
106
+ "rep_token_id": 134962,
107
+ "eod_token": "<eod>",
108
+ "eod_token_id": 77185,
109
+ "bos_token": "<BOS>",
110
+ "bos_token_id": 134960,
111
+ "sep_token": "<sep>",
112
+ "sep_token_id": 77187,
113
+ "tokenizer_class": "YuanVLTokenizer",
114
+ "torch_dtype": "bfloat16",
115
+ "transformers_version": "4.42.2",
116
+ "use_cache": true,
117
+ "use_flash_attention": true,
118
+ "use_loss_mask": false,
119
+ "use_moe": true,
120
+ "vocab_size": 136064,
121
+ "use_bias": false,
122
+ "use_rope_scaling": false,
123
+ "head_dim": 256
124
+ },
125
+ "eos_token_id": 77185
126
+ }