albertvillanova HF Staff commited on
Commit
05488b3
·
1 Parent(s): 9cacf64

Upload Idefics2ForConditionalGeneration (#1)

Browse files

- Upload Idefics2ForConditionalGeneration (af673cccfb0af4dafa8234cef303c7273888089b)

Files changed (4) hide show
  1. config.json +3 -3
  2. generation_config.json +1 -1
  3. model.safetensors +2 -2
  4. tokenizer.json +8 -1
config.json CHANGED
@@ -20,7 +20,7 @@
20
  },
21
  "text_config": {
22
  "attention_dropout": 0.0,
23
- "head_dim": null,
24
  "hidden_act": "silu",
25
  "hidden_size": 16,
26
  "initializer_range": 0.02,
@@ -39,7 +39,7 @@
39
  "vocab_size": 32003
40
  },
41
  "tie_word_embeddings": false,
42
- "transformers_version": "4.57.3",
43
  "use_cache": true,
44
  "vision_config": {
45
  "attention_dropout": 0.0,
@@ -51,7 +51,7 @@
51
  "intermediate_size": 4304,
52
  "layer_norm_eps": 1e-06,
53
  "model_type": "idefics2_vision",
54
- "num_attention_heads": 4,
55
  "num_channels": 3,
56
  "num_hidden_layers": 2,
57
  "num_key_value_heads": 2,
 
20
  },
21
  "text_config": {
22
  "attention_dropout": 0.0,
23
+ "head_dim": 8,
24
  "hidden_act": "silu",
25
  "hidden_size": 16,
26
  "initializer_range": 0.02,
 
39
  "vocab_size": 32003
40
  },
41
  "tie_word_embeddings": false,
42
+ "transformers_version": "4.56.2",
43
  "use_cache": true,
44
  "vision_config": {
45
  "attention_dropout": 0.0,
 
51
  "intermediate_size": 4304,
52
  "layer_norm_eps": 1e-06,
53
  "model_type": "idefics2_vision",
54
+ "num_attention_heads": 2,
55
  "num_channels": 3,
56
  "num_hidden_layers": 2,
57
  "num_key_value_heads": 2,
generation_config.json CHANGED
@@ -14,5 +14,5 @@
14
  32002
15
  ],
16
  "pad_token_id": 0,
17
- "transformers_version": "4.57.3"
18
  }
 
14
  32002
15
  ],
16
  "pad_token_id": 0,
17
+ "transformers_version": "4.56.2"
18
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:16c55a94a324aad151c674a57958fcbc8bb9ad8ce5a1f8fe087302ac4a5b0170
3
- size 14647936
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92bd5bebb5114b038f7254d46dd7627f43b3fa0d2476e70ae6f18f9ce24336fa
3
+ size 14654080
tokenizer.json CHANGED
@@ -1,7 +1,14 @@
1
  {
2
  "version": "1.0",
3
  "truncation": null,
4
- "padding": null,
 
 
 
 
 
 
 
5
  "added_tokens": [
6
  {
7
  "id": 0,
 
1
  {
2
  "version": "1.0",
3
  "truncation": null,
4
+ "padding": {
5
+ "strategy": "BatchLongest",
6
+ "direction": "Left",
7
+ "pad_to_multiple_of": null,
8
+ "pad_id": 0,
9
+ "pad_type_id": 0,
10
+ "pad_token": "<unk>"
11
+ },
12
  "added_tokens": [
13
  {
14
  "id": 0,