Vision-CAIR commited on
Commit
cc21574
1 Parent(s): 5c426cc

Upload folder using huggingface_hub

Browse files
.DS_Store ADDED
Binary file (6.15 kB). View file
 
config.json ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/tmp/iopath_cache/manifold_cache/tree/users/shenx/models/checkpoints/Cambrian_Qwen2_ov_query_drop",
3
+ "architectures": [
4
+ "CambrianQwenForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 151643,
9
+ "connect_layer": 2,
10
+ "connector_depth": 3,
11
+ "connector_only": true,
12
+ "dino_threshold": 0.83,
13
+ "drop_threshold": 0.8,
14
+ "eos_token_id": 151645,
15
+ "frame_pos": false,
16
+ "freeze_mm_mlp_adapter": false,
17
+ "hidden_act": "silu",
18
+ "hidden_size": 3584,
19
+ "highres": false,
20
+ "highres_connect": false,
21
+ "image_aspect_ratio": "pad",
22
+ "image_position": 91,
23
+ "image_token_len": 576,
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 18944,
26
+ "is_image_newline": true,
27
+ "is_st_sampler": false,
28
+ "lowres_token": 8,
29
+ "max_position_embeddings": 32768,
30
+ "max_window_layers": 28,
31
+ "mm_patch_merge_type": "flat",
32
+ "mm_projector_lr": null,
33
+ "mm_projector_type": "sva",
34
+ "mm_use_im_patch_token": false,
35
+ "mm_use_im_start_end": false,
36
+ "mm_vision_sampler_lr": null,
37
+ "mm_vision_select_feature": "patch",
38
+ "mm_vision_select_layer": -2,
39
+ "mm_vision_tower_aux_list": [
40
+ "siglip/CLIP-ViT-SO400M-14-384",
41
+ "facebook/dinov2-giant-res378"
42
+ ],
43
+ "mm_vision_tower_aux_token_len_list": [
44
+ 576,
45
+ 576
46
+ ],
47
+ "mm_vision_tower_lr": null,
48
+ "model_type": "cambrian_qwen",
49
+ "num_attention_heads": 28,
50
+ "num_hidden_layers": 28,
51
+ "num_key_value_heads": 4,
52
+ "num_of_vision_sampler_layers": 10,
53
+ "num_query_group": 1,
54
+ "pretraining_tp": 1,
55
+ "query_num_list": [
56
+ 576
57
+ ],
58
+ "rms_norm_eps": 1e-06,
59
+ "rope_scaling": null,
60
+ "rope_theta": 1000000.0,
61
+ "sliding_window": null,
62
+ "spmd_debug": null,
63
+ "spmd_fsdp_sharding": null,
64
+ "spmd_mesh": null,
65
+ "start_of_vision_sampler_layers": 0,
66
+ "stride_of_vision_sampler_layers": 3,
67
+ "tie_word_embeddings": false,
68
+ "tokenizer_model_max_length": 8192,
69
+ "tokenizer_padding_side": "right",
70
+ "torch_dtype": "float32",
71
+ "transformers_version": "4.44.2",
72
+ "tune_mm_mlp_adapter": false,
73
+ "unfreeze_mm_vision_tower": false,
74
+ "use_cache": false,
75
+ "use_mm_proj": true,
76
+ "use_pos_skipping": false,
77
+ "use_sliding_window": false,
78
+ "vision_hidden_size": 1024,
79
+ "vision_tower_aux_token_len_list": [
80
+ 576,
81
+ 576
82
+ ],
83
+ "vocab_size": 152064
84
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.05,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.40.0.dev0"
14
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3584ed7ff1371bad4be307b8959d193ff3fa152164a9d47468e80245afa1c0f6
3
+ size 15343470478
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|im_end|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "pad_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ }
20
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<image>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ }
36
+ },
37
+ "additional_special_tokens": [
38
+ "<|im_start|>",
39
+ "<|im_end|>"
40
+ ],
41
+ "bos_token": null,
42
+ "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
43
+ "clean_up_tokenization_spaces": false,
44
+ "eos_token": "<|im_end|>",
45
+ "errors": "replace",
46
+ "model_max_length": 32768,
47
+ "pad_token": "<|endoftext|>",
48
+ "padding_side": "right",
49
+ "processor_class": "LlavaProcessor",
50
+ "split_special_tokens": false,
51
+ "tokenizer_class": "Qwen2Tokenizer",
52
+ "unk_token": null
53
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff