add model
Browse files- config.json +42 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- vq_ds16_t2i.pt +3 -0
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "LlamaGen-T2I",
|
3 |
+
"architectures": [
|
4 |
+
"LlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"attention_dropout": 0.0,
|
8 |
+
"block_size": 256,
|
9 |
+
"bos_token_id": 1,
|
10 |
+
"caption_dim": 2048,
|
11 |
+
"class_dropout_p": 0.1,
|
12 |
+
"cls_token_num": 120,
|
13 |
+
"eos_token_id": 2,
|
14 |
+
"ffn_dropout_p": 0.1,
|
15 |
+
"hidden_act": "silu",
|
16 |
+
"hidden_size": 1280,
|
17 |
+
"initializer_range": 0.02,
|
18 |
+
"input_type": "t2i",
|
19 |
+
"intermediate_size": 3584,
|
20 |
+
"max_batch_size": 32,
|
21 |
+
"max_position_embeddings": 2048,
|
22 |
+
"max_seq_len": 2048,
|
23 |
+
"mlp_bias": false,
|
24 |
+
"model_type": "llama",
|
25 |
+
"num_attention_heads": 20,
|
26 |
+
"num_classes": 1000,
|
27 |
+
"num_hidden_layers": 36,
|
28 |
+
"num_key_value_heads": 20,
|
29 |
+
"pad_token_id": 0,
|
30 |
+
"pretraining_tp": 1,
|
31 |
+
"resid_dropout_p": 0.1,
|
32 |
+
"rms_norm_eps": 1e-05,
|
33 |
+
"rope_base": 10000,
|
34 |
+
"rope_scaling": null,
|
35 |
+
"rope_theta": 10000.0,
|
36 |
+
"tie_word_embeddings": false,
|
37 |
+
"token_dropout_p": 0.1,
|
38 |
+
"torch_dtype": "float32",
|
39 |
+
"transformers_version": "4.44.0",
|
40 |
+
"use_cache": true,
|
41 |
+
"vocab_size": 16384
|
42 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.44.0"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:41c3ef1fb0d74fcaabfeb3bc6980fd00db644841aa3d8e37213066176a8641d4
|
3 |
+
size 3111733144
|
vq_ds16_t2i.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e21fc1318e2e9ee641a07bdad0e20675e9ec35e6e3eb911d58b5d7a2cd8d4cb
|
3 |
+
size 287920306
|