kirp@umich.edu commited on
Commit
1cff345
1 Parent(s): 2e9803a

add segment_emb

Browse files
config.json CHANGED
@@ -10,7 +10,7 @@
10
  "activation_function": "gelu",
11
  "add_cross_attention": false,
12
  "architectures": null,
13
- "attention_dropout": 0.1,
14
  "attention_heads": 16,
15
  "bad_words_ids": null,
16
  "begin_suppress_tokens": null,
@@ -18,12 +18,10 @@
18
  "chunk_size_feed_forward": 0,
19
  "cross_attention_hidden_size": null,
20
  "decoder_start_token_id": null,
21
- "diversity_penalty": 0.0,
22
- "do_sample": false,
23
  "dropout": 0.1,
24
  "early_stopping": false,
25
  "embed_dim": 1536,
26
- "encoder_no_repeat_ngram_size": 0,
27
  "eos_token_id": 2,
28
  "exponential_decay_length_penalty": null,
29
  "ffn_dim": 6144,
@@ -44,51 +42,39 @@
44
  "layer_norm_eps": 1e-05,
45
  "layerdrop": 0.0,
46
  "layers": 24,
47
- "length_penalty": 1.0,
48
  "max_length": 20,
49
  "max_position_embeddings": 4096,
50
  "min_length": 0,
51
  "model_type": "kosmos_2_5_text_model",
52
- "no_repeat_ngram_size": 3,
53
- "num_beam_groups": 1,
54
- "num_beams": 1,
55
  "num_return_sequences": 1,
56
  "output_attentions": false,
57
  "output_hidden_states": false,
58
  "output_scores": false,
59
- "pad_token_id": 1,
60
  "prefix": null,
61
  "problem_type": null,
62
  "pruned_heads": {},
63
  "remove_invalid_values": false,
64
- "repetition_penalty": 1.0,
65
  "return_dict": true,
66
  "return_dict_in_generate": false,
67
  "scale_embedding": true,
68
  "sep_token_id": null,
69
  "suppress_tokens": null,
70
  "task_specific_params": null,
71
- "temperature": 1.0,
72
  "tf_legacy_loss": false,
73
  "tie_encoder_decoder": false,
74
  "tie_word_embeddings": true,
75
  "tokenizer_class": null,
76
- "top_k": 50,
77
- "top_p": 1.0,
78
  "torch_dtype": null,
79
  "torchscript": false,
80
- "typical_p": 1.0,
81
  "use_bfloat16": false,
82
  "use_cache": true,
83
- "_attn_implementation": "flash_attention_2",
84
  "vocab_size": 108481
85
  },
86
  "torch_dtype": "float32",
87
- "transformers_version": "4.40.0.dev0",
88
  "vision_config": {
89
  "_name_or_path": "",
90
  "add_cross_attention": false,
91
- "_attn_implementation": "flash_attention_2",
92
  "architectures": null,
93
  "attention_dropout": 0.0,
94
  "bad_words_ids": null,
@@ -116,14 +102,13 @@
116
  "1": "LABEL_1"
117
  },
118
  "initializer_factor": 1.0,
119
- "initializer_range": 0.02,
120
  "is_decoder": false,
121
  "is_encoder_decoder": false,
122
  "label2id": {
123
  "LABEL_0": 0,
124
  "LABEL_1": 1
125
  },
126
- "layer_norm_bias": false,
127
  "layer_norm_eps": 1e-06,
128
  "length_penalty": 1.0,
129
  "max_length": 4096,
@@ -133,7 +118,6 @@
133
  "num_attention_heads": 24,
134
  "num_beam_groups": 1,
135
  "num_beams": 1,
136
- "num_channels": 3,
137
  "num_hidden_layers": 18,
138
  "num_return_sequences": 1,
139
  "output_attentions": false,
@@ -141,10 +125,8 @@
141
  "output_scores": false,
142
  "pad_token_id": null,
143
  "patch_embed_hidden_size": 768,
144
- "patch_size": 16,
145
  "prefix": null,
146
  "problem_type": null,
147
- "projection_dim": 768,
148
  "pruned_heads": {},
149
  "relative_attention_max_distance": 128,
150
  "relative_attention_num_buckets": 32,
 
10
  "activation_function": "gelu",
11
  "add_cross_attention": false,
12
  "architectures": null,
13
+ "attention_dropout": 0.0,
14
  "attention_heads": 16,
15
  "bad_words_ids": null,
16
  "begin_suppress_tokens": null,
 
18
  "chunk_size_feed_forward": 0,
19
  "cross_attention_hidden_size": null,
20
  "decoder_start_token_id": null,
 
 
21
  "dropout": 0.1,
22
  "early_stopping": false,
23
  "embed_dim": 1536,
24
+ "pad_token_id": 1,
25
  "eos_token_id": 2,
26
  "exponential_decay_length_penalty": null,
27
  "ffn_dim": 6144,
 
42
  "layer_norm_eps": 1e-05,
43
  "layerdrop": 0.0,
