Add model_index.json and update modeling configs (#2)

- add model_index.json; update configs (43d06687e1b23afacab5980e452638293b3722b0)
- update (7defb981dbb797a900f485c84f483d6d21e9520a)


Co-authored-by: Aryan V S <a-r-r-o-w@users.noreply.huggingface.co>
This commit is contained in:
YuxuanCai 2024-10-29 03:50:46 +00:00 committed by system
parent 0a1b8a5312
commit e3d6332920
No known key found for this signature in database
GPG Key ID: 6A528E38E0733467
3 changed files with 54 additions and 34 deletions

24
model_index.json Normal file

@ -0,0 +1,24 @@
{
"_class_name": "AllegroPipeline",
"_diffusers_version": "0.31.0.dev0",
"scheduler": [
"diffusers",
"EulerAncestralDiscreteScheduler"
],
"text_encoder": [
"transformers",
"T5EncoderModel"
],
"tokenizer": [
"transformers",
"T5Tokenizer"
],
"transformer": [
"diffusers",
"AllegroTransformer3DModel"
],
"vae": [
"diffusers",
"AutoencoderKLAllegro"
]
}

@ -1,38 +1,30 @@
{ {
"_class_name": "AllegroTransformer3DModel", "_class_name": "AllegroTransformer3DModel",
"_diffusers_version": "0.28.0", "_diffusers_version": "0.31.0.dev0",
"activation_fn": "gelu-approximate", "activation_fn": "gelu-approximate",
"attention_bias": true, "attention_bias": true,
"attention_head_dim": 96, "attention_head_dim": 96,
"ca_attention_mode": "xformers",
"caption_channels": 4096, "caption_channels": 4096,
"cross_attention_dim": 2304, "cross_attention_dim": 2304,
"double_self_attention": false,
"downsampler": null,
"dropout": 0.0, "dropout": 0.0,
"in_channels": 4, "in_channels": 4,
"interpolation_scale_h": 2.0, "interpolation_scale_h": 2.0,
"interpolation_scale_t": 2.2, "interpolation_scale_t": 2.2,
"interpolation_scale_w": 2.0, "interpolation_scale_w": 2.0,
"model_max_length": 300,
"norm_elementwise_affine": false, "norm_elementwise_affine": false,
"norm_eps": 1e-06, "norm_eps": 1e-06,
"norm_type": "ada_norm_single", "norm_type": "ada_norm_single",
"num_attention_heads": 24, "num_attention_heads": 24,
"num_embeds_ada_norm": 1000,
"num_layers": 32, "num_layers": 32,
"only_cross_attention": false,
"out_channels": 4, "out_channels": 4,
"patch_size": 2, "patch_size": 2,
"patch_size_t": 1, "patch_size_t": 1,
"sa_attention_mode": "flash", "sample_frames": 22,
"sample_height": 90,
"sample_size": [ "sample_size": [
90, 90,
160 160
], ],
"sample_size_t": 22, "sample_size_t": 22,
"upcast_attention": false, "sample_width": 160
"use_additional_conditions": null,
"use_linear_projection": false,
"use_rope": true
} }

@ -1,6 +1,6 @@
{ {
"_class_name": "AllegroAutoencoderKL3D", "_class_name": "AutoencoderKLAllegro",
"_diffusers_version": "0.28.0", "_diffusers_version": "0.31.0.dev0",
"act_fn": "silu", "act_fn": "silu",
"block_out_channels": [ "block_out_channels": [
128, 128,
@ -8,33 +8,37 @@
512, 512,
512 512
], ],
"blocks_tempdown_li": [ "down_block_types": [
true, "AllegroDownBlock3D",
true, "AllegroDownBlock3D",
false, "AllegroDownBlock3D",
false "AllegroDownBlock3D"
], ],
"blocks_tempup_li": [
false,
true,
true,
false
],
"chunk_len": 24,
"down_block_num": 4,
"force_upcast": true, "force_upcast": true,
"in_channels": 3, "in_channels": 3,
"latent_channels": 4, "latent_channels": 4,
"layers_per_block": 2, "layers_per_block": 2,
"load_mode": "full",
"norm_num_groups": 32, "norm_num_groups": 32,
"out_channels": 3, "out_channels": 3,
"sample_size": 320, "sample_size": 320,
"scale_factor": 0.13, "scaling_factor": 0.13,
"t_over": 8, "temporal_compression_ratio": 4,
"tile_overlap": [ "temporal_downsample_blocks": [
120, true,
80 true,
false,
false
], ],
"up_block_num": 4 "temporal_upsample_blocks": [
false,
true,
true,
false
],
"up_block_types": [
"AllegroUpBlock3D",
"AllegroUpBlock3D",
"AllegroUpBlock3D",
"AllegroUpBlock3D"
]
} }