multimodalart HF Staff commited on
Commit
efe2ba1
·
verified ·
1 Parent(s): 04ca81f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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, enable_flashattn3=True, enable_flashattn2=False, subfolder="dit", cp_split_hw=cp_split_hw, torch_dtype=torch_dtype)
 
 
 
 
 
 
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(