root
commited on
Commit
·
e359cdf
1
Parent(s):
bf74f56
Initial commit
Browse files- config.json +138 -0
- generation_config.json +10 -0
- hunyuan.tiktoken +0 -0
- model-00001-of-00004.safetensors +3 -0
- model-00002-of-00004.safetensors +3 -0
- model-00003-of-00004.safetensors +3 -0
- model-00004-of-00004.safetensors +3 -0
- model.safetensors.index.json +0 -0
- preprocessor_config.json +15 -0
- special_tokens_map.json +3 -0
- tokenizer_config.json +9 -0
config.json
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"ARCHunyuanVideoForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"audio_config": {
|
| 6 |
+
"_name_or_path": "openai/whisper-large-v3",
|
| 7 |
+
"activation_dropout": 0.0,
|
| 8 |
+
"activation_function": "gelu",
|
| 9 |
+
"apply_spec_augment": false,
|
| 10 |
+
"attention_dropout": 0.0,
|
| 11 |
+
"begin_suppress_tokens": [
|
| 12 |
+
220,
|
| 13 |
+
50257
|
| 14 |
+
],
|
| 15 |
+
"bos_token_id": 50257,
|
| 16 |
+
"classifier_proj_size": 256,
|
| 17 |
+
"d_model": 1280,
|
| 18 |
+
"decoder_attention_heads": 20,
|
| 19 |
+
"decoder_ffn_dim": 5120,
|
| 20 |
+
"decoder_layerdrop": 0.0,
|
| 21 |
+
"decoder_layers": 32,
|
| 22 |
+
"decoder_start_token_id": 50258,
|
| 23 |
+
"dropout": 0.0,
|
| 24 |
+
"encoder_attention_heads": 20,
|
| 25 |
+
"encoder_ffn_dim": 5120,
|
| 26 |
+
"encoder_layerdrop": 0.0,
|
| 27 |
+
"encoder_layers": 32,
|
| 28 |
+
"eos_token_id": 50257,
|
| 29 |
+
"init_std": 0.02,
|
| 30 |
+
"mask_feature_length": 10,
|
| 31 |
+
"mask_feature_min_masks": 0,
|
| 32 |
+
"mask_feature_prob": 0.0,
|
| 33 |
+
"mask_time_length": 10,
|
| 34 |
+
"mask_time_min_masks": 2,
|
| 35 |
+
"mask_time_prob": 0.05,
|
| 36 |
+
"max_length": 448,
|
| 37 |
+
"max_source_positions": 1500,
|
| 38 |
+
"max_target_positions": 448,
|
| 39 |
+
"median_filter_width": 7,
|
| 40 |
+
"model_type": "arc_hunyuan_video_audio",
|
| 41 |
+
"num_hidden_layers": 32,
|
| 42 |
+
"num_mel_bins": 128,
|
| 43 |
+
"scale_embedding": false,
|
| 44 |
+
"torch_dtype": "bfloat16",
|
| 45 |
+
"use_cache": true,
|
| 46 |
+
"use_weighted_layer_sum": false,
|
| 47 |
+
"vocab_size": 51866
|
| 48 |
+
},
|
| 49 |
+
"max_num_frame": 150,
|
| 50 |
+
"model_type": "arc_hunyuan_video",
|
| 51 |
+
"text_config": {
|
| 52 |
+
"attention_bias": false,
|
| 53 |
+
"attention_dropout": 0.0,
|
| 54 |
+
"attention_head_dim": 128,
|
| 55 |
+
"bos_token_id": 127959,
|
| 56 |
+
"eod_token_id": 127957,
|
| 57 |
+
"eos_token_id": 127960,
|
| 58 |
+
"hidden_act": "silu",
|
| 59 |
+
"hidden_size": 4096,
|
| 60 |
+
"im_end_id": 127963,
|
| 61 |
+
"im_newline_id": 127964,
|
| 62 |
+
"im_start_id": 127962,
|
| 63 |
+
"image_token_id": 127968,
|
| 64 |
+
"initializer_range": 0.02,
|
| 65 |
+
"intermediate_size": 14336,
|
| 66 |
+
"is_causal": true,
|
| 67 |
+
"max_position_embeddings": 1024,
|
| 68 |
+
"mlp_bias": false,
|
| 69 |
+
"model_type": "arc_hunyuan_video_text",
|
| 70 |
+
"norm_type": "hf_rms",
|
| 71 |
+
"num_attention_heads": 32,
|
| 72 |
+
"num_hidden_layers": 32,
|
| 73 |
+
"num_key_value_heads": 8,
|
| 74 |
+
"num_media_embeds": 257,
|
| 75 |
+
"pad_token_id": 127961,
|
| 76 |
+
"position_embedding_xdrope": true,
|
| 77 |
+
"rms_norm_eps": 1e-05,
|
| 78 |
+
"rope_scaling": {
|
| 79 |
+
"alpha": 1000.0,
|
| 80 |
+
"beta_fast": 32,
|
| 81 |
+
"beta_slow": 1,
|
| 82 |
+
"factor": 1.0,
|
| 83 |
+
"mscale": 1.0,
|
| 84 |
+
"mscale_all_dim": 1.0,
|
| 85 |
+
"type": "dynamic"
|
| 86 |
+
},
|
| 87 |
+
"rope_theta": 10000.0,
|
| 88 |
+
"torch_dtype": "bfloat16",
|
| 89 |
+
"use_cache": true,
|
| 90 |
+
"use_qk_norm": true,
|
| 91 |
+
"use_rotary_pos_emb": true,
|
| 92 |
+
"vocab_size": 128256,
|
| 93 |
+
"xdrope_section": [
|
| 94 |
+
0.25,
|
| 95 |
+
0.25,
|
| 96 |
+
0.25,
|
| 97 |
+
0.25
|
| 98 |
+
]
|
| 99 |
+
},
|
| 100 |
+
"torch_dtype": "bfloat16",
|
| 101 |
+
"transformers_version": "4.54.0.dev0",
|
| 102 |
+
"vision_config": {
|
| 103 |
+
"anyres_pooling_size": 2,
|
| 104 |
+
"attention_bias": true,
|
| 105 |
+
"attention_dropout": 0.0,
|
| 106 |
+
"attention_head_dim": 72,
|
| 107 |
+
"bos_token_id": 1,
|
| 108 |
+
"eos_token_id": 2,
|
| 109 |
+
"force_image_size": 640,
|
| 110 |
+
"hidden_act": "gelu",
|
| 111 |
+
"hidden_size": 1152,
|
| 112 |
+
"intermediate_size": 4304,
|
| 113 |
+
"is_causal": false,
|
| 114 |
+
"layer_norm_eps": 1e-05,
|
| 115 |
+
"max_image_size": 2048,
|
| 116 |
+
"max_vit_seq_len": 1600,
|
| 117 |
+
"mlp_bias": true,
|
| 118 |
+
"model_type": "arc_hunyuan_video_vision",
|
| 119 |
+
"norm_type": "torch_nn",
|
| 120 |
+
"num_attention_heads": 16,
|
| 121 |
+
"num_channels": 3,
|
| 122 |
+
"num_hidden_layers": 27,
|
| 123 |
+
"num_key_value_heads": 16,
|
| 124 |
+
"pad_token_id": 0,
|
| 125 |
+
"patch_size": 16,
|
| 126 |
+
"position_embedding_xdrope": true,
|
| 127 |
+
"rms_norm_eps": 1e-05,
|
| 128 |
+
"torch_dtype": "bfloat16",
|
| 129 |
+
"use_qk_norm": false,
|
| 130 |
+
"use_rotary_pos_emb": false,
|
| 131 |
+
"xdrope_section": [
|
| 132 |
+
0.25,
|
| 133 |
+
0.25,
|
| 134 |
+
0.25,
|
| 135 |
+
0.25
|
| 136 |
+
]
|
| 137 |
+
}
|
| 138 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 127959,
|
| 3 |
+
"chat_format": "chatml",
|
| 4 |
+
"eos_token_id": 127957,
|
| 5 |
+
"max_new_tokens": 512,
|
| 6 |
+
"max_window_size": 6144,
|
| 7 |
+
"pad_token_id": 127961,
|
| 8 |
+
"repetition_penalty": 1.1,
|
| 9 |
+
"transformers_version": "4.54.0.dev0"
|
| 10 |
+
}
|
hunyuan.tiktoken
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model-00001-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eda3b9a5ca10c7236485f449dad35510648a4b0dc6eb2abbc0dfe17935b0049a
|
| 3 |
+
size 4976703472
|
model-00002-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7dd42f4a62dd64fec41ee80e2ac469ec4262f838b839b964a704dcdf54430e2b
|
| 3 |
+
size 4882368512
|
model-00003-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6cb4743c0437e95a33ed6484276521c8018eec176d4c0bd9724e1ebaa1010252
|
| 3 |
+
size 4798481400
|
model-00004-of-00004.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb3054c0562172cf821ac0814c5d40f0e9070a3aa45e62b4a1d43cc78cca31ed
|
| 3 |
+
size 2613316976
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"chunk_length": 30,
|
| 3 |
+
"dither": 0.0,
|
| 4 |
+
"feature_extractor_type": "WhisperFeatureExtractor",
|
| 5 |
+
"feature_size": 128,
|
| 6 |
+
"hop_length": 160,
|
| 7 |
+
"n_fft": 400,
|
| 8 |
+
"n_samples": 480000,
|
| 9 |
+
"nb_max_frames": 3000,
|
| 10 |
+
"padding_side": "right",
|
| 11 |
+
"padding_value": 0.0,
|
| 12 |
+
"processor_class": "ARCHunyuanVideoProcessor",
|
| 13 |
+
"return_attention_mask": false,
|
| 14 |
+
"sampling_rate": 16000
|
| 15 |
+
}
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"eos_token": "<|endoftext|>"
|
| 3 |
+
}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"added_tokens_decoder": {},
|
| 3 |
+
"clean_up_tokenization_spaces": false,
|
| 4 |
+
"eos_token": "<|endoftext|>",
|
| 5 |
+
"extra_special_tokens": {},
|
| 6 |
+
"model_max_length": 32768,
|
| 7 |
+
"processor_class": "ARCHunyuanVideoProcessor",
|
| 8 |
+
"tokenizer_class": "ARCHunyuanVideoTokenizer"
|
| 9 |
+
}
|