From b46269f7dd7ba68ef519b7767f6448446cd179f7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 7 Mar 2026 14:23:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- unsloth/models/vision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py index 0de2a91387..20e92207d8 100644 --- a/unsloth/models/vision.py +++ b/unsloth/models/vision.py @@ -787,7 +787,7 @@ class FastBaseModel: num_labels = kwargs.pop("num_labels", None) id2label = kwargs.pop("id2label", None) label2id = kwargs.pop("label2id", None) - + if num_labels is not None: model_config.num_labels = num_labels if id2label is not None: