OzzyGT HF Staff commited on
Commit
fdd39ac
·
verified ·
1 Parent(s): 138d6a3

Upload 22 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
audio_vae/config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKLLTX2Audio",
3
+ "_diffusers_version": "0.37.0.dev0",
4
+ "_name_or_path": "OzzyGT/LTX2/audio_vae",
5
+ "attn_resolutions": null,
6
+ "base_channels": 128,
7
+ "causality_axis": "height",
8
+ "ch_mult": [
9
+ 1,
10
+ 2,
11
+ 4
12
+ ],
13
+ "double_z": true,
14
+ "dropout": 0.0,
15
+ "in_channels": 2,
16
+ "is_causal": true,
17
+ "latent_channels": 8,
18
+ "mel_bins": 64,
19
+ "mel_hop_length": 160,
20
+ "mid_block_add_attention": false,
21
+ "norm_type": "pixel",
22
+ "num_res_blocks": 2,
23
+ "output_channels": 2,
24
+ "resolution": 256,
25
+ "sample_rate": 16000
26
+ }
audio_vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b36ce4066065ce0aa5ff4d7cf96a3e3bc0859c6fefcf864663e3fe686c5c181c
3
+ size 106507972
connectors/config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2TextConnectors",
3
+ "_diffusers_version": "0.37.0.dev0",
4
+ "_name_or_path": "OzzyGT/LTX2/connectors",
5
+ "audio_connector_attention_head_dim": 128,
6
+ "audio_connector_num_attention_heads": 30,
7
+ "audio_connector_num_layers": 2,
8
+ "audio_connector_num_learnable_registers": 128,
9
+ "caption_channels": 3840,
10
+ "causal_temporal_positioning": false,
11
+ "connector_rope_base_seq_len": 4096,
12
+ "rope_double_precision": true,
13
+ "rope_theta": 10000.0,
14
+ "rope_type": "split",
15
+ "text_proj_in_factor": 49,
16
+ "video_connector_attention_head_dim": 128,
17
+ "video_connector_num_attention_heads": 30,
18
+ "video_connector_num_layers": 2,
19
+ "video_connector_num_learnable_registers": 128
20
+ }
connectors/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7c0ad36c2d0706fb229193d5c698f0ef50c9b33678140b4ee84723a047b4032
3
+ size 2862957976
model_index.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2Pipeline",
3
+ "_diffusers_version": "0.37.0.dev0",
4
+ "_name_or_path": "OzzyGT/LTX2",
5
+ "audio_vae": [
6
+ "diffusers",
7
+ "AutoencoderKLLTX2Audio"
8
+ ],
9
+ "connectors": [
10
+ "ltx2",
11
+ "LTX2TextConnectors"
12
+ ],
13
+ "scheduler": [
14
+ "diffusers",
15
+ "FlowMatchEulerDiscreteScheduler"
16
+ ],
17
+ "text_encoder": [
18
+ "transformers",
19
+ "Gemma3ForConditionalGeneration"
20
+ ],
21
+ "tokenizer": [
22
+ "transformers",
23
+ "GemmaTokenizer"
24
+ ],
25
+ "transformer": [
26
+ "diffusers",
27
+ "LTX2VideoTransformer3DModel"
28
+ ],
29
+ "vae": [
30
+ "diffusers",
31
+ "AutoencoderKLLTX2Video"
32
+ ],
33
+ "vocoder": [
34
+ "ltx2",
35
+ "LTX2Vocoder"
36
+ ]
37
+ }
scheduler/scheduler_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "FlowMatchEulerDiscreteScheduler",
3
+ "_diffusers_version": "0.37.0.dev0",
4
+ "base_image_seq_len": 1024,
5
+ "base_shift": 0.95,
6
+ "invert_sigmas": false,
7
+ "max_image_seq_len": 4096,
8
+ "max_shift": 2.05,
9
+ "num_train_timesteps": 1000,
10
+ "shift": 1.0,
11
+ "shift_terminal": 0.1,
12
+ "stochastic_sampling": false,
13
+ "time_shift_type": "exponential",
14
+ "use_beta_sigmas": false,
15
+ "use_dynamic_shifting": true,
16
+ "use_exponential_sigmas": false,
17
+ "use_karras_sigmas": false
18
+ }
text_encoder/config.json ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma3ForConditionalGeneration"
4
+ ],
5
+ "boi_token_index": 255999,
6
+ "dtype": "bfloat16",
7
+ "eoi_token_index": 256000,
8
+ "eos_token_id": [
9
+ 1,
10
+ 106
11
+ ],
12
+ "image_token_index": 262144,
13
+ "initializer_range": 0.02,
14
+ "mm_tokens_per_image": 256,
15
+ "model_type": "gemma3",
16
+ "text_config": {
17
+ "_sliding_window_pattern": 6,
18
+ "attention_bias": false,
19
+ "attention_dropout": 0.0,
20
+ "attn_logit_softcapping": null,
21
+ "bos_token_id": 2,
22
+ "cache_implementation": "hybrid",
23
+ "dtype": "bfloat16",
24
+ "eos_token_id": 1,
25
+ "final_logit_softcapping": null,
26
+ "head_dim": 256,
27
+ "hidden_activation": "gelu_pytorch_tanh",
28
+ "hidden_size": 3840,
29
+ "initializer_range": 0.02,
30
+ "intermediate_size": 15360,
31
+ "layer_types": [
32
+ "sliding_attention",
33
+ "sliding_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "sliding_attention",
37
+ "full_attention",
38
+ "sliding_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "sliding_attention",
43
+ "full_attention",
44
+ "sliding_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "sliding_attention",
49
+ "full_attention",
50
+ "sliding_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "sliding_attention",
55
+ "full_attention",
56
+ "sliding_attention",
57
+ "sliding_attention",
58
+ "sliding_attention",
59
+ "sliding_attention",
60
+ "sliding_attention",
61
+ "full_attention",
62
+ "sliding_attention",
63
+ "sliding_attention",
64
+ "sliding_attention",
65
+ "sliding_attention",
66
+ "sliding_attention",
67
+ "full_attention",
68
+ "sliding_attention",
69
+ "sliding_attention",
70
+ "sliding_attention",
71
+ "sliding_attention",
72
+ "sliding_attention",
73
+ "full_attention",
74
+ "sliding_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "sliding_attention",
78
+ "sliding_attention",
79
+ "full_attention"
80
+ ],
81
+ "max_position_embeddings": 131072,
82
+ "model_type": "gemma3_text",
83
+ "num_attention_heads": 16,
84
+ "num_hidden_layers": 48,
85
+ "num_key_value_heads": 8,
86
+ "pad_token_id": 0,
87
+ "query_pre_attn_scalar": 256,
88
+ "rms_norm_eps": 1e-06,
89
+ "rope_parameters": {
90
+ "full_attention": {
91
+ "factor": 8.0,
92
+ "rope_theta": 1000000,
93
+ "rope_type": "linear"
94
+ },
95
+ "sliding_attention": {
96
+ "rope_theta": 10000,
97
+ "rope_type": "default"
98
+ }
99
+ },
100
+ "sliding_window": 1024,
101
+ "sliding_window_pattern": 6,
102
+ "tie_word_embeddings": true,
103
+ "use_bidirectional_attention": false,
104
+ "use_cache": true,
105
+ "vocab_size": 262208
106
+ },
107
+ "tie_word_embeddings": true,
108
+ "transformers_version": "5.1.0",
109
+ "vision_config": {
110
+ "attention_dropout": 0.0,
111
+ "dtype": "bfloat16",
112
+ "hidden_act": "gelu_pytorch_tanh",
113
+ "hidden_size": 1152,
114
+ "image_size": 896,
115
+ "intermediate_size": 4304,
116
+ "layer_norm_eps": 1e-06,
117
+ "model_type": "siglip_vision_model",
118
+ "num_attention_heads": 16,
119
+ "num_channels": 3,
120
+ "num_hidden_layers": 27,
121
+ "patch_size": 14,
122
+ "vision_use_head": false
123
+ }
124
+ }
text_encoder/generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cache_implementation": "hybrid",
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 1,
6
+ 106
7
+ ],
8
+ "top_k": 64,
9
+ "top_p": 0.95,
10
+ "transformers_version": "5.1.0"
11
+ }
text_encoder/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27b5c4675ac66237bb7f5554a0376679e55c006e30b261143ae2903cf00e846c
3
+ size 24374794824
tokenizer/chat_template.jinja ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{ bos_token }}
2
+ {%- if messages[0]['role'] == 'system' -%}
3
+ {%- if messages[0]['content'] is string -%}
4
+ {%- set first_user_prefix = messages[0]['content'] + '
5
+
6
+ ' -%}
7
+ {%- else -%}
8
+ {%- set first_user_prefix = messages[0]['content'][0]['text'] + '
9
+
10
+ ' -%}
11
+ {%- endif -%}
12
+ {%- set loop_messages = messages[1:] -%}
13
+ {%- else -%}
14
+ {%- set first_user_prefix = "" -%}
15
+ {%- set loop_messages = messages -%}
16
+ {%- endif -%}
17
+ {%- for message in loop_messages -%}
18
+ {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) -%}
19
+ {{ raise_exception("Conversation roles must alternate user/assistant/user/assistant/...") }}
20
+ {%- endif -%}
21
+ {%- if (message['role'] == 'assistant') -%}
22
+ {%- set role = "model" -%}
23
+ {%- else -%}
24
+ {%- set role = message['role'] -%}
25
+ {%- endif -%}
26
+ {{ '<start_of_turn>' + role + '
27
+ ' + (first_user_prefix if loop.first else "") }}
28
+ {%- if message['content'] is string -%}
29
+ {{ message['content'] | trim }}
30
+ {%- elif message['content'] is iterable -%}
31
+ {%- for item in message['content'] -%}
32
+ {%- if item['type'] == 'image' -%}
33
+ {{ '<start_of_image>' }}
34
+ {%- elif item['type'] == 'text' -%}
35
+ {{ item['text'] | trim }}
36
+ {%- endif -%}
37
+ {%- endfor -%}
38
+ {%- else -%}
39
+ {{ raise_exception("Invalid content type") }}
40
+ {%- endif -%}
41
+ {{ '<end_of_turn>
42
+ ' }}
43
+ {%- endfor -%}
44
+ {%- if add_generation_prompt -%}
45
+ {{'<start_of_turn>model
46
+ '}}
47
+ {%- endif -%}
tokenizer/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a74aefb1dc1340a25f29ab8370384b9ed24b2d921d7749ece7bbcfcfdf00d497
3
+ size 33384443
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "boi_token": "<start_of_image>",
4
+ "bos_token": "<bos>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eoi_token": "<end_of_image>",
7
+ "eos_token": "<eos>",
8
+ "image_token": "<image_soft_token>",
9
+ "is_local": true,
10
+ "mask_token": "<mask>",
11
+ "model_max_length": 1000000000000000019884624838656,
12
+ "model_specific_special_tokens": {
13
+ "boi_token": "<start_of_image>",
14
+ "eoi_token": "<end_of_image>",
15
+ "image_token": "<image_soft_token>"
16
+ },
17
+ "pad_token": "<pad>",
18
+ "processor_class": "Gemma3Processor",
19
+ "sp_model_kwargs": null,
20
+ "spaces_between_special_tokens": false,
21
+ "tokenizer_class": "GemmaTokenizer",
22
+ "unk_token": "<unk>",
23
+ "use_default_system_prompt": false
24
+ }
transformer/config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2VideoTransformer3DModel",
3
+ "_diffusers_version": "0.37.0.dev0",
4
+ "_name_or_path": "OzzyGT/LTX2/transformer",
5
+ "activation_fn": "gelu-approximate",
6
+ "attention_bias": true,
7
+ "attention_head_dim": 128,
8
+ "attention_out_bias": true,
9
+ "audio_attention_head_dim": 64,
10
+ "audio_cross_attention_dim": 2048,
11
+ "audio_hop_length": 160,
12
+ "audio_in_channels": 128,
13
+ "audio_num_attention_heads": 32,
14
+ "audio_out_channels": 128,
15
+ "audio_patch_size": 1,
16
+ "audio_patch_size_t": 1,
17
+ "audio_pos_embed_max_pos": 20,
18
+ "audio_sampling_rate": 16000,
19
+ "audio_scale_factor": 4,
20
+ "base_height": 2048,
21
+ "base_width": 2048,
22
+ "caption_channels": 3840,
23
+ "causal_offset": 1,
24
+ "cross_attention_dim": 4096,
25
+ "cross_attn_timestep_scale_multiplier": 1000,
26
+ "in_channels": 128,
27
+ "norm_elementwise_affine": false,
28
+ "norm_eps": 1e-06,
29
+ "num_attention_heads": 32,
30
+ "num_layers": 48,
31
+ "out_channels": 128,
32
+ "patch_size": 1,
33
+ "patch_size_t": 1,
34
+ "pos_embed_max_pos": 20,
35
+ "qk_norm": "rms_norm_across_heads",
36
+ "rope_double_precision": true,
37
+ "rope_theta": 10000.0,
38
+ "rope_type": "split",
39
+ "timestep_scale_multiplier": 1000,
40
+ "vae_scale_factors": [
41
+ 8,
42
+ 32,
43
+ 32
44
+ ]
45
+ }
transformer/diffusion_pytorch_model-00001-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f65208cd730e331e41fba0c192c75648abac829acb0ee09836b82d236cfb50c3
3
+ size 9987228592
transformer/diffusion_pytorch_model-00002-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b36fd2d768598d0c4254df3443c98b4dc6f26aecf28d54b263e170baa1652808
3
+ size 9970780296
transformer/diffusion_pytorch_model-00003-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0545c00e6712f63b0471d21e92173469cf579fd2f7e44bf003362f86c6c6053f
3
+ size 9870256976
transformer/diffusion_pytorch_model-00004-of-00004.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93679f2340293ef8d717b9db7a95f951da84047642ce029f386ee2b563226740
3
+ size 7924509816
transformer/diffusion_pytorch_model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
vae/config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AutoencoderKLLTX2Video",
3
+ "_diffusers_version": "0.37.0.dev0",
4
+ "_name_or_path": "OzzyGT/LTX2/vae",
5
+ "block_out_channels": [
6
+ 256,
7
+ 512,
8
+ 1024,
9
+ 2048
10
+ ],
11
+ "decoder_block_out_channels": [
12
+ 256,
13
+ 512,
14
+ 1024
15
+ ],
16
+ "decoder_causal": false,
17
+ "decoder_inject_noise": [
18
+ false,
19
+ false,
20
+ false,
21
+ false
22
+ ],
23
+ "decoder_layers_per_block": [
24
+ 5,
25
+ 5,
26
+ 5,
27
+ 5
28
+ ],
29
+ "decoder_spatial_padding_mode": "reflect",
30
+ "decoder_spatio_temporal_scaling": [
31
+ true,
32
+ true,
33
+ true
34
+ ],
35
+ "down_block_types": [
36
+ "LTX2VideoDownBlock3D",
37
+ "LTX2VideoDownBlock3D",
38
+ "LTX2VideoDownBlock3D",
39
+ "LTX2VideoDownBlock3D"
40
+ ],
41
+ "downsample_type": [
42
+ "spatial",
43
+ "temporal",
44
+ "spatiotemporal",
45
+ "spatiotemporal"
46
+ ],
47
+ "encoder_causal": true,
48
+ "encoder_spatial_padding_mode": "zeros",
49
+ "in_channels": 3,
50
+ "latent_channels": 128,
51
+ "layers_per_block": [
52
+ 4,
53
+ 6,
54
+ 6,
55
+ 2,
56
+ 2
57
+ ],
58
+ "out_channels": 3,
59
+ "patch_size": 4,
60
+ "patch_size_t": 1,
61
+ "resnet_norm_eps": 1e-06,
62
+ "scaling_factor": 1.0,
63
+ "spatial_compression_ratio": 32,
64
+ "spatio_temporal_scaling": [
65
+ true,
66
+ true,
67
+ true,
68
+ true
69
+ ],
70
+ "temporal_compression_ratio": 8,
71
+ "timestep_conditioning": false,
72
+ "upsample_factor": [
73
+ 2,
74
+ 2,
75
+ 2
76
+ ],
77
+ "upsample_residual": [
78
+ true,
79
+ true,
80
+ true
81
+ ]
82
+ }
vae/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:107cc359e3c4bce18c53d98686f4b3fe10c4207b6665d89b38b0741270514bfb
3
+ size 2444982370
vocoder/config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2Vocoder",
3
+ "_diffusers_version": "0.37.0.dev0",
4
+ "_name_or_path": "OzzyGT/LTX2/vocoder",
5
+ "hidden_channels": 1024,
6
+ "in_channels": 128,
7
+ "leaky_relu_negative_slope": 0.1,
8
+ "out_channels": 2,
9
+ "output_sampling_rate": 24000,
10
+ "resnet_dilations": [
11
+ [
12
+ 1,
13
+ 3,
14
+ 5
15
+ ],
16
+ [
17
+ 1,
18
+ 3,
19
+ 5
20
+ ],
21
+ [
22
+ 1,
23
+ 3,
24
+ 5
25
+ ]
26
+ ],
27
+ "resnet_kernel_sizes": [
28
+ 3,
29
+ 7,
30
+ 11
31
+ ],
32
+ "upsample_factors": [
33
+ 6,
34
+ 5,
35
+ 2,
36
+ 2,
37
+ 2
38
+ ],
39
+ "upsample_kernel_sizes": [
40
+ 16,
41
+ 15,
42
+ 8,
43
+ 4,
44
+ 4
45
+ ]
46
+ }
vocoder/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15855fc59233b9cac50bdd1f0d2ccea4a5eaedbd7fd7549b16d5ebd6cc47d92a
3
+ size 111204124