panoyo9829
commited on
Commit
•
d9a4369
1
Parent(s):
8bc9eb3
Upload folder using huggingface_hub
Browse files- config.json +84 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +44 -0
config.json
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "models/llava-v1.6-mistral-7b",
|
3 |
+
"architectures": [
|
4 |
+
"LlavaMistralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"freeze_mm_mlp_adapter": false,
|
10 |
+
"freeze_mm_vision_resampler": false,
|
11 |
+
"hidden_act": "silu",
|
12 |
+
"hidden_size": 4096,
|
13 |
+
"image_aspect_ratio": "anyres",
|
14 |
+
"image_crop_resolution": 224,
|
15 |
+
"image_grid_pinpoints": [
|
16 |
+
[
|
17 |
+
336,
|
18 |
+
672
|
19 |
+
],
|
20 |
+
[
|
21 |
+
672,
|
22 |
+
336
|
23 |
+
],
|
24 |
+
[
|
25 |
+
672,
|
26 |
+
672
|
27 |
+
],
|
28 |
+
[
|
29 |
+
1008,
|
30 |
+
336
|
31 |
+
],
|
32 |
+
[
|
33 |
+
336,
|
34 |
+
1008
|
35 |
+
]
|
36 |
+
],
|
37 |
+
"image_split_resolution": 224,
|
38 |
+
"initializer_range": 0.02,
|
39 |
+
"intermediate_size": 14336,
|
40 |
+
"max_position_embeddings": 32768,
|
41 |
+
"mm_hidden_size": 1024,
|
42 |
+
"mm_patch_merge_type": "spatial_unpad",
|
43 |
+
"mm_projector_lr": null,
|
44 |
+
"mm_projector_type": "mlp2x_gelu",
|
45 |
+
"mm_resampler_type": null,
|
46 |
+
"mm_use_im_patch_token": false,
|
47 |
+
"mm_use_im_start_end": false,
|
48 |
+
"mm_vision_select_feature": "patch",
|
49 |
+
"mm_vision_select_layer": -2,
|
50 |
+
"mm_vision_tower": "openai/clip-vit-large-patch14-336",
|
51 |
+
"mm_vision_tower_lr": 2e-06,
|
52 |
+
"model_type": "llava_mistral",
|
53 |
+
"num_attention_heads": 32,
|
54 |
+
"num_hidden_layers": 32,
|
55 |
+
"num_key_value_heads": 8,
|
56 |
+
"quantization_config": {
|
57 |
+
"_load_in_4bit": true,
|
58 |
+
"_load_in_8bit": false,
|
59 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
60 |
+
"bnb_4bit_quant_type": "nf4",
|
61 |
+
"bnb_4bit_use_double_quant": false,
|
62 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
63 |
+
"llm_int8_has_fp16_weight": false,
|
64 |
+
"llm_int8_skip_modules": null,
|
65 |
+
"llm_int8_threshold": 6.0,
|
66 |
+
"load_in_4bit": true,
|
67 |
+
"load_in_8bit": false,
|
68 |
+
"quant_method": "bitsandbytes"
|
69 |
+
},
|
70 |
+
"rms_norm_eps": 1e-05,
|
71 |
+
"rope_theta": 1000000.0,
|
72 |
+
"sliding_window": null,
|
73 |
+
"tie_word_embeddings": false,
|
74 |
+
"tokenizer_model_max_length": 4096,
|
75 |
+
"tokenizer_padding_side": "left",
|
76 |
+
"torch_dtype": "float16",
|
77 |
+
"transformers_version": "4.38.2",
|
78 |
+
"tune_mm_mlp_adapter": false,
|
79 |
+
"tune_mm_vision_resampler": false,
|
80 |
+
"unfreeze_mm_vision_tower": true,
|
81 |
+
"use_cache": true,
|
82 |
+
"use_mm_proj": true,
|
83 |
+
"vocab_size": 32000
|
84 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.38.2"
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:08b274ca8d3a4072695cfcb5459b5101d970f4bd2c5dd8d3a7c8d20c214d2cf4
|
3 |
+
size 4635718578
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "<unk>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<unk>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
3 |
+
size 493443
|
tokenizer_config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<unk>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"additional_special_tokens": [],
|
31 |
+
"bos_token": "<s>",
|
32 |
+
"chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": true,
|
36 |
+
"model_max_length": 4096,
|
37 |
+
"pad_token": "<unk>",
|
38 |
+
"padding_side": "left",
|
39 |
+
"sp_model_kwargs": {},
|
40 |
+
"spaces_between_special_tokens": false,
|
41 |
+
"tokenizer_class": "LlamaTokenizer",
|
42 |
+
"unk_token": "<unk>",
|
43 |
+
"use_default_system_prompt": false
|
44 |
+
}
|