[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-03-07 14:23:56 +00:00 committed by Daniel Han
commit b46269f7dd

View file

@ -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: