Skip to content

Commit

Permalink
Merge branch 'dduf-parser-v0.1' of github.com:huggingface/huggingface…
Browse files Browse the repository at this point in the history
…_hub into dduf-parser-v0.1
  • Loading branch information
Wauplin committed Dec 12, 2024
2 parents e6c62da + 157633c commit 4078626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/en/package_reference/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The `entries` parameter also supports passing an iterable of paths or bytes. Thi
... # ... do some work with the pipeline

>>> def as_entries(pipe: DiffusionPipeline) -> Generator[Tuple[str, bytes], None, None]:
... # Build an generator that yields the entries to add to the DDUF file.
... # Build a generator that yields the entries to add to the DDUF file.
... # The first element of the tuple is the filename in the DDUF archive (must use UNIX separator!). The second element is the content of the file.
... # Entries will be evaluated lazily when the DDUF file is created (only 1 entry is loaded in memory at a time)
... yield "vae/config.json", pipe.vae.to_json_string().encode()
Expand Down

0 comments on commit 4078626

Please sign in to comment.