Here is how to export a folder containing different parts of a diffusion model using [`export_folder_as_dduf`]:  
```python
# Export a folder as a DDUF file
>>> from huggingface_hub import export_folder_as_dduf
>>> export_folder_as_dduf("FLUX.1-dev.dduf", folder_path="path/to/FLUX.1-dev")
```  
For more flexibility, you can use [`export_entries_as_dduf`] and pass a list of files to include in the final DDUF file:  
```python
# Export specific files from the local disk.