Upload 7 files
Browse files- config.json +66 -0
- generation_config.json +10 -0
- preprocessor_config.json +14 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +37 -0
config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_commit_hash": null,
|
3 |
+
"_name_or_path": "shauray/Llava-Llama-2-7b-hf",
|
4 |
+
"model_type": "llavallama",
|
5 |
+
"architectures": [
|
6 |
+
"LlavaLlamaForCausalLM"
|
7 |
+
],
|
8 |
+
"llama_config": {
|
9 |
+
"_name_or_path": "",
|
10 |
+
"bos_token_id": 1,
|
11 |
+
"eos_token_id": 2,
|
12 |
+
"hidden_act": "silu",
|
13 |
+
"hidden_size": 4096,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 11008,
|
16 |
+
"max_position_embeddings": 4096,
|
17 |
+
"model_type": "llama",
|
18 |
+
"num_attention_heads": 32,
|
19 |
+
"num_hidden_layers": 32,
|
20 |
+
"num_key_value_heads": 32,
|
21 |
+
"pretraining_tp": 1,
|
22 |
+
"rms_norm_eps": 1e-06,
|
23 |
+
"rope_scaling": null,
|
24 |
+
"tie_word_embeddings": false,
|
25 |
+
"torch_dtype": "float16",
|
26 |
+
"transformers_version": "4.32.0.dev0",
|
27 |
+
"use_cache": true,
|
28 |
+
"vocab_size": 32000
|
29 |
+
},
|
30 |
+
"llava_config": {
|
31 |
+
"_name_or_path": "",
|
32 |
+
"bos_token_id": 1,
|
33 |
+
"eos_token_id": 2,
|
34 |
+
"freeze_mm_mlp_adapter": true,
|
35 |
+
"hidden_act": "silu",
|
36 |
+
"hidden_size": 4096,
|
37 |
+
"image_aspect_ratio": "square",
|
38 |
+
"image_grid_pinpoints": null,
|
39 |
+
"initializer_range": 0.02,
|
40 |
+
"intermediate_size": 11008,
|
41 |
+
"max_position_embeddings": 2048,
|
42 |
+
"mm_hidden_size": 1024,
|
43 |
+
"mm_resampler_type": null,
|
44 |
+
"mm_use_im_patch_token": false,
|
45 |
+
"mm_use_im_start_end": false,
|
46 |
+
"mm_vision_select_feature": "patch",
|
47 |
+
"mm_vision_select_layer": -2,
|
48 |
+
"mm_vision_tower": "openai/clip-vit-large-patch14",
|
49 |
+
"model_type": "llava",
|
50 |
+
"num_attention_heads": 32,
|
51 |
+
"num_hidden_layers": 32,
|
52 |
+
"num_key_value_heads": 32,
|
53 |
+
"pad_token_id": 0,
|
54 |
+
"pretraining_tp": 1,
|
55 |
+
"rms_norm_eps": 1e-06,
|
56 |
+
"rope_scaling": null,
|
57 |
+
"tie_word_embeddings": false,
|
58 |
+
"torch_dtype": "float16",
|
59 |
+
"transformers_version": "4.31.0",
|
60 |
+
"tune_mm_mlp_adapter": false,
|
61 |
+
"tune_mm_vision_resampler": false,
|
62 |
+
"use_cache": false,
|
63 |
+
"use_mm_proj": true,
|
64 |
+
"vocab_size": 32000
|
65 |
+
}
|
66 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"do_sample": true,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_length": 4096,
|
6 |
+
"pad_token_id": 0,
|
7 |
+
"temperature": 0.6,
|
8 |
+
"top_p": 0.9,
|
9 |
+
"transformers_version": "4.32.0.dev0"
|
10 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_convert_rgb": true,
|
3 |
+
"do_normalize": true,
|
4 |
+
"do_rescale": true,
|
5 |
+
"do_resize": true,
|
6 |
+
"image_mean": [0.48145466, 0.4578275, 0.40821073],
|
7 |
+
"image_processor_type": "CLIPImageProcessor",
|
8 |
+
"tokenizer_class": "LlamaTokenizer",
|
9 |
+
"image_std": [0.26862954, 0.26130258, 0.27577711],
|
10 |
+
"processor_class": "LlavaProcessor",
|
11 |
+
"resample": 3,
|
12 |
+
"rescale_factor": 0.00392156862745098,
|
13 |
+
"size": 224
|
14 |
+
}
|
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:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"bos_token": {
|
5 |
+
"__type": "AddedToken",
|
6 |
+
"content": "<s>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"clean_up_tokenization_spaces": false,
|
13 |
+
"eos_token": {
|
14 |
+
"__type": "AddedToken",
|
15 |
+
"content": "</s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false
|
20 |
+
},
|
21 |
+
"legacy": false,
|
22 |
+
"model_max_length": 1000000000000000019884624838656,
|
23 |
+
"pad_token": null,
|
24 |
+
"padding_side": "right",
|
25 |
+
"sp_model_kwargs": {},
|
26 |
+
"tokenizer_class": "LlamaTokenizer",
|
27 |
+
"unk_token": {
|
28 |
+
"__type": "AddedToken",
|
29 |
+
"content": "<unk>",
|
30 |
+
"lstrip": false,
|
31 |
+
"normalized": false,
|
32 |
+
"rstrip": false,
|
33 |
+
"single_word": false
|
34 |
+
},
|
35 |
+
"processor_class": "LlavaProcessor",
|
36 |
+
"is_fast": false
|
37 |
+
}
|