chuyangzhao commited on
Commit
51a9045
1 Parent(s): 597b424

Upload folder using huggingface_hub

Browse files
cfg.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"llm_checkpoint_path": "/gsdata/home/cyzhao/model_zoo/TinyLlama-1.1B-Chat-v1.0", "vae_checkpoint_path": "/gsdata/home/cyzhao/model_zoo/sd-vae-ft-mse", "use_iterable_dataset": false, "datasets": [{"type": "imagenet", "data_root": "/gsdata/home/wangwh/ILSVRC2012_RAW_PYTORCH/train/", "weight": 9}], "img_data_root": "/root/paddlejob/workspace/vae_features/256resolution/noflip", "load_vae_features": false, "patch_size": 2, "in_channels": 4, "learn_sigma": true, "use_flash_attn": false, "use_pos_embed": true, "decoder_t_embed": "add_before_image_tokens", "use_adaln_final_layer": true, "use_bi_attn_img_tokens": true, "use_chat_template": false, "chat_template": "{%- for message in messages %}{%- if message['role'] == 'user' %}{{- bos_token + '### Human: ' + message['content'].strip() }}{%- elif message['role'] == 'assistant' %}{{- '### Assistant: ' + message['content'] + eos_token }}{%- endif %}{%- if loop.last and add_generation_prompt %}{{- '### Assistant: '}}{%- endif %}{%- endfor %}", "tokenizer_max_length": 512, "source_max_length": 128, "llm_lr": null, "use_lr_decay": false, "warmup_iters": 500, "lr_decay_iters": 300000, "lr_decay_rate": 0.1, "loss_dict": {"loss_lm": 1.0, "loss_dit": 1.0}}
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/gsdata/home/cyzhao/model_zoo/TinyLlama-1.1B-Chat-v1.0",
3
+ "add_pos_embed_each_layer": false,
4
+ "architectures": [
5
+ "LlamaDitForCausalLM"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 1,
10
+ "decoder_t_embed": "add_before_image_tokens",
11
+ "eos_token_id": 2,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 2048,
14
+ "image_size": 256,
15
+ "image_token_index": 32001,
16
+ "in_channels": 4,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 5632,
19
+ "learn_sigma": true,
20
+ "max_position_embeddings": 2048,
21
+ "model_type": "llama",
22
+ "num_attention_heads": 32,
23
+ "num_hidden_layers": 22,
24
+ "num_key_value_heads": 4,
25
+ "patch_size": 2,
26
+ "pretraining_tp": 1,
27
+ "rms_norm_eps": 1e-05,
28
+ "rope_scaling": null,
29
+ "rope_theta": 10000.0,
30
+ "tie_word_embeddings": false,
31
+ "tokenizer_max_length": 512,
32
+ "tokenizer_padding_side": "right",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.38.0",
35
+ "use_adaln_final_layer": true,
36
+ "use_bi_attn_img_tokens": true,
37
+ "use_cache": true,
38
+ "use_flash_attn": false,
39
+ "use_pos_embed": true,
40
+ "vocab_size": 32004
41
+ }
ema/config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/gsdata/home/cyzhao/model_zoo/TinyLlama-1.1B-Chat-v1.0",
3
+ "add_pos_embed_each_layer": false,
4
+ "architectures": [
5
+ "LlamaDitForCausalLM"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 1,
10
+ "decoder_t_embed": "add_before_image_tokens",
11
+ "eos_token_id": 2,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 2048,
14
+ "image_size": 256,
15
+ "image_token_index": 32001,
16
+ "in_channels": 4,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 5632,
19
+ "learn_sigma": true,
20
+ "max_position_embeddings": 2048,
21
+ "model_type": "llama",
22
+ "num_attention_heads": 32,
23
+ "num_hidden_layers": 22,
24
+ "num_key_value_heads": 4,
25
+ "patch_size": 2,
26
+ "pretraining_tp": 1,
27
+ "rms_norm_eps": 1e-05,
28
+ "rope_scaling": null,
29
+ "rope_theta": 10000.0,
30
+ "tie_word_embeddings": false,
31
+ "tokenizer_max_length": 512,
32
+ "tokenizer_padding_side": "right",
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.38.0",
35
+ "use_adaln_final_layer": true,
36
+ "use_bi_attn_img_tokens": true,
37
+ "use_cache": true,
38
+ "use_flash_attn": false,
39
+ "use_pos_embed": true,
40
+ "vocab_size": 32004
41
+ }
ema/generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "eos_token_id": 2,
4
+ "max_length": 2048,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.38.0"
7
+ }
ema/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c82d4cd654dfe8dc9f8807399f6edf2c01070db4b92d8d617671158cc534fe2f
3
+ size 4486766733
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "eos_token_id": 2,
4
+ "max_length": 2048,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.38.0"
7
+ }
model_args.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62322bf341582dd3d1003c67a35a66864436580439d17214ef9cbf0aefab0cbe
3
+ size 1141
optimizer.00000-of-00008.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50acfb4ab70fb5e95155b846b9999d205cf4e6ae1e1b9a6c5a0d8d0f2d79268a
3
+ size 1121751880
optimizer.00001-of-00008.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4e60d44936a5fd196dcfdbc349923e78e5f86a20a8ac91606364ff1465c8009
3
+ size 1121713228
optimizer.00002-of-00008.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eef8882d094d1602edab52dce99e2a1ccd5cff29afbd9623a308777e98e236cc
3
+ size 1121693965
optimizer.00003-of-00008.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42174dbe9b598e87e668e1198423950a5614dce105fefc388b1fed5bcc048509
3
+ size 1121714982
optimizer.00004-of-00008.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97a01e61b8b78248103ee3dd0ebe40ce7bb186c9e878f043350a17c552b65102
3
+ size 1121693965
optimizer.00005-of-00008.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4fc8327ea844e71357bcefed3b3443f361ae46f3e296410cebd79f0bbce37ab
3
+ size 1121713228
optimizer.00006-of-00008.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03f4bfb2d58d98e7de516bad98e3ed8190ddd4920479d28c6e7fe09f88e474bb
3
+ size 1121696523
optimizer.00007-of-00008.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a1d5431ed1b5c020278115ad166bc3cd546de567d95fbf32f1fc6c15a112654
3
+ size 1121741785
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc69fff1129f9a35013764eb3ca9850f30ab47c6f045ef6a8876c068fc97f856
3
+ size 4486766733
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<PAD>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": true,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "32000": {
30
+ "content": "<PAD>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32001": {
38
+ "content": "<image>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "32002": {
46
+ "content": "<|im_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "32003": {
54
+ "content": "<|im_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ }
61
+ },
62
+ "bos_token": "<s>",
63
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
64
+ "clean_up_tokenization_spaces": false,
65
+ "eos_token": "</s>",
66
+ "legacy": false,
67
+ "model_max_length": 2048,
68
+ "pad_token": "<PAD>",
69
+ "padding_side": "right",
70
+ "sp_model_kwargs": {},
71
+ "tokenizer_class": "LlamaTokenizer",
72
+ "unk_token": "<unk>",
73
+ "use_default_system_prompt": false
74
+ }