casperhansen
commited on
Commit
•
7a642f3
1
Parent(s):
40e921f
Upload folder using huggingface_hub
Browse files- config.json +73 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- preprocessor_config.json +52 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +65 -0
config.json
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/root/.cache/huggingface/hub/models--llava-hf--llava-v1.6-mistral-7b-hf/snapshots/75e686c43a9492f588490392b20fa7ac84aa57a7",
|
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 |
+
"bits": 4,
|
34 |
+
"group_size": 128,
|
35 |
+
"modules_to_not_convert": null,
|
36 |
+
"quant_method": "awq",
|
37 |
+
"version": "gemm",
|
38 |
+
"zero_point": true
|
39 |
+
},
|
40 |
+
"text_config": {
|
41 |
+
"_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
|
42 |
+
"architectures": [
|
43 |
+
"MistralForCausalLM"
|
44 |
+
],
|
45 |
+
"intermediate_size": 14336,
|
46 |
+
"max_position_embeddings": 32768,
|
47 |
+
"model_type": "mistral",
|
48 |
+
"num_key_value_heads": 8,
|
49 |
+
"rms_norm_eps": 1e-05,
|
50 |
+
"rope_theta": 1000000.0,
|
51 |
+
"sliding_window": null,
|
52 |
+
"torch_dtype": "bfloat16",
|
53 |
+
"vocab_size": 32064
|
54 |
+
},
|
55 |
+
"tie_word_embeddings": false,
|
56 |
+
"torch_dtype": "float16",
|
57 |
+
"transformers_version": "4.42.4",
|
58 |
+
"use_image_newline_parameter": true,
|
59 |
+
"vision_config": {
|
60 |
+
"hidden_size": 1024,
|
61 |
+
"image_size": 336,
|
62 |
+
"intermediate_size": 4096,
|
63 |
+
"model_type": "clip_vision_model",
|
64 |
+
"num_attention_heads": 16,
|
65 |
+
"num_hidden_layers": 24,
|
66 |
+
"patch_size": 14,
|
67 |
+
"projection_dim": 768,
|
68 |
+
"vocab_size": 32000
|
69 |
+
},
|
70 |
+
"vision_feature_layer": -2,
|
71 |
+
"vision_feature_select_strategy": "default",
|
72 |
+
"vocab_size": 32064
|
73 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"do_sample": true,
|
5 |
+
"eos_token_id": 2,
|
6 |
+
"transformers_version": "4.42.4"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8de2dc3471c1a1a7c3e4f29fb60cd3a7e544d1d6c8204aa7792dca6d0bcd1b0d
|
3 |
+
size 4800976520
|
preprocessor_config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_pad": true,
|
11 |
+
"do_rescale": true,
|
12 |
+
"do_resize": true,
|
13 |
+
"image_grid_pinpoints": [
|
14 |
+
[
|
15 |
+
336,
|
16 |
+
672
|
17 |
+
],
|
18 |
+
[
|
19 |
+
672,
|
20 |
+
336
|
21 |
+
],
|
22 |
+
[
|
23 |
+
672,
|
24 |
+
672
|
25 |
+
],
|
26 |
+
[
|
27 |
+
1008,
|
28 |
+
336
|
29 |
+
],
|
30 |
+
[
|
31 |
+
336,
|
32 |
+
1008
|
33 |
+
]
|
34 |
+
],
|
35 |
+
"image_mean": [
|
36 |
+
0.48145466,
|
37 |
+
0.4578275,
|
38 |
+
0.40821073
|
39 |
+
],
|
40 |
+
"image_processor_type": "LlavaNextImageProcessor",
|
41 |
+
"image_std": [
|
42 |
+
0.26862954,
|
43 |
+
0.26130258,
|
44 |
+
0.27577711
|
45 |
+
],
|
46 |
+
"processor_class": "LlavaNextProcessor",
|
47 |
+
"resample": 3,
|
48 |
+
"rescale_factor": 0.00392156862745098,
|
49 |
+
"size": {
|
50 |
+
"shortest_edge": 336
|
51 |
+
}
|
52 |
+
}
|
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_config.json
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": null,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"0": {
|
7 |
+
"content": "<unk>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"2": {
|
23 |
+
"content": "</s>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": false,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": true
|
29 |
+
},
|
30 |
+
"32000": {
|
31 |
+
"content": "<image>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false,
|
36 |
+
"special": true
|
37 |
+
},
|
38 |
+
"32001": {
|
39 |
+
"content": "<pad>",
|
40 |
+
"lstrip": false,
|
41 |
+
"normalized": false,
|
42 |
+
"rstrip": false,
|
43 |
+
"single_word": false,
|
44 |
+
"special": true
|
45 |
+
}
|
46 |
+
},
|
47 |
+
"additional_special_tokens": [],
|
48 |
+
"bos_token": "<s>",
|
49 |
+
"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 %}",
|
50 |
+
"clean_up_tokenization_spaces": false,
|
51 |
+
"eos_token": "</s>",
|
52 |
+
"legacy": true,
|
53 |
+
"max_length": null,
|
54 |
+
"model_max_length": 1000000000000000019884624838656,
|
55 |
+
"pad_to_multiple_of": null,
|
56 |
+
"pad_token": "<pad>",
|
57 |
+
"pad_token_type_id": 0,
|
58 |
+
"padding_side": "left",
|
59 |
+
"processor_class": "LlavaNextProcessor",
|
60 |
+
"sp_model_kwargs": {},
|
61 |
+
"spaces_between_special_tokens": false,
|
62 |
+
"tokenizer_class": "LlamaTokenizer",
|
63 |
+
"unk_token": "<unk>",
|
64 |
+
"use_default_system_prompt": false
|
65 |
+
}
|