anonymous commited on
Commit
76b52bb
·
verified ·
1 Parent(s): 577e091

Upload 10 files

Browse files
README.md CHANGED
@@ -1,3 +1,3 @@
1
  ---
2
- license: apache-2.0
3
  ---
 
1
  ---
2
+ license: mit
3
  ---
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image>": 32000
3
+ }
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "utischoolnlp/ReVision-250M-256-16-random",
3
+ "architectures": [
4
+ "ReVisionForConditionalGeneration"
5
+ ],
6
+ "hidden_size": 768,
7
+ "image_token_index": 32000,
8
+ "model_type": "revision",
9
+ "projection_dim": 768,
10
+ "text_config": {
11
+ "_name_or_path": "OuteAI/Lite-Mistral-150M-v2-Instruct",
12
+ "architectures": [
13
+ "MistralForCausalLM"
14
+ ],
15
+ "head_dim": 48,
16
+ "hidden_size": 768,
17
+ "intermediate_size": 3072,
18
+ "max_position_embeddings": 2048,
19
+ "model_type": "mistral",
20
+ "num_attention_heads": 16,
21
+ "num_hidden_layers": 12,
22
+ "num_image_tokens": 256,
23
+ "torch_dtype": "float32",
24
+ "vocab_size": 32768
25
+ },
26
+ "torch_dtype": "float32",
27
+ "transformers_version": "4.44.0",
28
+ "vision_config": {
29
+ "_name_or_path": "google/siglip-base-patch16-256",
30
+ "image_size": 256,
31
+ "model_type": "siglip_vision_model",
32
+ "projection_dim": 768
33
+ }
34
+ }
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.44.0"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7197a5fd8f8700b250e003e1c90176f6f55b1ab3c105831ab821dd645cc91812
3
+ size 1000202064
preprocessor_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "SiglipImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "processor_class": "ReVisionProcessor",
18
+ "resample": 3,
19
+ "rescale_factor": 0.00392156862745098,
20
+ "size": {
21
+ "height": 256,
22
+ "width": 256
23
+ }
24
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "<image>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ }
10
+ ],
11
+ "bos_token": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "eos_token": {
19
+ "content": "</s>",
20
+ "lstrip": false,
21
+ "normalized": false,
22
+ "rstrip": false,
23
+ "single_word": false
24
+ },
25
+ "pad_token": "</s>",
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
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,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
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
+ },
39
+ "additional_special_tokens": [
40
+ "<image>"
41
+ ],
42
+ "bos_token": "<s>",
43
+ "chat_template": "{% for message in messages %}{{bos_token + message['role'] + '\n' + message['content'] + eos_token + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ bos_token + 'assistant\n' }}{% endif %}",
44
+ "clean_up_tokenization_spaces": false,
45
+ "eos_token": "</s>",
46
+ "legacy": true,
47
+ "model_max_length": 1000000000000000019884624838656,
48
+ "pad_token": "</s>",
49
+ "processor_class": "ReVisionProcessor",
50
+ "sp_model_kwargs": {},
51
+ "spaces_between_special_tokens": false,
52
+ "tokenizer_class": "LlamaTokenizer",
53
+ "unk_token": "<unk>",
54
+ "use_default_system_prompt": false
55
+ }