jbilcke-hf HF Staff commited on
Commit
11e9caf
·
verified ·
1 Parent(s): ad1d6a3

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -3
handler.py CHANGED
@@ -147,7 +147,7 @@ class EndpointHandler:
147
  #torch.backends.cuda.matmul.allow_tf32 = True
148
 
149
  # use distilled weights
150
- model_path = f"{model_path}/ltxv-2b-0.9.6-distilled-04-25.safetensors"
151
 
152
  transformer = LTXVideoTransformer3DModel.from_single_file(
153
  model_path, torch_dtype=torch.bfloat16
@@ -157,7 +157,7 @@ class EndpointHandler:
157
 
158
  if support_image_prompt:
159
  self.image_to_video = LTXImageToVideoPipeline.from_pretrained(
160
- model_path,
161
  transformer=transformer,
162
  vae=vae,
163
  torch_dtype=torch.bfloat16
@@ -175,7 +175,7 @@ class EndpointHandler:
175
  else:
176
  # Initialize models with bfloat16 precision
177
  self.text_to_video = LTXPipeline.from_pretrained(
178
- model_path,
179
  transformer=transformer,
180
  vae=vae,
181
  torch_dtype=torch.bfloat16
 
147
  #torch.backends.cuda.matmul.allow_tf32 = True
148
 
149
  # use distilled weights
150
+ model_path = "/repository/ltxv-2b-0.9.6-distilled-04-25.safetensors"
151
 
152
  transformer = LTXVideoTransformer3DModel.from_single_file(
153
  model_path, torch_dtype=torch.bfloat16
 
157
 
158
  if support_image_prompt:
159
  self.image_to_video = LTXImageToVideoPipeline.from_pretrained(
160
+ "/repository",
161
  transformer=transformer,
162
  vae=vae,
163
  torch_dtype=torch.bfloat16
 
175
  else:
176
  # Initialize models with bfloat16 precision
177
  self.text_to_video = LTXPipeline.from_pretrained(
178
+ "/repository",
179
  transformer=transformer,
180
  vae=vae,
181
  torch_dtype=torch.bfloat16