diff --git a/optimum/onnxruntime/modeling_diffusion.py b/optimum/onnxruntime/modeling_diffusion.py index 123bcdbd926..bc0d17a93aa 100644 --- a/optimum/onnxruntime/modeling_diffusion.py +++ b/optimum/onnxruntime/modeling_diffusion.py @@ -315,7 +315,7 @@ def _from_pretrained( use_auth_token=use_auth_token, revision=revision, allow_patterns=allow_patterns, - ignore_patterns=["*.msgpack", "*.safetensors", "*.bin"], + ignore_patterns=["*.msgpack", "*.safetensors", "*.bin", "*.xml"], ) new_model_save_dir = Path(model_id)