Slackbot
04/13/2023, 9:00 AMlarme (shenyang)
04/13/2023, 1:48 PMimport 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?Self
04/13/2023, 6:26 PMimport bentoml
bentoml.diffusers.import_model(
"sd2",
"./local_stable_diffusion_2/",
)
I got his message:
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.