Skip to content

Wrong import of scripts/convert_sd3_to_diffusers.py #12606

@Chlorinesu

Description

@Chlorinesu

Describe the bug

Method load_model_dict_into_meta should be imported from diffusers.models.model_loading_utils.

from diffusers.models.modeling_utils import load_model_dict_into_meta

Reproduction

Running script reports an error
ImportError: cannot import name 'load_model_dict_into_meta' from 'diffusers.models.modeling_utils'

Logs

System Info

  • 🤗 Diffusers version: 0.36.0.dev0
  • Platform: Linux-5.15.0-160-generic-x86_64-with-glibc2.35
  • Running on Google Colab?: No
  • Python version: 3.10.12
  • PyTorch version (GPU?): 2.7.0+cu126 (True)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Huggingface_hub version: 0.34.4
  • Transformers version: 4.44.0
  • Accelerate version: 0.33.0
  • PEFT version: 0.17.0
  • Bitsandbytes version: 0.45.3
  • Safetensors version: 0.4.4
  • xFormers version: not installed
  • Accelerator: NVIDIA GeForce RTX 3090, 24576 MiB
    NVIDIA GeForce RTX 3090, 24576 MiB
    NVIDIA GeForce RTX 3090, 24576 MiB
    NVIDIA GeForce RTX 3090, 24576 MiB
    NVIDIA GeForce RTX 3090, 24576 MiB
    NVIDIA GeForce RTX 3090, 24576 MiB

Who can help?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions