This message was deleted.
# ask-for-help
s
This message was deleted.
l
Hi, what if you write like:
Copy code
import bentoml

bentoml.diffusers.import_model(
    "tinysd",
    "hf-internal-testing/tiny-stable-diffusion-pipe-safetensors",
)
and it seems to work. Can you gived an example of your usage? Do you want to import a single safetensors file?
🙏 1
s
Hey Thanks, When trying something like
Copy code
import bentoml

bentoml.diffusers.import_model(
    "sd2",
    "./local_stable_diffusion_2/",
)
I got his message:
Copy code
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/path/to/model/weights'. Use `repo_type` argument if needed.
I was able to fix it by converting it first from safetensors into the HuggingFace format. Now I got another problem, let me post this in the main thread though.