From 9fdd180a9b3a3fd379917dfab6b99fe2b36c26c1 Mon Sep 17 00:00:00 2001 From: Olexandr88 Date: Wed, 28 Jan 2026 08:59:11 +0200 Subject: [PATCH 1/2] docs: fix grammar in fp16_safetensors CLI warning --- src/diffusers/commands/fp16_safetensors.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/diffusers/commands/fp16_safetensors.py b/src/diffusers/commands/fp16_safetensors.py index 41739261e553..bde054270edb 100644 --- a/src/diffusers/commands/fp16_safetensors.py +++ b/src/diffusers/commands/fp16_safetensors.py @@ -35,8 +35,8 @@ def conversion_command_factory(args: Namespace): if args.use_auth_token: warnings.warn( - "The `--use_auth_token` flag is deprecated and will be removed in a future version. Authentication is now" - " handled automatically if user is logged in." + "The `--use_auth_token` flag is deprecated and will be removed in a future version." + "Authentication is now handled automatically if the user is logged in." ) return FP16SafetensorsCommand(args.ckpt_id, args.fp16, args.use_safetensors) @@ -92,8 +92,8 @@ def run(self): pipeline_class = getattr(import_module("diffusers"), pipeline_class_name) self.logger.info(f"Pipeline class imported: {pipeline_class_name}.") - # Load the appropriate pipeline. We could have use `DiffusionPipeline` - # here, but just to avoid any rough edge cases. + # Load the appropriate pipeline. We could have used `DiffusionPipeline` + # here, but just to avoid potential edge cases. pipeline = pipeline_class.from_pretrained( self.ckpt_id, torch_dtype=torch.float16 if self.fp16 else torch.float32 ) From 12e5f7cc6780bedc70f3eeca03bec0b507210de1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 28 Jan 2026 13:27:08 +0000 Subject: [PATCH 2/2] Apply style fixes --- src/diffusers/commands/fp16_safetensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/commands/fp16_safetensors.py b/src/diffusers/commands/fp16_safetensors.py index bde054270edb..382d6c39bd19 100644 --- a/src/diffusers/commands/fp16_safetensors.py +++ b/src/diffusers/commands/fp16_safetensors.py @@ -35,7 +35,7 @@ def conversion_command_factory(args: Namespace): if args.use_auth_token: warnings.warn( - "The `--use_auth_token` flag is deprecated and will be removed in a future version." + "The `--use_auth_token` flag is deprecated and will be removed in a future version." "Authentication is now handled automatically if the user is logged in." ) return FP16SafetensorsCommand(args.ckpt_id, args.fp16, args.use_safetensors)