[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-01-19 02:03:59 +00:00
commit 3f5815cc02

View file

@ -932,12 +932,7 @@ class FastSentenceTransformer(FastModel):
load_in_fp8 = False
load_in_16bit = False
if (
int(load_in_4bit)
+ int(load_in_8bit)
+ int(load_in_16bit)
>= 2
):
if int(load_in_4bit) + int(load_in_8bit) + int(load_in_16bit) >= 2:
raise RuntimeError(
"Unsloth: Can only load in 4bit or 8bit or 16bit, not a combination!\n"
"Also, we by default set `load_in_16bit = True`.\n"