44
  "layers": 24,
 
45
  "max_length": 20,
46
  "max_position_embeddings": 4096,
47
  "min_length": 0,
48
  "model_type": "kosmos_2_5_text_model",
 
 
 
49
  "num_return_sequences": 1,
50
  "output_attentions": false,
51
  "output_hidden_states": false,
52
  "output_scores": false,
 
53
  "prefix": null,
54
  "problem_type": null,
55
  "pruned_heads": {},
56
  "remove_invalid_values": false,
 
57
  "return_dict": true,
58
  "return_dict_in_generate": false,
59
  "scale_embedding": true,
60
  "sep_token_id": null,
61
  "suppress_tokens": null,
62
  "task_specific_params": null,
 
63
  "tf_legacy_loss": false,
64
  "tie_encoder_decoder": false,
65
  "tie_word_embeddings": true,
66
  "tokenizer_class": null,
 
 
67
  "torch_dtype": null,
68
  "torchscript": false,
 
69
  "use_bfloat16": false,
70
  "use_cache": true,
 
71
  "vocab_size": 108481
72
  },
73
  "torch_dtype": "float32",
74
+ "transformers_version": "4.42.0.dev0",
75
  "vision_config": {
76
  "_name_or_path": "",
77
  "add_cross_attention": false,
 
78
  "architectures": null,
79
  "attention_dropout": 0.0,
80
  "bad_words_ids": null,
 
102
  "1": "LABEL_1"
103
  },
104
  "initializer_factor": 1.0,
105
+ "initializer_range": 1e-10,
106
  "is_decoder": false,
107
  "is_encoder_decoder": false,
108
  "label2id": {
109
  "LABEL_0": 0,
110
  "LABEL_1": 1
111
  },
 
112
  "layer_norm_eps": 1e-06,
113
  "length_penalty": 1.0,
114
  "max_length": 4096,
 
118
  "num_attention_heads": 24,
119
  "num_beam_groups": 1,
120
  "num_beams": 1,
 
121
  "num_hidden_layers": 18,
122
  "num_return_sequences": 1,
123
  "output_attentions": false,
 
125
  "output_scores": false,
126
  "pad_token_id": null,
127
  "patch_embed_hidden_size": 768,
 
128
  "prefix": null,
129
  "problem_type": null,
 
130
  "pruned_heads": {},
131
  "relative_attention_max_distance": 128,
132
  "relative_attention_num_buckets": 32,
generation_config.json CHANGED
@@ -1,8 +1,9 @@
1
  {
2
- "_from_model_config": true,
3
  "bos_token_id": 0,
4
  "eos_token_id": 2,
5
- "no_repeat_ngram_size": 3,
6
  "pad_token_id": 1,
7
- "transformers_version": "4.40.0.dev0"
 
 
8
  }
 
1
  {
2
+ "_from_model_config": false,
3
  "bos_token_id": 0,
4
  "eos_token_id": 2,
 
5
  "pad_token_id": 1,
6
+ "transformers_version": "4.42.0.dev0",
7
+ "num_beam" : 1,
8
+ "do_sample": false
9
  }
model-00001-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bd8968c79dd845b0b139553ee156b562cb150ae2ca64a0936d68909e15f9bf51
3
- size 4995239744
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4be3da9ff4d8a8a564e8605a914a12f5f8b38ac5927a042c1a161e86d603e42
3
+ size 4995252144
model.safetensors.index.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "metadata": {
3
- "total_size": 5498572800
4
  },
5
  "weight_map": {
6
  "image_to_text_projection.dense.bias": "model-00002-of-00002.safetensors",
@@ -449,6 +449,7 @@
449
  "text_model.model.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
450
  "text_model.model.layers.9.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
451
  "text_model.model.layers.9.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
 
452
  "vision_model.embeddings.column_embedder.weight": "model-00001-of-00002.safetensors",
453
  "vision_model.embeddings.patch_projection.bias": "model-00001-of-00002.safetensors",
454
  "vision_model.embeddings.patch_projection.weight": "model-00001-of-00002.safetensors",
 
1
  {
2
  "metadata": {
3
+ "total_size": 5498585088
4
  },
5
  "weight_map": {
6
  "image_to_text_projection.dense.bias": "model-00002-of-00002.safetensors",
 
449
  "text_model.model.layers.9.self_attn.v_proj.weight": "model-00001-of-00002.safetensors",
450
  "text_model.model.layers.9.self_attn_layer_norm.bias": "model-00001-of-00002.safetensors",
451
  "text_model.model.layers.9.self_attn_layer_norm.weight": "model-00001-of-00002.safetensors",
452
+ "text_model.model.segment_emb.weight": "model-00001-of-00002.safetensors",
453
  "vision_model.embeddings.column_embedder.weight": "model-00001-of-00002.safetensors",
454
  "vision_model.embeddings.patch_projection.bias": "model-00001-of-00002.safetensors",
455
  "vision_model.embeddings.patch_projection.weight": "model-00001-of-00002.safetensors",