Upload 6 files
Browse files- config.json +61 -0
- generation_config.json +7 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +24 -0
- tokenizer.model +3 -0
- tokenizer_config.json +37 -0
config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_mlp_class": "LLaMAMLP",
|
3 |
+
"_name_or_path": "mtgv/MobileVLM_V2-3B",
|
4 |
+
"_norm_class": "RMSNorm",
|
5 |
+
"architectures": [
|
6 |
+
"MobileLlamaForCausalLM"
|
7 |
+
],
|
8 |
+
"bias": false,
|
9 |
+
"block_size": 2048,
|
10 |
+
"bos_token_id": 1,
|
11 |
+
"eos_token_id": 2,
|
12 |
+
"freeze_mm_mlp_adapter": false,
|
13 |
+
"gelu_approximate": "none",
|
14 |
+
"hidden_act": "silu",
|
15 |
+
"hidden_size": 2560,
|
16 |
+
"image_aspect_ratio": "pad",
|
17 |
+
"image_grid_pinpoints": null,
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 6912,
|
20 |
+
"lm_head_bias": false,
|
21 |
+
"max_position_embeddings": 2048,
|
22 |
+
"mm_hidden_size": 1024,
|
23 |
+
"mm_projector_lr": null,
|
24 |
+
"mm_projector_type": "ldpnetv2",
|
25 |
+
"mm_use_im_patch_token": false,
|
26 |
+
"mm_use_im_start_end": false,
|
27 |
+
"mm_vision_select_feature": "patch",
|
28 |
+
"mm_vision_select_layer": -2,
|
29 |
+
"mm_vision_tower": "openai/clip-vit-large-patch14-336",
|
30 |
+
"model_type": "mobilevlm",
|
31 |
+
"n_embd": 2560,
|
32 |
+
"n_head": 16,
|
33 |
+
"n_layer": 32,
|
34 |
+
"n_query_groups": 16,
|
35 |
+
"name": "huggy_llama_3b",
|
36 |
+
"norm_eps": 1e-06,
|
37 |
+
"num_attention_heads": 32,
|
38 |
+
"num_hidden_layers": 32,
|
39 |
+
"num_key_value_heads": 32,
|
40 |
+
"org": "meta",
|
41 |
+
"pad_token_id": 0,
|
42 |
+
"padded_vocab_size": 32000,
|
43 |
+
"padding_multiple": 64,
|
44 |
+
"parallel_residual": false,
|
45 |
+
"pretraining_tp": 1,
|
46 |
+
"rms_norm_eps": 1e-06,
|
47 |
+
"rope_base": 10000,
|
48 |
+
"rope_condense_ratio": 1,
|
49 |
+
"rope_scaling": null,
|
50 |
+
"rope_theta": 10000.0,
|
51 |
+
"rotary_percentage": 1.0,
|
52 |
+
"shared_attention_norm": false,
|
53 |
+
"tie_word_embeddings": false,
|
54 |
+
"torch_dtype": "bfloat16",
|
55 |
+
"transformers_version": "4.33.1",
|
56 |
+
"tune_mm_mlp_adapter": false,
|
57 |
+
"use_cache": true,
|
58 |
+
"use_mm_proj": true,
|
59 |
+
"vision_tower_type": "clip",
|
60 |
+
"vocab_size": 32000
|
61 |
+
}
|
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.33.1"
|
7 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8034fcfedf3925c8131885118001fbfda2e22728a183eacd2e9783cbc7dd09d0
|
3 |
+
size 6028789381
|
special_tokens_map.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": "<unk>",
|
17 |
+
"unk_token": {
|
18 |
+
"content": "<unk>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": true,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
}
|
24 |
+
}
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"bos_token": {
|
5 |
+
"__type": "AddedToken",
|
6 |
+
"content": "<s>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"clean_up_tokenization_spaces": false,
|
13 |
+
"eos_token": {
|
14 |
+
"__type": "AddedToken",
|
15 |
+
"content": "</s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": true,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false
|
20 |
+
},
|
21 |
+
"legacy": true,
|
22 |
+
"model_max_length": 2048,
|
23 |
+
"pad_token": null,
|
24 |
+
"padding_side": "right",
|
25 |
+
"sp_model_kwargs": {},
|
26 |
+
"spaces_between_special_tokens": false,
|
27 |
+
"tokenizer_class": "LlamaTokenizer",
|
28 |
+
"unk_token": {
|
29 |
+
"__type": "AddedToken",
|
30 |
+
"content": "<unk>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": true,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false
|
35 |
+
},
|
36 |
+
"use_default_system_prompt": true
|
37 |
+
}
|