Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -127,7 +127,13 @@ try:
|
|
| 127 |
scheduler = FlowMatchEulerDiscreteScheduler.from_pretrained(CHECKPOINT_DIR, subfolder="scheduler", torch_dtype=torch_dtype)
|
| 128 |
|
| 129 |
print("Loading DiT model...")
|
| 130 |
-
dit = LongCatVideoTransformer3DModel.from_pretrained(CHECKPOINT_DIR,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
|
| 132 |
print("Creating LongCatVideoPipeline...")
|
| 133 |
pipe = LongCatVideoPipeline(
|
|
|
|
| 127 |
scheduler = FlowMatchEulerDiscreteScheduler.from_pretrained(CHECKPOINT_DIR, subfolder="scheduler", torch_dtype=torch_dtype)
|
| 128 |
|
| 129 |
print("Loading DiT model...")
|
| 130 |
+
dit = LongCatVideoTransformer3DModel.from_pretrained(CHECKPOINT_DIR,
|
| 131 |
+
enable_flashattn3=False,
|
| 132 |
+
enable_flashattn2=False,
|
| 133 |
+
enable_xformers=True,
|
| 134 |
+
subfolder="dit",
|
| 135 |
+
cp_split_hw=cp_split_hw,
|
| 136 |
+
torch_dtype=torch_dtype)
|
| 137 |
|
| 138 |
print("Creating LongCatVideoPipeline...")
|
| 139 |
pipe = LongCatVideoPipeline(
|