Upload IdeficsForVisionText2Text
Browse files- config.json +47 -0
- generation_config.json +7 -0
- pytorch_model-00001-of-00002.bin +3 -0
- pytorch_model-00002-of-00002.bin +3 -0
- pytorch_model.bin.index.json +0 -0
config.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "HuggingFaceM4/idefics-9b",
|
3 |
+
"additional_vocab_size": 2,
|
4 |
+
"alpha_initializer": "zeros",
|
5 |
+
"alpha_type": "float",
|
6 |
+
"alphas_initializer_range": 0.0,
|
7 |
+
"architectures": [
|
8 |
+
"IdeficsForVisionText2Text"
|
9 |
+
],
|
10 |
+
"bos_token_id": 1,
|
11 |
+
"cross_layer_activation_function": "swiglu",
|
12 |
+
"cross_layer_interval": 4,
|
13 |
+
"dropout": 0.0,
|
14 |
+
"eos_token_id": 2,
|
15 |
+
"freeze_lm_head": false,
|
16 |
+
"freeze_text_layers": false,
|
17 |
+
"freeze_text_module_exceptions": [],
|
18 |
+
"freeze_vision_layers": false,
|
19 |
+
"freeze_vision_module_exceptions": [],
|
20 |
+
"hidden_act": "silu",
|
21 |
+
"hidden_size": 4096,
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 11008,
|
24 |
+
"max_position_embeddings": 2048,
|
25 |
+
"max_sequence_length": 2048,
|
26 |
+
"model_type": "idefics",
|
27 |
+
"num_attention_heads": 32,
|
28 |
+
"num_hidden_layers": 32,
|
29 |
+
"pad_token_id": 0,
|
30 |
+
"perceiver_config": {
|
31 |
+
"model_type": "idefics",
|
32 |
+
"qk_layer_norms_perceiver": true
|
33 |
+
},
|
34 |
+
"qk_layer_norms": true,
|
35 |
+
"rms_norm_eps": 1e-06,
|
36 |
+
"tie_word_embeddings": false,
|
37 |
+
"torch_dtype": "bfloat16",
|
38 |
+
"transformers_version": "4.32.1",
|
39 |
+
"use_cache": true,
|
40 |
+
"use_resampler": true,
|
41 |
+
"vision_config": {
|
42 |
+
"embed_dim": 1280,
|
43 |
+
"hidden_act": "gelu",
|
44 |
+
"model_type": "idefics"
|
45 |
+
},
|
46 |
+
"vocab_size": 32000
|
47 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.32.1"
|
7 |
+
}
|
pytorch_model-00001-of-00002.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:43371cb42c407482818da13b71dffdf055feb476f4f1fbf2fcdf2d8f6889e491
|
3 |
+
size 9971920216
|
pytorch_model-00002-of-00002.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ca297e4671a291a3053589bbfab030af59e2a995b20926b0e5ad6b713c34529
|
3 |
+
size 7887834355
|
pytorch_model.bin.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|