Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to convert model #55

Closed
nviet opened this issue Sep 11, 2023 · 2 comments
Closed

Unable to convert model #55

nviet opened this issue Sep 11, 2023 · 2 comments

Comments

@nviet
Copy link

nviet commented Sep 11, 2023

I wanted to convert this model. It's fine-tuned model based on Stable Diffusion 1.5. I got this error message:

python3 convert.py ~/gameIconInstituteV10_v10.safetensors --out_type f16

loading model from ~/gameIconInstituteV10_v10.safetensors
loading model from ~/gameIconInstituteV10_v10.safetensors completed
Stable diffuison 1.x
no alphas_cumprod in file, generate new one
Saving GGML compatible file to /home/user/stable-diffusion.cpp/models/gameIconInstituteV10_v10-ggml-model-f16.bin
Traceback (most recent call last):
  File "/home/user/stable-diffusion.cpp/models/convert.py", line 369, in <module>
    convert(args.model_path, args.out_type, args.out_file)
  File "/home/user/stable-diffusion.cpp/models/convert.py", line 317, in convert
    data = state_dict[name].numpy()
TypeError: Got unsupported ScalarType BFloat16

Is it possible to add support for this kind of model please?

@leejet
Copy link
Owner

leejet commented Sep 12, 2023

I've updated the convert.py file. You can pull the latest code and try re-converting the model.

@nviet
Copy link
Author

nviet commented Sep 15, 2023

Thank you very much. It works now.

@nviet nviet closed this as completed Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants