Model not able to load
I tried to load the model using the below code but its not working i downloaded the model to local and tried
from diffusers import StableDiffusionPipeline,FluxTransformer2DModel,FluxPipeline
import torch
from transformers import BitsAndBytesConfig
quant_config = BitsAndBytesConfig(load_in_8bit=True)
Initialize the pipeline with low_cpu_mem_usage=False and device_map=None
pipeline = FluxTransformer2DModel.from_pretrained(
"D:/flux_model",
device_map=None, # Add this parameter
quantization_config=quant_config,
use_safetensors=True,
local_files_only=True,
torch_dtype=torch.float16
).to("cuda")
image = pipeline(
prompt="A futuristic cityscape at sunset",
guidance_scale=7.5,
num_inference_steps=50,
height=512,
width=512
).images[0]
Save the generated image
image.save("generated_image.png")
Below error is throwing
File "G:\personaldev\youtube_projects\vegi-shop\image_gen_api\app.py", line 8, in
pipeline = FluxTransformer2DModel.from_pretrained(
File "C:\laragon\bin\python\python-3.10\lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "C:\laragon\bin\python\python-3.10\lib\site-packages\diffusers\models\modeling_utils.py", line 894, in from_pretrained
raise ValueError(
ValueError: Cannot load <class 'diffusers.models.transformers.transformer_flux.FluxTransformer2DModel'> from D:/flux_model because the following keys are missing:
transformer_blocks.14.ff.net.2.weight, transformer_blocks.10.norm1_context.linear.weight, transformer_blocks.2.norm1.linear.weight, transformer_blocks.9.ff_context.net.0.proj.weight, single_transformer_blocks.16.proj_out.weight, single_transformer_blocks.29.norm.linear.weight, transformer_blocks.14.ff.net.0.proj.weight, transformer_blocks.17.attn.to_k.weight, single_transformer_blocks.22.norm.linear.weight, transformer_blocks.11.ff.net.2.weight, transformer_blocks.15.ff.net.2.weight, transformer_blocks.3.ff.net.0.proj.weight, transformer_blocks.12.attn.add_k_proj.weight, transformer_blocks.0.attn.to_add_out.weight, single_transformer_blocks.20.attn.to_v.weight, single_transformer_blocks.35.attn.to_v.weight, single_transformer_blocks.32.attn.to_v.weight, single_transformer_blocks.29.attn.to_k.weight, single_transformer_blocks.14.proj_mlp.weight, transformer_blocks.9.norm1_context.linear.weight, single_transformer_blocks.37.attn.to_k.weight, transformer_blocks.7.ff.net.0.proj.weight, single_transformer_blocks.15.attn.to_k.weight, single_transformer_blocks.30.attn.to_v.weight, transformer_blocks.14.attn.add_k_proj.weight, transformer_blocks.5.attn.to_k.weight, transformer_blocks.2.attn.to_k.weight, single_transformer_blocks.16.norm.linear.weight, transformer_blocks.11.ff_context.net.2.weight, single_transformer_blocks.27.proj_out.weight, transformer_blocks.13.attn.add_v_proj.weight, transformer_blocks.10.attn.to_out.0.weight, transformer_blocks.11.attn.to_add_out.weight, single_transformer_blocks.19.proj_mlp.weight, single_transformer_blocks.36.proj_out.weight, single_transformer_blocks.9.proj_out.weight, transformer_blocks.7.attn.to_k.weight, transformer_blocks.18.norm1.linear.weight, single_transformer_blocks.34.attn.to_k.weight, transformer_blocks.16.attn.add_k_proj.weight, single_transformer_blocks.10.proj_mlp.weight, transformer_blocks.2.ff_context.net.0.proj.weight, single_transformer_blocks.33.proj_mlp.weight, transformer_blocks.17.norm1_context.linear.weight, transformer_blocks.14.ff_context.net.0.proj.weight, transformer_blocks.2.ff.net.2.weight, transformer_blocks.12.ff_context.net.2.weight, single_transformer_blocks.34.attn.to_v.weight, single_transformer_blocks.5.proj_mlp.weight, transformer_blocks.6.attn.to_q.weight, single_transformer_blocks.10.attn.to_k.weight, transformer_blocks.8.ff_context.net.0.proj.weight, transformer_blocks.11.attn.add_q_proj.weight, single_transformer_blocks.11.attn.to_v.weight, transformer_blocks.1.attn.to_v.weight, transformer_blocks.7.attn.to_add_out.weight, transformer_blocks.1.ff_context.net.0.proj.weight, single_transformer_blocks.18.attn.to_k.weight, transformer_blocks.17.norm1.linear.weight, single_transformer_blocks.0.proj_mlp.weight, context_embedder.weight, transformer_blocks.1.ff_context.net.2.weight, transformer_blocks.16.ff_context.net.2.weight, single_transformer_blocks.31.proj_mlp.weight, transformer_blocks.2.norm1_context.linear.weight, single_transformer_blocks.18.attn.to_q.weight, single_transformer_blocks.5.norm.linear.weight, single_transformer_blocks.12.proj_out.weight, transformer_blocks.4.ff.net.2.weight, single_transformer_blocks.9.attn.to_q.weight, transformer_blocks.15.attn.to_out.0.weight, transformer_blocks.0.attn.to_v.weight, transformer_blocks.2.attn.add_q_proj.weight, single_transformer_blocks.28.attn.to_v.weight, time_text_embed.text_embedder.linear_1.weight, transformer_blocks.9.norm1.linear.weight, single_transformer_blocks.4.proj_out.weight, transformer_blocks.7.norm1_context.linear.weight, transformer_blocks.4.attn.add_k_proj.weight, transformer_blocks.1.attn.add_q_proj.weight, single_transformer_blocks.4.attn.to_v.weight, single_transformer_blocks.18.norm.linear.weight, transformer_blocks.15.attn.to_q.weight, single_transformer_blocks.15.attn.to_v.weight, single_transformer_blocks.35.attn.to_q.weight, single_transformer_blocks.13.proj_mlp.weight, single_transformer_blocks.27.attn.to_v.weight, single_transformer_blocks.30.norm.linear.weight, single_transformer_blocks.37.norm.linear.weight, transformer_blocks.17.attn.add_k_proj.weight, single_transformer_blocks.6.norm.linear.weight, single_transformer_blocks.20.norm.linear.weight, single_transformer_blocks.2.norm.linear.weight, transformer_blocks.7.attn.to_out.0.weight, single_transformer_blocks.6.attn.to_v.weight, single_transformer_blocks.17.attn.to_k.weight, transformer_blocks.0.attn.to_q.weight, transformer_blocks.1.norm1.linear.weight, single_transformer_blocks.14.attn.to_k.weight, transformer_blocks.8.norm1_context.linear.weight, transformer_blocks.1.attn.add_k_proj.weight, single_transformer_blocks.26.proj_mlp.weight, transformer_blocks.14.attn.add_v_proj.weight, single_transformer_blocks.25.norm.linear.weight, single_transformer_blocks.19.attn.to_q.weight, single_transformer_blocks.22.proj_mlp.weight, single_transformer_blocks.36.norm.linear.weight, transformer_blocks.18.attn.to_k.weight, transformer_blocks.1.norm1_context.linear.weight, single_transformer_blocks.37.proj_out.weight, transformer_blocks.12.attn.to_k.weight, single_transformer_blocks.6.attn.to_q.weight, single_transformer_blocks.11.proj_out.weight, single_transformer_blocks.29.proj_mlp.weight, single_transformer_blocks.23.attn.to_v.weight, transformer_blocks.14.attn.to_k.weight, transformer_blocks.12.ff.net.0.proj.weight, transformer_blocks.16.attn.to_v.weight, single_transformer_blocks.23.attn.to_k.weight, transformer_blocks.5.norm1_context.linear.weight, single_transformer_blocks.26.attn.to_v.weight, transformer_blocks.0.attn.to_out.0.weight, transformer_blocks.13.attn.to_add_out.weight, transformer_blocks.5.attn.to_out.0.weight, transformer_blocks.12.norm1.linear.weight, single_transformer_blocks.2.attn.to_v.weight, single_transformer_blocks.3.proj_mlp.weight, single_transformer_blocks.17.proj_mlp.weight, single_transformer_blocks.0.norm.linear.weight, single_transformer_blocks.20.proj_out.weight, single_transformer_blocks.1.proj_mlp.weight, single_transformer_blocks.15.norm.linear.weight, transformer_blocks.15.ff_context.net.2.weight, transformer_blocks.18.ff_context.net.0.proj.weight, single_transformer_blocks.29.attn.to_v.weight, single_transformer_blocks.32.attn.to_k.weight, transformer_blocks.5.attn.to_add_out.weight, transformer_blocks.2.attn.to_q.weight, transformer_blocks.9.attn.to_q.weight, single_transformer_blocks.33.norm.linear.weight, transformer_blocks.5.attn.add_v_proj.weight, transformer_blocks.13.norm1_context.linear.weight, transformer_blocks.2.ff_context.net.2.weight, single_transformer_blocks.4.attn.to_q.weight, single_transformer_blocks.35.attn.to_k.weight, single_transformer_blocks.36.attn.to_q.weight, transformer_blocks.3.attn.add_k_proj.weight, single_transformer_blocks.4.attn.to_k.weight, transformer_blocks.7.attn.add_k_proj.weight, transformer_blocks.1.attn.to_k.weight, transformer_blocks.2.attn.add_v_proj.weight, transformer_blocks.10.ff.net.0.proj.weight, transformer_blocks.8.attn.to_q.weight, single_transformer_blocks.17.proj_out.weight, transformer_blocks.14.attn.to_v.weight, single_transformer_blocks.9.proj_mlp.weight, transformer_blocks.3.attn.to_add_out.weight, transformer_blocks.6.attn.to_k.weight, transformer_blocks.9.attn.add_v_proj.weight, single_transformer_blocks.23.attn.to_q.weight, transformer_blocks.11.attn.to_q.weight, single_transformer_blocks.0.attn.to_q.weight, single_transformer_blocks.1.attn.to_v.weight, transformer_blocks.16.attn.to_k.weight, proj_out.weight, transformer_blocks.18.attn.add_v_proj.weight, transformer_blocks.4.ff.net.0.proj.weight, transformer_blocks.6.attn.add_k_proj.weight, single_transformer_blocks.31.norm.linear.weight, single_transformer_blocks.25.attn.to_q.weight, transformer_blocks.2.ff.net.0.proj.weight, single_transformer_blocks.34.attn.to_q.weight, single_transformer_blocks.29.proj_out.weight, single_transformer_blocks.2.proj_mlp.weight, transformer_blocks.14.norm1.linear.weight, transformer_blocks.0.attn.to_k.weight, transformer_blocks.3.ff_context.net.2.weight, transformer_blocks.18.ff.net.0.proj.weight, single_transformer_blocks.32.attn.to_q.weight, transformer_blocks.18.attn.add_q_proj.weight, transformer_blocks.17.ff.net.2.weight, transformer_blocks.13.ff_context.net.2.weight, transformer_blocks.5.ff.net.2.weight, transformer_blocks.4.norm1_context.linear.weight, transformer_blocks.10.attn.to_add_out.weight, single_transformer_blocks.26.norm.linear.weight, transformer_blocks.13.attn.to_q.weight, transformer_blocks.6.attn.to_v.weight, transformer_blocks.15.attn.to_v.weight, single_transformer_blocks.22.attn.to_k.weight, single_transformer_blocks.12.proj_mlp.weight, transformer_blocks.9.attn.to_add_out.weight, transformer_blocks.4.norm1.linear.weight, transformer_blocks.5.attn.add_q_proj.weight, transformer_blocks.12.attn.add_v_proj.weight, single_transformer_blocks.27.norm.linear.weight, single_transformer_blocks.5.attn.to_v.weight, transformer_blocks.10.norm1.linear.weight, transformer_blocks.0.attn.add_q_proj.weight, single_transformer_blocks.13.proj_out.weight, single_transformer_blocks.30.attn.to_q.weight, transformer_blocks.0.attn.add_k_proj.weight, single_transformer_blocks.19.proj_out.weight, transformer_blocks.0.ff_context.net.0.proj.weight, single_transformer_blocks.34.norm.linear.weight, single_transformer_blocks.6.proj_mlp.weight, transformer_blocks.11.attn.add_v_proj.weight, transformer_blocks.10.attn.to_k.weight, single_transformer_blocks.18.attn.to_v.weight, single_transformer_blocks.25.proj_out.weight, single_transformer_blocks.18.proj_out.weight, single_transformer_blocks.1.norm.linear.weight, transformer_blocks.14.norm1_context.linear.weight, transformer_blocks.2.attn.add_k_proj.weight, single_transformer_blocks.37.proj_mlp.weight, time_text_embed.guidance_embedder.linear_1.weight, transformer_blocks.10.ff_context.net.0.proj.weight, single_transformer_blocks.17.attn.to_v.weight, transformer_blocks.7.attn.to_q.weight, transformer_blocks.16.attn.add_v_proj.weight, transformer_blocks.6.attn.add_q_proj.weight, transformer_blocks.15.attn.to_k.weight, transformer_blocks.6.attn.add_v_proj.weight, transformer_blocks.4.attn.add_v_proj.weight, transformer_blocks.15.attn.add_v_proj.weight, single_transformer_blocks.14.attn.to_v.weight, single_transformer_blocks.19.attn.to_k.weight, transformer_blocks.4.attn.to_k.weight, single_transformer_blocks.6.proj_out.weight, single_transformer_blocks.30.proj_mlp.weight, single_transformer_blocks.4.proj_mlp.weight, single_transformer_blocks.7.proj_out.weight, transformer_blocks.16.attn.add_q_proj.weight, single_transformer_blocks.31.attn.to_v.weight, transformer_blocks.0.ff.net.0.proj.weight, transformer_blocks.12.attn.add_q_proj.weight, single_transformer_blocks.8.attn.to_v.weight, single_transformer_blocks.27.proj_mlp.weight, transformer_blocks.8.ff_context.net.2.weight, single_transformer_blocks.1.attn.to_k.weight, transformer_blocks.18.attn.add_k_proj.weight, single_transformer_blocks.37.attn.to_v.weight, transformer_blocks.12.ff.net.2.weight, transformer_blocks.3.norm1_context.linear.weight, transformer_blocks.8.attn.add_k_proj.weight, transformer_blocks.8.attn.to_add_out.weight, transformer_blocks.1.ff.net.2.weight, transformer_blocks.5.attn.add_k_proj.weight, transformer_blocks.8.ff.net.2.weight, transformer_blocks.12.attn.to_add_out.weight, single_transformer_blocks.6.attn.to_k.weight, single_transformer_blocks.31.proj_out.weight, transformer_blocks.5.norm1.linear.weight, transformer_blocks.5.ff_context.net.2.weight, transformer_blocks.6.ff_context.net.0.proj.weight, transformer_blocks.15.norm1_context.linear.weight, transformer_blocks.0.ff.net.2.weight, transformer_blocks.17.attn.to_q.weight, time_text_embed.timestep_embedder.linear_1.weight, single_transformer_blocks.28.norm.linear.weight, single_transformer_blocks.9.norm.linear.weight, transformer_blocks.7.attn.to_v.weight, transformer_blocks.17.ff_context.net.2.weight, single_transformer_blocks.11.proj_mlp.weight, transformer_blocks.12.norm1_context.linear.weight, transformer_blocks.4.attn.to_q.weight, single_transformer_blocks.12.attn.to_q.weight, transformer_blocks.17.attn.to_v.weight, single_transformer_blocks.3.attn.to_v.weight, transformer_blocks.3.attn.to_q.weight, transformer_blocks.14.attn.add_q_proj.weight, transformer_blocks.8.attn.to_k.weight, time_text_embed.guidance_embedder.linear_2.weight, single_transformer_blocks.13.norm.linear.weight, transformer_blocks.16.norm1.linear.weight, single_transformer_blocks.20.attn.to_k.weight, single_transformer_blocks.27.attn.to_q.weight, single_transformer_blocks.36.proj_mlp.weight, single_transformer_blocks.32.norm.linear.weight, transformer_blocks.14.attn.to_q.weight, transformer_blocks.18.norm1_context.linear.weight, single_transformer_blocks.10.attn.to_q.weight, single_transformer_blocks.24.proj_out.weight, transformer_blocks.16.ff.net.0.proj.weight, time_text_embed.timestep_embedder.linear_2.weight, transformer_blocks.8.attn.add_v_proj.weight, single_transformer_blocks.31.attn.to_q.weight, single_transformer_blocks.12.attn.to_v.weight, transformer_blocks.8.attn.add_q_proj.weight, transformer_blocks.11.attn.to_v.weight, transformer_blocks.14.attn.to_out.0.weight, transformer_blocks.9.attn.add_q_proj.weight, transformer_blocks.11.attn.to_out.0.weight, transformer_blocks.13.norm1.linear.weight, transformer_blocks.17.ff_context.net.0.proj.weight, single_transformer_blocks.12.norm.linear.weight, single_transformer_blocks.15.proj_out.weight, transformer_blocks.9.ff.net.2.weight, transformer_blocks.15.ff.net.0.proj.weight, transformer_blocks.17.attn.add_q_proj.weight, transformer_blocks.0.norm1.linear.weight, single_transformer_blocks.24.attn.to_v.weight, single_transformer_blocks.32.proj_out.weight, single_transformer_blocks.7.proj_mlp.weight, single_transformer_blocks.15.proj_mlp.weight, single_transformer_blocks.15.attn.to_q.weight, transformer_blocks.15.attn.add_k_proj.weight, single_transformer_blocks.5.attn.to_k.weight, single_transformer_blocks.7.attn.to_v.weight, single_transformer_blocks.2.proj_out.weight, transformer_blocks.2.attn.to_add_out.weight, single_transformer_blocks.35.norm.linear.weight, transformer_blocks.13.attn.to_k.weight, single_transformer_blocks.24.norm.linear.weight, single_transformer_blocks.29.attn.to_q.weight, transformer_blocks.7.ff_context.net.2.weight, transformer_blocks.16.ff.net.2.weight, transformer_blocks.14.ff_context.net.2.weight, transformer_blocks.9.attn.add_k_proj.weight, single_transformer_blocks.28.attn.to_q.weight, transformer_blocks.4.attn.to_v.weight, transformer_blocks.17.ff.net.0.proj.weight, transformer_blocks.3.attn.to_k.weight, single_transformer_blocks.35.proj_mlp.weight, single_transformer_blocks.25.proj_mlp.weight, transformer_blocks.4.attn.add_q_proj.weight, single_transformer_blocks.23.proj_out.weight, single_transformer_blocks.8.attn.to_k.weight, transformer_blocks.15.attn.to_add_out.weight, transformer_blocks.17.attn.to_add_out.weight, transformer_blocks.11.norm1.linear.weight, single_transformer_blocks.17.attn.to_q.weight, transformer_blocks.6.ff_context.net.2.weight, single_transformer_blocks.26.attn.to_q.weight, single_transformer_blocks.11.norm.linear.weight, single_transformer_blocks.33.attn.to_k.weight, transformer_blocks.10.ff.net.2.weight, transformer_blocks.12.ff_context.net.0.proj.weight, x_embedder.weight, transformer_blocks.3.ff.net.2.weight, single_transformer_blocks.35.proj_out.weight, transformer_blocks.6.ff.net.0.proj.weight, transformer_blocks.1.attn.to_add_out.weight, transformer_blocks.13.attn.to_out.0.weight, transformer_blocks.18.attn.to_v.weight, single_transformer_blocks.0.attn.to_v.weight, transformer_blocks.0.ff_context.net.2.weight, transformer_blocks.6.attn.to_add_out.weight, single_transformer_blocks.11.attn.to_k.weight, transformer_blocks.9.attn.to_k.weight, single_transformer_blocks.1.attn.to_q.weight, transformer_blocks.0.attn.add_v_proj.weight, single_transformer_blocks.33.proj_out.weight, transformer_blocks.5.attn.to_q.weight, transformer_blocks.3.attn.add_q_proj.weight, single_transformer_blocks.28.proj_out.weight, transformer_blocks.2.attn.to_v.weight, single_transformer_blocks.24.attn.to_k.weight, single_transformer_blocks.16.attn.to_q.weight, transformer_blocks.2.attn.to_out.0.weight, transformer_blocks.17.attn.to_out.0.weight, single_transformer_blocks.25.attn.to_v.weight, single_transformer_blocks.10.norm.linear.weight, single_transformer_blocks.36.attn.to_k.weight, transformer_blocks.11.norm1_context.linear.weight, single_transformer_blocks.8.proj_mlp.weight, single_transformer_blocks.9.attn.to_k.weight, single_transformer_blocks.13.attn.to_k.weight, single_transformer_blocks.18.proj_mlp.weight, transformer_blocks.12.attn.to_q.weight, transformer_blocks.15.ff_context.net.0.proj.weight, single_transformer_blocks.3.attn.to_q.weight, transformer_blocks.13.attn.add_q_proj.weight, transformer_blocks.5.attn.to_v.weight, transformer_blocks.3.ff_context.net.0.proj.weight, transformer_blocks.16.ff_context.net.0.proj.weight, single_transformer_blocks.23.norm.linear.weight, single_transformer_blocks.28.attn.to_k.weight, single_transformer_blocks.21.attn.to_k.weight, transformer_blocks.16.attn.to_add_out.weight, transformer_blocks.10.attn.to_q.weight, single_transformer_blocks.3.norm.linear.weight, transformer_blocks.9.ff.net.0.proj.weight, single_transformer_blocks.16.attn.to_v.weight, single_transformer_blocks.21.attn.to_v.weight, transformer_blocks.6.norm1.linear.weight, single_transformer_blocks.7.attn.to_q.weight, single_transformer_blocks.14.norm.linear.weight, single_transformer_blocks.20.attn.to_q.weight, single_transformer_blocks.2.attn.to_k.weight, transformer_blocks.7.attn.add_q_proj.weight, single_transformer_blocks.3.attn.to_k.weight, transformer_blocks.1.ff.net.0.proj.weight, transformer_blocks.8.attn.to_out.0.weight, single_transformer_blocks.7.attn.to_k.weight, transformer_blocks.4.attn.to_out.0.weight, transformer_blocks.7.ff.net.2.weight, single_transformer_blocks.0.attn.to_k.weight, single_transformer_blocks.8.attn.to_q.weight, transformer_blocks.18.ff_context.net.2.weight, single_transformer_blocks.20.proj_mlp.weight, transformer_blocks.12.attn.to_v.weight, transformer_blocks.9.ff_context.net.2.weight, transformer_blocks.10.attn.add_v_proj.weight, single_transformer_blocks.14.attn.to_q.weight, single_transformer_blocks.21.attn.to_q.weight, transformer_blocks.7.attn.add_v_proj.weight, transformer_blocks.10.ff_context.net.2.weight, single_transformer_blocks.8.norm.linear.weight, transformer_blocks.6.ff.net.2.weight, transformer_blocks.6.norm1_context.linear.weight, single_transformer_blocks.9.attn.to_v.weight, transformer_blocks.11.attn.add_k_proj.weight, single_transformer_blocks.3.proj_out.weight, single_transformer_blocks.5.attn.to_q.weight, single_transformer_blocks.11.attn.to_q.weight, transformer_blocks.8.norm1.linear.weight, transformer_blocks.13.ff_context.net.0.proj.weight, single_transformer_blocks.22.attn.to_v.weight, transformer_blocks.13.ff.net.2.weight, transformer_blocks.18.attn.to_add_out.weight, single_transformer_blocks.26.proj_out.weight, single_transformer_blocks.14.proj_out.weight, single_transformer_blocks.21.proj_mlp.weight, transformer_blocks.0.norm1_context.linear.weight, transformer_blocks.18.attn.to_out.0.weight, transformer_blocks.4.attn.to_add_out.weight, transformer_blocks.7.ff_context.net.0.proj.weight, transformer_blocks.11.attn.to_k.weight, single_transformer_blocks.31.attn.to_k.weight, transformer_blocks.14.attn.to_add_out.weight, transformer_blocks.10.attn.add_k_proj.weight, single_transformer_blocks.16.proj_mlp.weight, transformer_blocks.10.attn.add_q_proj.weight, single_transformer_blocks.21.proj_out.weight, transformer_blocks.11.ff.net.0.proj.weight, transformer_blocks.10.attn.to_v.weight, single_transformer_blocks.12.attn.to_k.weight, single_transformer_blocks.22.proj_out.weight, transformer_blocks.8.ff.net.0.proj.weight, single_transformer_blocks.33.attn.to_q.weight, transformer_blocks.11.ff_context.net.0.proj.weight, single_transformer_blocks.10.proj_out.weight, single_transformer_blocks.19.attn.to_v.weight, transformer_blocks.7.norm1.linear.weight, norm_out.linear.weight, transformer_blocks.16.attn.to_out.0.weight, single_transformer_blocks.13.attn.to_q.weight, transformer_blocks.9.attn.to_v.weight, single_transformer_blocks.2.attn.to_q.weight, single_transformer_blocks.8.proj_out.weight, transformer_blocks.15.attn.add_q_proj.weight, single_transformer_blocks.24.attn.to_q.weight, single_transformer_blocks.33.attn.to_v.weight, time_text_embed.text_embedder.linear_2.weight, transformer_blocks.1.attn.to_out.0.weight, single_transformer_blocks.22.attn.to_q.weight, single_transformer_blocks.23.proj_mlp.weight, single_transformer_blocks.25.attn.to_k.weight, single_transformer_blocks.5.proj_out.weight, transformer_blocks.3.attn.to_out.0.weight, transformer_blocks.3.attn.to_v.weight, single_transformer_blocks.0.proj_out.weight, single_transformer_blocks.21.norm.linear.weight, single_transformer_blocks.4.norm.linear.weight, transformer_blocks.9.attn.to_out.0.weight, single_transformer_blocks.36.attn.to_v.weight, transformer_blocks.6.attn.to_out.0.weight, transformer_blocks.3.attn.add_v_proj.weight, single_transformer_blocks.10.attn.to_v.weight, single_transformer_blocks.32.proj_mlp.weight, single_transformer_blocks.19.norm.linear.weight, transformer_blocks.13.attn.to_v.weight, transformer_blocks.4.ff_context.net.2.weight, single_transformer_blocks.1.proj_out.weight, single_transformer_blocks.34.proj_out.weight, transformer_blocks.5.ff.net.0.proj.weight, single_transformer_blocks.34.proj_mlp.weight, transformer_blocks.3.norm1.linear.weight, transformer_blocks.16.attn.to_q.weight, transformer_blocks.13.attn.add_k_proj.weight, single_transformer_blocks.27.attn.to_k.weight, single_transformer_blocks.7.norm.linear.weight, transformer_blocks.8.attn.to_v.weight, single_transformer_blocks.26.attn.to_k.weight, transformer_blocks.1.attn.add_v_proj.weight, transformer_blocks.16.norm1_context.linear.weight, single_transformer_blocks.24.proj_mlp.weight, transformer_blocks.18.attn.to_q.weight, transformer_blocks.5.ff_context.net.0.proj.weight, single_transformer_blocks.16.attn.to_k.weight, single_transformer_blocks.28.proj_mlp.weight, single_transformer_blocks.37.attn.to_q.weight, transformer_blocks.18.ff.net.2.weight, single_transformer_blocks.30.proj_out.weight, transformer_blocks.4.ff_context.net.0.proj.weight, transformer_blocks.17.attn.add_v_proj.weight, single_transformer_blocks.17.norm.linear.weight, transformer_blocks.12.attn.to_out.0.weight, transformer_blocks.1.attn.to_q.weight, transformer_blocks.15.norm1.linear.weight, transformer_blocks.13.ff.net.0.proj.weight, single_transformer_blocks.13.attn.to_v.weight, single_transformer_blocks.30.attn.to_k.weight.
Please make sure to pass low_cpu_mem_usage=False
and device_map=None
if you want to randomly initialize those weights or else make sure your checkpoint file is correct.