From d41388145e7fa7fac5e75047bcbd19eb9276cb64 Mon Sep 17 00:00:00 2001 From: Sayak Paul Date: Sat, 21 Dec 2024 07:15:03 +0530 Subject: [PATCH] [Docs] Update gguf.md to remove generator from the pipeline from_pretrained (#10299) Update gguf.md to remove generator from the pipeline from_pretrained --- docs/source/en/quantization/gguf.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/source/en/quantization/gguf.md b/docs/source/en/quantization/gguf.md index 2ff2a9293130..f7537d7e7882 100644 --- a/docs/source/en/quantization/gguf.md +++ b/docs/source/en/quantization/gguf.md @@ -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") ```