mirror of
https://github.com/unslothai/unsloth
synced 2026-04-21 13:37:39 +00:00
Update _utils.py
This commit is contained in:
parent
657580cd67
commit
b80f110a44
1 changed files with 2 additions and 1 deletions
|
|
@ -356,7 +356,8 @@ class _RaiseUninitialized(logging.Handler):
|
|||
("score.weight" not in record_lower) and \
|
||||
("classifier.weight" not in record_lower) and \
|
||||
("cls.predictions" not in record_lower) and \
|
||||
("predictions.decoder" not in record_lower):
|
||||
("predictions.decoder" not in record_lower) and \
|
||||
(os.environ.get("UNSLOTH_WARN_UNINITIALIZED", "1") == "1"):
|
||||
raise Exception(
|
||||
f"Unsloth: Critical error since some weights are not initialized.\n"\
|
||||
f"Please try updating Unsloth, transformers and timm via:\n"\
|
||||
|
|
|
|||
Loading…
Reference in a new issue