Shura89 commited on
Commit
b0ac547
·
verified ·
1 Parent(s): ab8b5f1

(Trained with Unsloth)

Browse files
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<image>": 32000,
3
+ "<pad>": 32001
4
+ }
config.json ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "unsloth/llava-v1.6-mistral-7b-hf-bnb-4bit",
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_seq_length": 576,
30
+ "image_token_index": 32000,
31
+ "model_type": "llava_next",
32
+ "pad_token_id": 32001,
33
+ "projector_hidden_act": "gelu",
34
+ "quantization_config": {
35
+ "bnb_4bit_compute_dtype": "bfloat16",
36
+ "bnb_4bit_quant_type": "nf4",
37
+ "bnb_4bit_use_double_quant": true,
38
+ "llm_int8_enable_fp32_cpu_offload": false,
39
+ "llm_int8_has_fp16_weight": false,
40
+ "llm_int8_skip_modules": null,
41
+ "llm_int8_threshold": 6.0,
42
+ "load_in_4bit": true,
43
+ "load_in_8bit": false,
44
+ "quant_method": "bitsandbytes"
45
+ },
46
+ "text_config": {
47
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
48
+ "architectures": [
49
+ "MistralForCausalLM"
50
+ ],
51
+ "intermediate_size": 14336,
52
+ "max_position_embeddings": 32768,
53
+ "model_type": "mistral",
54
+ "num_key_value_heads": 8,
55
+ "rms_norm_eps": 1e-05,
56
+ "rope_theta": 1000000.0,
57
+ "sliding_window": null,
58
+ "torch_dtype": "bfloat16",
59
+ "vocab_size": 32064
60
+ },
61
+ "tie_word_embeddings": false,
62
+ "torch_dtype": "bfloat16",
63
+ "transformers_version": "4.47.1",
64
+ "unsloth_fixed": true,
65
+ "unsloth_version": "2025.1.7",
66
+ "use_image_newline_parameter": true,
67
+ "vision_config": {
68
+ "hidden_size": 1024,
69
+ "image_size": 336,
70
+ "intermediate_size": 4096,
71
+ "model_type": "clip_vision_model",
72
+ "num_attention_heads": 16,
73
+ "num_hidden_layers": 24,
74
+ "patch_size": 14,
75
+ "projection_dim": 768,
76
+ "vocab_size": 32000
77
+ },
78
+ "vision_feature_layer": -2,
79
+ "vision_feature_select_strategy": "default",
80
+ "vocab_size": 32064
81
+ }
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": 32001,
6
+ "transformers_version": "4.47.1"
7
+ }
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,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. {% for message in messages %}{% if message['role'] == 'user' %} USER: {% else %}ASSISTANT: {% endif %}{% for item in message['content'] %}{% if item['type'] == 'text' %}{{ item['text'] }}{% elif item['type'] == 'image' %}<image>{% endif %}{% endfor %} {% if message['role'] == 'user' %} {% else %}{{eos_token}}{% endif %}{% endfor %}",
50
+ "clean_up_tokenization_spaces": false,
51
+ "eos_token": "</s>",
52
+ "extra_special_tokens": {},
53
+ "legacy": true,
54
+ "max_length": null,
55
+ "model_max_length": 1000000000000000019884624838656,
56
+ "pad_to_multiple_of": null,
57
+ "pad_token": "<pad>",
58
+ "pad_token_type_id": 0,
59
+ "padding_side": "left",
60
+ "processor_class": "LlavaNextProcessor",
61
+ "sp_model_kwargs": {},
62
+ "spaces_between_special_tokens": false,
63
+ "tokenizer_class": "LlamaTokenizer",
64
+ "unk_token": "<unk>",
65
+ "use_default_system_prompt": false
66
+ }