Diffusers fails loading 0.9.7
#82
by
tintwotin
- opened
Error:
ValueError: Cannot load because time_embed.emb.timestep_embedder.linear_1.bias expected shape torch.Size([2048]), but got torch.Size([4096]).
import torch
from diffusers import LTXPipeline
from transformers import T5EncoderModel, T5Tokenizer
single_file_url = "https://huggingface.co/Lightricks/LTX-Video/blob/main/ltxv-13b-0.9.7-dev.safetensors"
text_encoder = T5EncoderModel.from_pretrained(
"Lightricks/LTX-Video", subfolder="text_encoder", torch_dtype=torch.bfloat16
)
tokenizer = T5Tokenizer.from_pretrained(
"Lightricks/LTX-Video", subfolder="tokenizer", torch_dtype=torch.bfloat16
)
pipe = LTXPipeline.from_single_file(
single_file_url, text_encoder=text_encoder, tokenizer=tokenizer, torch_dtype=torch.bfloat16
)
pipe.enable_model_cpu_offload()
prompt = "A woman with long brown hair and light skin smiles at another woman with long blonde hair. The woman with brown hair wears a black jacket and has a small, barely noticeable mole on her right cheek. The camera angle is a close-up, focused on the woman with brown hair's face. The lighting is warm and natural, likely from the setting sun, casting a soft glow on the scene. The scene appears to be real-life footage"
negative_prompt = "worst quality, inconsistent motion, blurry, jittery, distorted"
video = pipe(
prompt=prompt,
negative_prompt=negative_prompt,
width=704,
height=480,
num_frames=161,
num_inference_steps=50,
).frames[0]
export_to_video(video, "output_ltx.mp4", fps=24)```
Using ltxv-13b-0.9.7-dev-fp8.safetensors instead, throws the same error.
Yeah that is the same issue i have with my ggufs (;
Same here
Same here
I can get it working using the normal load checkpoint node. But i need the q8 patch that i have no idea how to install.
@rocky533 How did you make it work for normal checkpoint . Can you please let us know it not working for us that too
Hey guys, ive uploaded the ggufs to my Huggingface, there is also an instruction on the modelpage on how to get them working (;
They dont need the Q8 patch btw
Only comfyui though
Hi! Huggingface are still working on supporting the new model in Diffusers
This comment has been hidden