Upload IdeficsForCausalLM
Browse files- config.json +48 -0
- generation_config.json +8 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_vocab_size": 2,
|
3 |
+
"alpha_initializer": "ones",
|
4 |
+
"alpha_type": "vector",
|
5 |
+
"alphas_initializer_range": 0.0,
|
6 |
+
"architectures": [
|
7 |
+
"IdeficsForCausalLM"
|
8 |
+
],
|
9 |
+
"bos_token_id": 1,
|
10 |
+
"cross_layer_activation_function": "swiglu",
|
11 |
+
"cross_layer_interval": 1,
|
12 |
+
"dropout": 0.0,
|
13 |
+
"eos_token_id": 2,
|
14 |
+
"ffn_dim": 64,
|
15 |
+
"freeze_lm_head": false,
|
16 |
+
"freeze_text_layers": true,
|
17 |
+
"freeze_text_module_exceptions": [],
|
18 |
+
"freeze_vision_layers": true,
|
19 |
+
"freeze_vision_module_exceptions": [],
|
20 |
+
"hidden_act": "silu",
|
21 |
+
"hidden_size": 16,
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 11008,
|
24 |
+
"max_new_tokens": 100,
|
25 |
+
"max_position_embeddings": 128,
|
26 |
+
"model_type": "idefics",
|
27 |
+
"num_attention_heads": 4,
|
28 |
+
"num_hidden_layers": 2,
|
29 |
+
"pad_token_id": 0,
|
30 |
+
"qk_layer_norms": false,
|
31 |
+
"qk_layer_norms_perceiver": false,
|
32 |
+
"resampler_depth": 2,
|
33 |
+
"resampler_head_dim": 8,
|
34 |
+
"resampler_n_heads": 2,
|
35 |
+
"resampler_n_latents": 16,
|
36 |
+
"rms_norm_eps": 1e-06,
|
37 |
+
"tie_word_embeddings": false,
|
38 |
+
"torch_dtype": "float16",
|
39 |
+
"transformers_version": "4.28.0.dev0",
|
40 |
+
"use_cache": true,
|
41 |
+
"use_resampler": true,
|
42 |
+
"vision_embed_dim": 32,
|
43 |
+
"vision_image_size": 30,
|
44 |
+
"vision_model_name": "hf-internal-testing/tiny-random-clip",
|
45 |
+
"vision_model_params": "{}",
|
46 |
+
"vocab_size": 32000,
|
47 |
+
"word_embed_proj_dim": 16
|
48 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_new_tokens": 100,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"transformers_version": "4.28.0.dev0"
|
8 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:75a0a1c4fb659b987a3e534aa73c467a8e28dacabd4835022425ab528e496621
|
3 |
+
size 6467421
|