Running the above command triggers this error, specifically because it is being quantized.
This is a recurring issue ref #325 #303 #247 #246
I have tried downgrading transformers lib to 4.34.1 as suggested in other issues, however, diffusers currently has a dependency on it being higher
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. diffusers 0.29.0 requires huggingface-hub>=0.23.2, but you have huggingface-hub 0.17.3 which is incompatible.
python -m python_coreml_stable_diffusion.torch2coreml --convert-unet --convert-text-encoder --convert-vae-decoder --convert-safety-checker --model-version CompVis/stable-diffusion-v1-4 --quantize-nbits 4 -o stable-diffusion-4bit
Running the above command triggers this error, specifically because it is being quantized.
This is a recurring issue ref #325 #303 #247 #246
I have tried downgrading transformers lib to 4.34.1 as suggested in other issues, however, diffusers currently has a dependency on it being higher
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. diffusers 0.29.0 requires huggingface-hub>=0.23.2, but you have huggingface-hub 0.17.3 which is incompatible.
Potential suggestion to resolve these issues from happening the future would be to have an up to date requirements.txt / https://github.com/apple/ml-stable-diffusion/blob/main/setup.py