panoyo9829 commited on
Commit
0de43f7
1 Parent(s): f7f5adb

Upload folder using huggingface_hub

Browse files
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<image>": 32000,
3
+ "<pad>": 32001
4
+ }
config.json ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "llava-v1.6-mistral-7b-hf",
3
+ "architectures": [
4
+ "LlavaNextForConditionalGeneration"
5
+ ],
6
+ "ignore_index": -100,
7
+ "image_grid_pinpoints": [
8
+ [
9
+ 336,
10
+ 672
11
+ ],
12
+ [
13
+ 672,
14
+ 336
15
+ ],
16
+ [
17
+ 672,
18
+ 672
19
+ ],
20
+ [
21
+ 1008,
22
+ 336
23
+ ],
24
+ [
25
+ 336,
26
+ 1008
27
+ ]
28
+ ],
29
+ "image_token_index": 32000,
30
+ "model_type": "llava_next",
31
+ "projector_hidden_act": "gelu",
32
+ "quantization_config": {
33
+ "_load_in_4bit": true,
34
+ "_load_in_8bit": false,
35
+ "bnb_4bit_compute_dtype": "float16",
36
+ "bnb_4bit_quant_storage": "uint8",
37
+ "bnb_4bit_quant_type": "nf4",
38
+ "bnb_4bit_use_double_quant": false,
39
+ "llm_int8_enable_fp32_cpu_offload": false,
40
+ "llm_int8_has_fp16_weight": false,
41
+ "llm_int8_skip_modules": null,
42
+ "llm_int8_threshold": 6.0,
43
+ "load_in_4bit": true,
44
+ "load_in_8bit": false,
45
+ "quant_method": "bitsandbytes"
46
+ },
47
+ "text_config": {
48
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
49
+ "architectures": [
50
+ "MistralForCausalLM"
51
+ ],
52
+ "intermediate_size": 14336,
53
+ "max_position_embeddings": 32768,
54
+ "model_type": "mistral",
55
+ "num_key_value_heads": 8,
56
+ "rms_norm_eps": 1e-05,
57
+ "rope_theta": 1000000.0,
58
+ "sliding_window": null,
59
+ "torch_dtype": "bfloat16",
60
+ "vocab_size": 32064
61
+ },
62
+ "torch_dtype": "float16",
63
+ "transformers_version": "4.39.1",
64
+ "use_image_newline_parameter": true,
65
+ "vision_config": {
66
+ "hidden_size": 1024,
67
+ "image_size": 336,
68
+ "intermediate_size": 4096,
69
+ "model_type": "clip_vision_model",
70
+ "num_attention_heads": 16,
71
+ "num_hidden_layers": 24,
72
+ "patch_size": 14,
73
+ "projection_dim": 768,
74
+ "vocab_size": 32000
75
+ },
76
+ "vision_feature_layer": -2,
77
+ "vision_feature_select_strategy": "default",
78
+ "vocab_size": 32064
79
+ }
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.39.1"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92bb778a2f9f463be59c526fcf5f871d351a2a6e1e844c02cb4b18148f56dd1d
3
+ size 4636766058
preprocessor_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "aspect_ratio_setting": "anyres",
3
+ "crop_size": {
4
+ "height": 336,
5
+ "width": 336
6
+ },
7
+ "do_center_crop": true,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_rescale": true,
11
+ "do_resize": true,
12
+ "image_grid_pinpoints": [
13
+ [
14
+ 336,
15
+ 672
16
+ ],
17
+ [
18
+ 672,
19
+ 336
20
+ ],
21
+ [
22
+ 672,
23
+ 672
24
+ ],
25
+ [
26
+ 1008,
27
+ 336
28
+ ],
29
+ [
30
+ 336,
31
+ 1008
32
+ ]
33
+ ],
34
+ "image_mean": [
35
+ 0.48145466,
36
+ 0.4578275,
37
+ 0.40821073
38
+ ],
39
+ "image_processor_type": "LlavaNextImageProcessor",
40
+ "image_std": [
41
+ 0.26862954,
42
+ 0.26130258,
43
+ 0.27577711
44
+ ],
45
+ "processor_class": "LlavaNextProcessor",
46
+ "resample": 3,
47
+ "rescale_factor": 0.00392156862745098,
48
+ "size": {
49
+ "shortest_edge": 336
50
+ }
51
+ }
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": "<pad>",
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,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "32000": {
30
+ "content": "<image>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32001": {
38
+ "content": "<pad>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ }
45
+ },
46
+ "additional_special_tokens": [],
47
+ "bos_token": "<s>",
48
+ "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 %}",
49
+ "clean_up_tokenization_spaces": false,
50
+ "eos_token": "</s>",
51
+ "legacy": true,
52
+ "max_length": null,
53
+ "model_max_length": 1000000000000000019884624838656,
54
+ "pad_to_multiple_of": null,
55
+ "pad_token": "<pad>",
56
+ "pad_token_type_id": 0,
57
+ "padding_side": "left",
58
+ "processor_class": "LlavaNextProcessor",
59
+ "sp_model_kwargs": {},
60
+ "spaces_between_special_tokens": false,
61
+ "tokenizer_class": "LlamaTokenizer",
62
+ "unk_token": "<unk>",
63
+ "use_default_system_prompt": false
64
+ }