benjamin-paine commited on
Commit
1fee632
·
verified ·
1 Parent(s): 0344245

Upload LTX2Pipeline

Browse files
.gitattributes CHANGED
@@ -33,3 +33,13 @@ 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
+ audio_decoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
37
+ audio_encoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
38
+ embeddings_processor/model.flashpack filter=lfs diff=lfs merge=lfs -text
39
+ spatial_upsampler/model.flashpack filter=lfs diff=lfs merge=lfs -text
40
+ spatial_upsampler_1_5/model.flashpack filter=lfs diff=lfs merge=lfs -text
41
+ text_encoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
42
+ transformer/model.flashpack filter=lfs diff=lfs merge=lfs -text
43
+ video_decoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
44
+ video_encoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
45
+ vocoder/model.flashpack filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: diffusers
3
+ ---
4
+
5
+ # Model Card for Model ID
6
+
7
+ <!-- Provide a quick summary of what the model is/does. -->
8
+
9
+
10
+
11
+ ## Model Details
12
+
13
+ ### Model Description
14
+
15
+ <!-- Provide a longer summary of what this model is. -->
16
+
17
+ This is the model card of a 🧨 diffusers pipeline that has been pushed on the Hub. This model card has been automatically generated.
18
+
19
+ - **Developed by:** [More Information Needed]
20
+ - **Funded by [optional]:** [More Information Needed]
21
+ - **Shared by [optional]:** [More Information Needed]
22
+ - **Model type:** [More Information Needed]
23
+ - **Language(s) (NLP):** [More Information Needed]
24
+ - **License:** [More Information Needed]
25
+ - **Finetuned from model [optional]:** [More Information Needed]
26
+
27
+ ### Model Sources [optional]
28
+
29
+ <!-- Provide the basic links for the model. -->
30
+
31
+ - **Repository:** [More Information Needed]
32
+ - **Paper [optional]:** [More Information Needed]
33
+ - **Demo [optional]:** [More Information Needed]
34
+
35
+ ## Uses
36
+
37
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
38
+
39
+ ### Direct Use
40
+
41
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
42
+
43
+ [More Information Needed]
44
+
45
+ ### Downstream Use [optional]
46
+
47
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
48
+
49
+ [More Information Needed]
50
+
51
+ ### Out-of-Scope Use
52
+
53
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
54
+
55
+ [More Information Needed]
56
+
57
+ ## Bias, Risks, and Limitations
58
+
59
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
60
+
61
+ [More Information Needed]
62
+
63
+ ### Recommendations
64
+
65
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
66
+
67
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
68
+
69
+ ## How to Get Started with the Model
70
+
71
+ Use the code below to get started with the model.
72
+
73
+ [More Information Needed]
74
+
75
+ ## Training Details
76
+
77
+ ### Training Data
78
+
79
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
80
+
81
+ [More Information Needed]
82
+
83
+ ### Training Procedure
84
+
85
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
86
+
87
+ #### Preprocessing [optional]
88
+
89
+ [More Information Needed]
90
+
91
+
92
+ #### Training Hyperparameters
93
+
94
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
95
+
96
+ #### Speeds, Sizes, Times [optional]
97
+
98
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
99
+
100
+ [More Information Needed]
101
+
102
+ ## Evaluation
103
+
104
+ <!-- This section describes the evaluation protocols and provides the results. -->
105
+
106
+ ### Testing Data, Factors & Metrics
107
+
108
+ #### Testing Data
109
+
110
+ <!-- This should link to a Dataset Card if possible. -->
111
+
112
+ [More Information Needed]
113
+
114
+ #### Factors
115
+
116
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
117
+
118
+ [More Information Needed]
119
+
120
+ #### Metrics
121
+
122
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
123
+
124
+ [More Information Needed]
125
+
126
+ ### Results
127
+
128
+ [More Information Needed]
129
+
130
+ #### Summary
131
+
132
+
133
+
134
+ ## Model Examination [optional]
135
+
136
+ <!-- Relevant interpretability work for the model goes here -->
137
+
138
+ [More Information Needed]
139
+
140
+ ## Environmental Impact
141
+
142
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
143
+
144
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
145
+
146
+ - **Hardware Type:** [More Information Needed]
147
+ - **Hours used:** [More Information Needed]
148
+ - **Cloud Provider:** [More Information Needed]
149
+ - **Compute Region:** [More Information Needed]
150
+ - **Carbon Emitted:** [More Information Needed]
151
+
152
+ ## Technical Specifications [optional]
153
+
154
+ ### Model Architecture and Objective
155
+
156
+ [More Information Needed]
157
+
158
+ ### Compute Infrastructure
159
+
160
+ [More Information Needed]
161
+
162
+ #### Hardware
163
+
164
+ [More Information Needed]
165
+
166
+ #### Software
167
+
168
+ [More Information Needed]
169
+
170
+ ## Citation [optional]
171
+
172
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
173
+
174
+ **BibTeX:**
175
+
176
+ [More Information Needed]
177
+
178
+ **APA:**
179
+
180
+ [More Information Needed]
181
+
182
+ ## Glossary [optional]
183
+
184
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
185
+
186
+ [More Information Needed]
187
+
188
+ ## More Information [optional]
189
+
190
+ [More Information Needed]
191
+
192
+ ## Model Card Authors [optional]
193
+
194
+ [More Information Needed]
195
+
196
+ ## Model Card Contact
197
+
198
+ [More Information Needed]
audio_decoder/config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2AudioDecoderModel",
3
+ "_diffusers_version": "0.37.0",
4
+ "attn_resolutions": [],
5
+ "causality_axis": "height",
6
+ "ch": 128,
7
+ "ch_mult": [
8
+ 1,
9
+ 2,
10
+ 4
11
+ ],
12
+ "dropout": 0.0,
13
+ "is_causal": true,
14
+ "mel_bins": 64,
15
+ "mel_hop_length": 160,
16
+ "mid_block_add_attention": false,
17
+ "norm_type": "pixel",
18
+ "num_res_blocks": 2,
19
+ "out_ch": 2,
20
+ "resolution": 256,
21
+ "sample_rate": 16000,
22
+ "z_channels": 8
23
+ }
audio_decoder/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:181625037a73df9d918a6b7f79fce9187fd95a13f4447664f88c1d1ad1bb8ff9
3
+ size 63836182
audio_encoder/config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2AudioEncoderModel",
3
+ "_diffusers_version": "0.37.0",
4
+ "attn_resolutions": [],
5
+ "attn_type": "vanilla",
6
+ "causality_axis": "height",
7
+ "ch": 128,
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
+ "mel_bins": 64,
18
+ "mel_hop_length": 160,
19
+ "mid_block_add_attention": false,
20
+ "n_fft": 1024,
21
+ "norm_type": "pixel",
22
+ "num_res_blocks": 2,
23
+ "resamp_with_conv": true,
24
+ "resolution": 256,
25
+ "sample_rate": 16000,
26
+ "z_channels": 8
27
+ }
audio_encoder/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:030087e1c4e2bd506d4fa178d6dc228b673ed46e8740c57b777172e1db059571
3
+ size 42670875
audio_preprocessor/config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "AudioPreprocessor",
3
+ "_diffusers_version": "0.37.0",
4
+ "add_ambience": true,
5
+ "add_reverb": true,
6
+ "add_room": true,
7
+ "ambience_rms_db": -48.0,
8
+ "bitrate": "256k",
9
+ "codec": "mp3",
10
+ "container_format": null,
11
+ "do_comp": true,
12
+ "do_eq": false,
13
+ "do_limiter": true,
14
+ "do_roundtrip": true,
15
+ "final_peak_dbfs": -1.0,
16
+ "force_stereo": true,
17
+ "hpf_hz": 90.0,
18
+ "initial_peak_dbfs": -3.0,
19
+ "limit_dbfs": -1.0,
20
+ "lpf_hz": 10000.0,
21
+ "narrow_width": 0.35,
22
+ "output_format": "s16p",
23
+ "predelay_ms": 12.0,
24
+ "presence_gain_db": 2.0,
25
+ "return_float": true,
26
+ "reverb_wet": 0.04,
27
+ "room_bed_rms_db": -52.0,
28
+ "room_hp_hz": 40.0,
29
+ "room_lp_hz": 12000.0,
30
+ "room_noise_kind": "pink",
31
+ "rt60": 0.35,
32
+ "sr": 16000
33
+ }
audio_preprocessor/diffusion_pytorch_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e36c567d2f1c21d6c351c8e38023adc465538e07f2fa76b220217aecf424644
3
+ size 124
embeddings_processor/config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2EmbeddingsProcessorModel",
3
+ "_diffusers_version": "0.37.0",
4
+ "audio_apply_gated_attention": false,
5
+ "audio_attention_head_dim": 64,
6
+ "audio_double_precision_rope": true,
7
+ "audio_num_attention_heads": 32,
8
+ "audio_num_layers": 8,
9
+ "audio_positional_embedding_max_pos": [
10
+ 4096
11
+ ],
12
+ "audio_rope_type": "split",
13
+ "feature_extractor_audio_dim": 2048,
14
+ "feature_extractor_embedding_dim": 3840,
15
+ "feature_extractor_flat_dim": 188160,
16
+ "feature_extractor_video_dim": 4096,
17
+ "video_apply_gated_attention": false,
18
+ "video_attention_head_dim": 128,
19
+ "video_double_precision_rope": true,
20
+ "video_num_attention_heads": 32,
21
+ "video_num_layers": 8,
22
+ "video_positional_embedding_max_pos": [
23
+ 4096
24
+ ],
25
+ "video_rope_type": "split"
26
+ }
embeddings_processor/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2795c8b415b65e61a6d3504938b27bc4530a4ab7323b14f7c78265c6e338a7df
3
+ size 6344488290
model_index.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2Pipeline",
3
+ "_diffusers_version": "0.37.0",
4
+ "audio_decoder": [
5
+ "ltx2.models.audio_vae",
6
+ "LTX2AudioDecoderModel"
7
+ ],
8
+ "audio_encoder": [
9
+ "ltx2.models.audio_vae",
10
+ "LTX2AudioEncoderModel"
11
+ ],
12
+ "audio_preprocessor": [
13
+ "ltx2.models.audio_preprocessor",
14
+ "AudioPreprocessor"
15
+ ],
16
+ "embeddings_processor": [
17
+ "ltx2.models.embeddings_processor",
18
+ "LTX2EmbeddingsProcessorModel"
19
+ ],
20
+ "spatial_upsampler": [
21
+ "ltx2.models.upsampler",
22
+ "LTX2LatentUpsamplerModel"
23
+ ],
24
+ "spatial_upsampler_1_5": [
25
+ "ltx2.models.upsampler",
26
+ "LTX2LatentUpsamplerModel"
27
+ ],
28
+ "text_encoder": [
29
+ "ltx2.models.text_encoder",
30
+ "LTX2TextEncoderModel"
31
+ ],
32
+ "text_encoder_processor": [
33
+ "transformers",
34
+ "Gemma3Processor"
35
+ ],
36
+ "tokenizer": [
37
+ "transformers",
38
+ "GemmaTokenizer"
39
+ ],
40
+ "transformer": [
41
+ "ltx2.models.transformer",
42
+ "LTX2TransformerModel"
43
+ ],
44
+ "video_decoder": [
45
+ "ltx2.models.video_vae",
46
+ "LTX2VideoDecoderModel"
47
+ ],
48
+ "video_encoder": [
49
+ "ltx2.models.video_vae",
50
+ "LTX2VideoEncoderModel"
51
+ ],
52
+ "vocoder": [
53
+ "ltx2.models.vocoder",
54
+ "LTX2VocoderWithBWEModel"
55
+ ]
56
+ }
spatial_upsampler/config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2LatentUpsamplerModel",
3
+ "_diffusers_version": "0.37.0",
4
+ "dims": 3,
5
+ "in_channels": 128,
6
+ "mid_channels": 1024,
7
+ "num_blocks_per_stage": 4,
8
+ "rational_resampler": false,
9
+ "spatial_scale": 2.0,
10
+ "spatial_upsample": true,
11
+ "temporal_upsample": false
12
+ }
spatial_upsampler/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2570a06c5176c6b87a68364f8562ca3bed64621fc3017a51ac13d9aa11b89a7b
3
+ size 995742635
spatial_upsampler_1_5/config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2LatentUpsamplerModel",
3
+ "_diffusers_version": "0.37.0",
4
+ "dims": 3,
5
+ "in_channels": 128,
6
+ "mid_channels": 1024,
7
+ "num_blocks_per_stage": 4,
8
+ "rational_resampler": true,
9
+ "spatial_scale": 1.5,
10
+ "spatial_upsample": true,
11
+ "temporal_upsample": false
12
+ }
spatial_upsampler_1_5/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbc24487e21726e5dd133470d4c9ffa39097d3b75a54e19f2a7eecc5b5edf0e6
3
+ size 1090124860
text_encoder/config.json ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "cache_implementation": "hybrid",
22
+ "dtype": "float32",
23
+ "final_logit_softcapping": null,
24
+ "head_dim": 256,
25
+ "hidden_activation": "gelu_pytorch_tanh",
26
+ "hidden_size": 3840,
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 15360,
29
+ "layer_types": [
30
+ "sliding_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "sliding_attention",
34
+ "sliding_attention",
35
+ "full_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "full_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "full_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "sliding_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "full_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "sliding_attention",
57
+ "sliding_attention",
58
+ "sliding_attention",
59
+ "full_attention",
60
+ "sliding_attention",
61
+ "sliding_attention",
62
+ "sliding_attention",
63
+ "sliding_attention",
64
+ "sliding_attention",
65
+ "full_attention",
66
+ "sliding_attention",
67
+ "sliding_attention",
68
+ "sliding_attention",
69
+ "sliding_attention",
70
+ "sliding_attention",
71
+ "full_attention",
72
+ "sliding_attention",
73
+ "sliding_attention",
74
+ "sliding_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "full_attention"
78
+ ],
79
+ "max_position_embeddings": 131072,
80
+ "model_type": "gemma3_text",
81
+ "num_attention_heads": 16,
82
+ "num_hidden_layers": 48,
83
+ "num_key_value_heads": 8,
84
+ "query_pre_attn_scalar": 256,
85
+ "rms_norm_eps": 1e-06,
86
+ "rope_local_base_freq": 10000,
87
+ "rope_scaling": {
88
+ "factor": 8.0,
89
+ "rope_type": "linear"
90
+ },
91
+ "rope_theta": 1000000,
92
+ "sliding_window": 1024,
93
+ "sliding_window_pattern": 6,
94
+ "use_bidirectional_attention": false,
95
+ "use_cache": true,
96
+ "vocab_size": 262208
97
+ },
98
+ "transformers_version": "4.57.6",
99
+ "vision_config": {
100
+ "attention_dropout": 0.0,
101
+ "dtype": "float32",
102
+ "hidden_act": "gelu_pytorch_tanh",
103
+ "hidden_size": 1152,
104
+ "image_size": 896,
105
+ "intermediate_size": 4304,
106
+ "layer_norm_eps": 1e-06,
107
+ "model_type": "siglip_vision_model",
108
+ "num_attention_heads": 16,
109
+ "num_channels": 3,
110
+ "num_hidden_layers": 27,
111
+ "patch_size": 14,
112
+ "vision_use_head": false
113
+ }
114
+ }
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": "4.57.6"
11
+ }
text_encoder/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79d54e707a6fffdff0922af137b61ba44fb4529c484d61ff28a0b65a74a50889
3
+ size 52776951378
text_encoder_processor/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
text_encoder_processor/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 -%}
text_encoder_processor/preprocessor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": null,
3
+ "do_normalize": true,
4
+ "do_pan_and_scan": null,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.5,
9
+ 0.5,
10
+ 0.5
11
+ ],
12
+ "image_processor_type": "Gemma3ImageProcessor",
13
+ "image_seq_length": 256,
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "pan_and_scan_max_num_crops": null,
20
+ "pan_and_scan_min_crop_size": null,
21
+ "pan_and_scan_min_ratio_to_activate": null,
22
+ "processor_class": "Gemma3Processor",
23
+ "resample": 2,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "height": 896,
27
+ "width": 896
28
+ }
29
+ }
text_encoder_processor/processor_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "image_seq_length": 256,
3
+ "processor_class": "Gemma3Processor"
4
+ }
text_encoder_processor/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
text_encoder_processor/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
3
+ size 4689074
text_encoder_processor/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
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/special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
tokenizer/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
3
+ size 4689074
tokenizer/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
transformer/config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2TransformerModel",
3
+ "_diffusers_version": "0.37.0",
4
+ "apply_gated_attention": true,
5
+ "attention_head_dim": 128,
6
+ "attention_type": "default",
7
+ "audio_attention_head_dim": 64,
8
+ "audio_caption_projection": null,
9
+ "audio_cross_attention_dim": 2048,
10
+ "audio_in_channels": 128,
11
+ "audio_num_attention_heads": 32,
12
+ "audio_out_channels": 128,
13
+ "audio_positional_embedding_max_pos": [
14
+ 20
15
+ ],
16
+ "av_ca_timestep_scale_multiplier": 1000.0,
17
+ "caption_projection": null,
18
+ "cross_attention_adaln": true,
19
+ "cross_attention_dim": 4096,
20
+ "double_precision_rope": true,
21
+ "in_channels": 128,
22
+ "model_type": "ltx av model",
23
+ "norm_eps": 1e-06,
24
+ "num_attention_heads": 32,
25
+ "num_layers": 48,
26
+ "out_channels": 128,
27
+ "positional_embedding_max_pos": [
28
+ 20,
29
+ 2048,
30
+ 2048
31
+ ],
32
+ "positional_embedding_theta": 10000.0,
33
+ "rope_type": "split",
34
+ "timestep_scale_multiplier": 1000,
35
+ "use_middle_indices_grid": true
36
+ }
transformer/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a960b0de6babd0bc3ed67a624de67b4b5469ea6b6063dd3ec8fcd7c539d8b2b6
3
+ size 37987686029
video_decoder/config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2VideoDecoderModel",
3
+ "_diffusers_version": "0.37.0",
4
+ "base_channels": 128,
5
+ "causal": false,
6
+ "convolution_dimensions": 3,
7
+ "decoder_blocks": [
8
+ [
9
+ "res_x",
10
+ 0
11
+ ],
12
+ [
13
+ "compress_all",
14
+ {
15
+ "multiplier": 2
16
+ }
17
+ ],
18
+ [
19
+ "res_x",
20
+ 0
21
+ ],
22
+ [
23
+ "compress_all",
24
+ {}
25
+ ],
26
+ [
27
+ "res_x",
28
+ 0
29
+ ],
30
+ [
31
+ "compress_time",
32
+ {
33
+ "multiplier": 2
34
+ }
35
+ ],
36
+ [
37
+ "res_x",
38
+ 0
39
+ ],
40
+ [
41
+ "compress_space",
42
+ {
43
+ "multiplier": 2
44
+ }
45
+ ],
46
+ [
47
+ "res_x",
48
+ 0
49
+ ]
50
+ ],
51
+ "decoder_spatial_padding_mode": "zeros",
52
+ "in_channels": 128,
53
+ "norm_layer": "pixel_norm",
54
+ "out_channels": 3,
55
+ "patch_size": 4,
56
+ "timestep_conditioning": false
57
+ }
video_decoder/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:311d614575edda07ec7dfc607745de747837988c41b1351382b1f7541fbd5f7c
3
+ size 814347677
video_encoder/config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2VideoEncoderModel",
3
+ "_diffusers_version": "0.37.0",
4
+ "convolution_dimensions": 3,
5
+ "encoder_blocks": [
6
+ [
7
+ "res_x",
8
+ 0
9
+ ],
10
+ [
11
+ "compress_space_res",
12
+ {
13
+ "multiplier": 1
14
+ }
15
+ ],
16
+ [
17
+ "res_x",
18
+ 0
19
+ ],
20
+ [
21
+ "compress_time_res",
22
+ {
23
+ "multiplier": 1
24
+ }
25
+ ],
26
+ [
27
+ "res_x",
28
+ 0
29
+ ],
30
+ [
31
+ "compress_all_res",
32
+ {
33
+ "multiplier": 1
34
+ }
35
+ ],
36
+ [
37
+ "res_x",
38
+ 0
39
+ ],
40
+ [
41
+ "compress_all_res",
42
+ {
43
+ "multiplier": 1
44
+ }
45
+ ],
46
+ [
47
+ "res_x",
48
+ 0
49
+ ]
50
+ ],
51
+ "encoder_spatial_padding_mode": "zeros",
52
+ "in_channels": 3,
53
+ "latent_log_var": "uniform",
54
+ "norm_layer": "pixel_norm",
55
+ "out_channels": 128,
56
+ "patch_size": 4
57
+ }
video_encoder/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:760aba89f8e18701ac5cabf2ad3fd2b8df6590a292bfc958e69496811b2aae59
3
+ size 637883617
vocoder/config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "LTX2VocoderWithBWEModel",
3
+ "_diffusers_version": "0.37.0",
4
+ "activation": "snakebeta",
5
+ "apply_final_activation": true,
6
+ "bwe_activation": "snakebeta",
7
+ "bwe_apply_final_activation": false,
8
+ "bwe_hop_length": 80,
9
+ "bwe_input_sampling_rate": 16000,
10
+ "bwe_n_fft": 512,
11
+ "bwe_num_mel_channels": 64,
12
+ "bwe_resblock": "AMP1",
13
+ "bwe_resblock_dilation_sizes": [
14
+ [
15
+ 1,
16
+ 3,
17
+ 5
18
+ ],
19
+ [
20
+ 1,
21
+ 3,
22
+ 5
23
+ ],
24
+ [
25
+ 1,
26
+ 3,
27
+ 5
28
+ ]
29
+ ],
30
+ "bwe_resblock_kernel_sizes": [
31
+ 3,
32
+ 7,
33
+ 11
34
+ ],
35
+ "bwe_upsample_initial_channel": 512,
36
+ "bwe_upsample_kernel_sizes": [
37
+ 12,
38
+ 11,
39
+ 4,
40
+ 4,
41
+ 4
42
+ ],
43
+ "bwe_upsample_rates": [
44
+ 6,
45
+ 5,
46
+ 2,
47
+ 2,
48
+ 2
49
+ ],
50
+ "bwe_use_bias_at_final": false,
51
+ "bwe_use_tanh_at_final": false,
52
+ "output_sampling_rate": 48000,
53
+ "resblock": "AMP1",
54
+ "resblock_dilation_sizes": [
55
+ [
56
+ 1,
57
+ 3,
58
+ 5
59
+ ],
60
+ [
61
+ 1,
62
+ 3,
63
+ 5
64
+ ],
65
+ [
66
+ 1,
67
+ 3,
68
+ 5
69
+ ]
70
+ ],
71
+ "resblock_kernel_sizes": [
72
+ 3,
73
+ 7,
74
+ 11
75
+ ],
76
+ "upsample_initial_channel": 1536,
77
+ "upsample_kernel_sizes": [
78
+ 11,
79
+ 4,
80
+ 4,
81
+ 4,
82
+ 4,
83
+ 4
84
+ ],
85
+ "upsample_rates": [
86
+ 5,
87
+ 2,
88
+ 2,
89
+ 2,
90
+ 2,
91
+ 2
92
+ ],
93
+ "use_bias_at_final": false,
94
+ "use_tanh_at_final": false
95
+ }
vocoder/model.flashpack ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd2b05c78470e55a8296d487f7355111c61db4ebb3ab9321d7d66bf5d744026a
3
+ size 258355185