chuyangzhao
commited on
Upload folder using huggingface_hub
Browse files- cfg.json +1 -0
- config.json +41 -0
- ema/config.json +41 -0
- ema/generation_config.json +6 -0
- ema/model.safetensors +3 -0
- generation_config.json +6 -0
- model.safetensors +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer_config.json +74 -0
cfg.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"llm_checkpoint_path": "/root/paddlejob/workspace/box5_home/disk1/vis/songyuxin02/data/checkpoints/TinyLlama-1.1B-Chat-v1.0", "vae_checkpoint_path": "/root/paddlejob/workspace/box5_home/disk1/vis/songyuxin02/data/checkpoints/sd-vae-ft-ema", "use_iterable_dataset": true, "datasets": [{"type": "image", "data_root": "/root/paddlejob/workspace/env_run/afs_baihua/zhaochuyang/data/llmdit/hdf5_256/journeydb/", "prompt_type": "prompt", "weight": 9}, {"type": "ultrachat", "data_root": "/root/paddlejob/workspace/env_run/afs_baihua/zhaochuyang/data/llmdit/ultrachat/", "weight": 1}], "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 %}", "use_adaln": false, "add_t_embed_before_decoder": false, "tokenizer_max_length": 512, "source_max_length": 128, "llm_lr": null, "use_lr_decay": true, "warmup_iters": 500, "lr_decay_iters": 300000, "lr_decay_rate": 0.1, "loss_dict": {"loss_lm": 0.1, "loss_diffusion": 1.0}}
|
config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "monoformer_imagenet_res256",
|
3 |
+
"add_pos_embed_each_layer": false,
|
4 |
+
"architectures": [
|
5 |
+
"MonoFormerForCausalLM"
|
6 |
+
],
|
7 |
+
"attention_bias": false,
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"bos_token_id": 1,
|
10 |
+
"decoder_t_embed": "adaln_before_decoder",
|
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": "/root/paddlejob/workspace/env_run/afs_baihua/zhaochuyang/llmdit-results/llmdit_bs48_lr1e-4_bf16_train_mix_journeydb/checkpoint-20000",
|
3 |
+
"add_pos_embed_each_layer": false,
|
4 |
+
"architectures": [
|
5 |
+
"MonoFormerForCausalLM"
|
6 |
+
],
|
7 |
+
"attention_bias": false,
|
8 |
+
"attention_dropout": 0.0,
|
9 |
+
"bos_token_id": 1,
|
10 |
+
"decoder_t_embed": "adaln_before_decoder",
|
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,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.38.0"
|
6 |
+
}
|
ema/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:99de53883cddaaaa067eae46088ef6fcf492f0c2640c69e65ab77b9fd9ea7812
|
3 |
+
size 4486717144
|
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.38.0"
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:102a66c872c37abaf1ee73196e1a90556e57e119c1e56e006d53e24e684b2693
|
3 |
+
size 4486717144
|
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 |
+
}
|