Skip to content

Commit

Permalink
Ignore .xml files for Stable Diffusion ORT downloads (#1428)
Browse files Browse the repository at this point in the history
Co-authored-by: bas <[email protected]>
  • Loading branch information
baskrahmer and bk-jc authored Oct 5, 2023
1 parent dbe70f9 commit 8c296d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/onnxruntime/modeling_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8c296d3

Please sign in to comment.