From 0c2425cb8d1c0c7423f8d357a5a04dac76bc9409 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 10:23:35 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- unsloth/models/sentence_transformer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unsloth/models/sentence_transformer.py b/unsloth/models/sentence_transformer.py index e93a2a7978..e57ada7807 100644 --- a/unsloth/models/sentence_transformer.py +++ b/unsloth/models/sentence_transformer.py @@ -778,7 +778,9 @@ class FastSentenceTransformer(FastModel): else: dtype = torch.float32 elif dtype == torch.bfloat16 and not SUPPORTS_BFLOAT16: - print("Unsloth: Device does not support bfloat16. Using float16 instead.") + print( + "Unsloth: Device does not support bfloat16. Using float16 instead." + ) dtype = torch.float16 # Determine device