| DDUF file created using https://github.com/huggingface/huggingface_hub/pull/2692: | |
| ```py | |
| from huggingface_hub import snapshot_download, write_dduf_file | |
| snapshot_download( | |
| "CompVis/stable-diffusion-v1-4", | |
| allow_patterns=["*.json", "*.txt", "*.fp16.safetensors"], | |
| local_dir="stable-diffusion-v1-4-fp16", | |
| ) | |
| write_dduf_file("stable-diffusion-v1-4-FP16.dduf", "stable-diffusion-v1-4-fp16") | |
| ``` |