Skip to content

Commit

Permalink
[Docs] Update gguf.md to remove generator from the pipeline from_pret…
Browse files Browse the repository at this point in the history
…rained (#10299)

Update gguf.md to remove generator from the pipeline from_pretrained
  • Loading branch information
sayakpaul authored Dec 21, 2024
1 parent a6288a5 commit d413881
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/source/en/quantization/gguf.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ transformer = FluxTransformer2DModel.from_single_file(
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-dev",
transformer=transformer,
generator=torch.manual_seed(0),
torch_dtype=torch.bfloat16,
)
pipe.enable_model_cpu_offload()
prompt = "A cat holding a sign that says hello world"
image = pipe(prompt).images[0]
image = pipe(prompt, generator=torch.manual_seed(0)).images[0]
image.save("flux-gguf.png")
```

Expand Down

0 comments on commit d413881

Please sign in to comment.