zghhui commited on
Commit
fe7c7bf
·
verified ·
1 Parent(s): 0e2e8a7

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. README.md +11 -0
  2. config.json +43 -0
  3. generation_config.json +7 -0
  4. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+ # [LlamaGen-XL T2I Stage-1] - Hugging Face Format
5
+
6
+ This repository hosts a [LlamaGen-XL T2I Stage-1] converted into Hugging Face format, making it easier to use with the 🤗 Transformers library.
7
+
8
+ Model Overview
9
+ - Original Model: [https://github.com/FoundationVision/LlamaGen]
10
+ - License: MIT License
11
+ - Conversion Method: Converted from the original format to Hugging Face format
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "LlamaGen-T2I",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "output_attentions": true,
8
+ "attention_dropout": 0.0,
9
+ "block_size": 256,
10
+ "bos_token_id": 1,
11
+ "caption_dim": 2048,
12
+ "class_dropout_p": 0.1,
13
+ "cls_token_num": 120,
14
+ "eos_token_id": 2,
15
+ "ffn_dropout_p": 0.1,
16
+ "hidden_act": "silu",
17
+ "hidden_size": 1280,
18
+ "initializer_range": 0.02,
19
+ "input_type": "t2i",
20
+ "intermediate_size": 3584,
21
+ "max_batch_size": 32,
22
+ "max_position_embeddings": 2048,
23
+ "max_seq_len": 2048,
24
+ "mlp_bias": false,
25
+ "model_type": "llama",
26
+ "num_attention_heads": 20,
27
+ "num_classes": 1000,
28
+ "num_hidden_layers": 36,
29
+ "num_key_value_heads": 20,
30
+ "pad_token_id": 0,
31
+ "pretraining_tp": 1,
32
+ "resid_dropout_p": 0.1,
33
+ "rms_norm_eps": 1e-05,
34
+ "rope_base": 10000,
35
+ "rope_scaling": null,
36
+ "rope_theta": 10000.0,
37
+ "tie_word_embeddings": false,
38
+ "token_dropout_p": 0.1,
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.44.0",
41
+ "use_cache": true,
42
+ "vocab_size": 16384
43
+ }
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