globcy commited on
Commit
c90ef5b
·
verified ·
1 Parent(s): a97842e

Upload folder using huggingface_hub

Browse files
chat_template.jinja ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ {% for message in messages %}{% if message['role'] != 'system' %}{{ message['role'].upper() + ': '}}{% endif %}{# Render all images first #}{% for content in message['content'] | selectattr('type', 'equalto', 'image') %}{{ '<image>
2
+ ' }}{% endfor %}{# Render all text next #}{% if message['role'] != 'assistant' %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{{ content['text'] + ' '}}{% endfor %}{% else %}{% for content in message['content'] | selectattr('type', 'equalto', 'text') %}{% generation %}{{ content['text'] + ' '}}{% endgeneration %}{% endfor %}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'ASSISTANT:' }}{% endif %}
config.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlavaForConditionalGeneration"
4
+ ],
5
+ "dtype": "float32",
6
+ "ignore_index": -100,
7
+ "image_seq_length": 576,
8
+ "image_token_index": 32000,
9
+ "model_type": "llava",
10
+ "multimodal_projector_bias": true,
11
+ "projector_hidden_act": "gelu",
12
+ "text_config": {
13
+ "_name_or_path": "lmsys/vicuna-7b-v1.5",
14
+ "architectures": [
15
+ "LlamaForCausalLM"
16
+ ],
17
+ "attention_bias": false,
18
+ "attention_dropout": 0.0,
19
+ "bos_token_id": 1,
20
+ "dtype": "float16",
21
+ "eos_token_id": 2,
22
+ "head_dim": 128,
23
+ "hidden_act": "silu",
24
+ "hidden_size": 4096,
25
+ "initializer_range": 0.02,
26
+ "intermediate_size": 11008,
27
+ "max_position_embeddings": 4096,
28
+ "mlp_bias": false,
29
+ "model_type": "llama",
30
+ "num_attention_heads": 32,
31
+ "num_hidden_layers": 32,
32
+ "num_key_value_heads": 32,
33
+ "pad_token_id": 0,
34
+ "pretraining_tp": 1,
35
+ "rms_norm_eps": 1e-05,
36
+ "rope_parameters": {
37
+ "rope_theta": 10000.0,
38
+ "rope_type": "default"
39
+ },
40
+ "tie_word_embeddings": false,
41
+ "use_cache": true,
42
+ "vocab_size": 32000
43
+ },
44
+ "tie_word_embeddings": false,
45
+ "transformers_version": "5.3.0",
46
+ "vision_config": {
47
+ "add_cross_attention": false,
48
+ "attention_dropout": 0.0,
49
+ "bos_token_id": null,
50
+ "cross_attention_hidden_size": null,
51
+ "decoder_start_token_id": null,
52
+ "dropout": 0.0,
53
+ "eos_token_id": null,
54
+ "finetuning_task": null,
55
+ "hidden_act": "quick_gelu",
56
+ "hidden_size": 1024,
57
+ "image_size": 336,
58
+ "initializer_factor": 1.0,
59
+ "initializer_range": 0.02,
60
+ "intermediate_size": 4096,
61
+ "is_decoder": false,
62
+ "layer_norm_eps": 1e-05,
63
+ "model_type": "clip_vision_model",
64
+ "num_attention_heads": 16,
65
+ "num_channels": 3,
66
+ "num_hidden_layers": 24,
67
+ "pad_token_id": null,
68
+ "patch_size": 14,
69
+ "prefix": null,
70
+ "projection_dim": 768,
71
+ "pruned_heads": {},
72
+ "sep_token_id": null,
73
+ "task_specific_params": null,
74
+ "tf_legacy_loss": false,
75
+ "tie_encoder_decoder": false,
76
+ "tie_word_embeddings": true,
77
+ "tokenizer_class": null,
78
+ "torchscript": false,
79
+ "use_bfloat16": false
80
+ },
81
+ "vision_feature_layer": -2,
82
+ "vision_feature_select_strategy": "default"
83
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 0,
8
+ "transformers_version": "5.3.0",
9
+ "use_cache": true
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b05c004a0cf0fab4d86cc0495a425bb16ed0fb55e1cd7c4e2a75d9d59747c6fc
3
+ size 15037015824
processor_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "crop_size": {
4
+ "height": 336,
5
+ "width": 336
6
+ },
7
+ "data_format": "channels_first",
8
+ "do_center_crop": true,
9
+ "do_convert_rgb": true,
10
+ "do_normalize": true,
11
+ "do_rescale": true,
12
+ "do_resize": true,
13
+ "image_mean": [
14
+ 0.48145466,
15
+ 0.4578275,
16
+ 0.40821073
17
+ ],
18
+ "image_processor_type": "CLIPImageProcessorFast",
19
+ "image_std": [
20
+ 0.26862954,
21
+ 0.26130258,
22
+ 0.27577711
23
+ ],
24
+ "resample": 3,
25
+ "rescale_factor": 0.00392156862745098,
26
+ "size": {
27
+ "shortest_edge": 336
28
+ }
29
+ },
30
+ "image_token": "<image>",
31
+ "num_additional_image_tokens": 1,
32
+ "patch_size": 14,
33
+ "processor_class": "LlavaProcessor",
34
+ "vision_feature_select_strategy": "default"
35
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "image_token": "<image>",
8
+ "is_local": false,
9
+ "legacy": false,
10
+ "model_max_length": 1000000000000000019884624838656,
11
+ "model_specific_special_tokens": {
12
+ "image_token": "<image>"
13
+ },
14
+ "pad_token": "<pad>",
15
+ "padding_side": "left",
16
+ "processor_class": "LlavaProcessor",
17
+ "sp_model_kwargs": {},
18
+ "tokenizer_class": "TokenizersBackend",
19
+ "unk_token": "<unk>",
20
+ "use_default_system_prompt": false
21
+ }