hf-transformers-bot commited on
Commit
2fb18be
·
verified ·
1 Parent(s): a77695e

Update tiny models for ChameleonModel

Browse files
config.json ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ChameleonModel"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 0,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 32,
14
+ "image_token_id": 4,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 37,
17
+ "is_decoder": false,
18
+ "max_position_embeddings": 512,
19
+ "mlp_bias": false,
20
+ "model_parallel_size": 1,
21
+ "model_type": "chameleon",
22
+ "num_attention_heads": 2,
23
+ "num_hidden_layers": 2,
24
+ "num_key_value_heads": 2,
25
+ "pad_token_id": 1,
26
+ "rms_norm_eps": 1e-05,
27
+ "rope_parameters": {
28
+ "rope_theta": 10000.0,
29
+ "rope_type": "default"
30
+ },
31
+ "swin_norm": false,
32
+ "tie_word_embeddings": false,
33
+ "transformers_version": "5.16.0.dev0",
34
+ "type_vocab_size": 16,
35
+ "use_cache": true,
36
+ "vocab_size": 65536,
37
+ "vocabulary_map": {
38
+ "\u0000": 0,
39
+ "\u0001": 1,
40
+ "\u0002": 2,
41
+ "\u0003": 3,
42
+ "\u0005": 5,
43
+ "\u0006": 6,
44
+ "\u0007": 7,
45
+ "\b": 8,
46
+ "\t": 9,
47
+ "\u000f": 15,
48
+ "\u0010": 16,
49
+ "\u0011": 17,
50
+ "\u0012": 18,
51
+ "\u0013": 19,
52
+ "\u0014": 20,
53
+ "\u0015": 21,
54
+ "\u0016": 22,
55
+ "\u0017": 23,
56
+ "\u0018": 24,
57
+ "\u0019": 25,
58
+ "\u001a": 26,
59
+ "\u001b": 27,
60
+ "\u001c": 28,
61
+ "\u001d": 29,
62
+ "\u001e": 30,
63
+ "\u001f": 31,
64
+ " ": 32,
65
+ "!": 33,
66
+ "\"": 34,
67
+ "#": 35,
68
+ "$": 36,
69
+ "%": 37,
70
+ "&": 38,
71
+ "'": 39,
72
+ "(": 40,
73
+ ")": 41,
74
+ "*": 42,
75
+ "+": 43,
76
+ ",": 44,
77
+ "-": 45,
78
+ ".": 46,
79
+ "/": 47,
80
+ "0": 48,
81
+ "1": 49,
82
+ "2": 50,
83
+ "3": 51,
84
+ "4": 52,
85
+ "5": 53,
86
+ "6": 54,
87
+ "7": 55,
88
+ "8": 56,
89
+ "9": 57,
90
+ ":": 58,
91
+ ";": 59,
92
+ "<": 60,
93
+ "<image>": 4,
94
+ "=": 61,
95
+ ">": 62,
96
+ "?": 63,
97
+ "@": 64,
98
+ "A": 65,
99
+ "B": 66,
100
+ "C": 67,
101
+ "D": 68,
102
+ "E": 69,
103
+ "F": 70,
104
+ "G": 71,
105
+ "H": 72,
106
+ "I": 73,
107
+ "IMGIMGBAZ": 10,
108
+ "IMGIMGBBZ": 11,
109
+ "IMGIMGBCZ": 12,
110
+ "IMGIMGBDZ": 13,
111
+ "IMGIMGBEZ": 14,
112
+ "J": 74,
113
+ "K": 75,
114
+ "L": 76,
115
+ "M": 77,
116
+ "N": 78,
117
+ "O": 79,
118
+ "P": 80,
119
+ "Q": 81,
120
+ "R": 82,
121
+ "S": 83,
122
+ "T": 84,
123
+ "U": 85,
124
+ "V": 86,
125
+ "W": 87,
126
+ "X": 88,
127
+ "Y": 89,
128
+ "Z": 90,
129
+ "[": 91,
130
+ "\\": 92,
131
+ "]": 93,
132
+ "^": 94,
133
+ "_": 95,
134
+ "`": 96,
135
+ "a": 97,
136
+ "b": 98
137
+ },
138
+ "vq_config": {
139
+ "attn_resolutions": null,
140
+ "attn_type": "vanilla",
141
+ "base_channels": 32,
142
+ "channel_multiplier": [
143
+ 1,
144
+ 2
145
+ ],
146
+ "double_latent": false,
147
+ "dropout": 0.0,
148
+ "embed_dim": 5,
149
+ "in_channels": 3,
150
+ "latent_channels": 5,
151
+ "model_type": "chameleon_vqgan",
152
+ "num_embeddings": 5,
153
+ "num_res_blocks": 2,
154
+ "resolution": 512
155
+ }
156
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5596aecae1a3380b5db59fe30f75b8e9658e6659b919b9073585eeffd6d34553
3
+ size 9851232
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 512,
4
+ "width": 512
5
+ },
6
+ "do_center_crop": true,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 1.0,
13
+ 1.0,
14
+ 1.0
15
+ ],
16
+ "image_processor_type": "ChameleonImageProcessor",
17
+ "image_std": [
18
+ 1.0,
19
+ 1.0,
20
+ 1.0
21
+ ],
22
+ "resample": 1,
23
+ "rescale_factor": 0.0078,
24
+ "size": {
25
+ "shortest_edge": 512
26
+ }
27
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": true,
8
+ "legacy": false,
9
+ "local_files_only": false,
10
+ "model_max_length": 512,
11
+ "pad_token": "<pad>",
12
+ "processor_class": "ChameleonProcessor",
13
+ "sep_token": "<reserved08706>",
14
+ "tokenizer_class": "TokenizersBackend",
15
+ "unk_token": "<unk>",
16
+ "use_default_system_prompt": false
17
+ }