Fix: Added specific check for Gemma so models like BERT properly initialize
This commit is contained in:
parent
86884ab446
commit
e6bb5b83b9
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ class _RaiseUninitialized(logging.Handler):
|
|||
def __init__(self):
|
||||
super().__init__()
|
||||
def emit(self, record):
|
||||
if "some weights of" in str(record).lower():
|
||||
if "some weights of" in str(record).lower() and "gemma" in str(record).lower():
|
||||
raise Exception(
|
||||
f"Unsloth: Critical error since some weights are not initialized.\n"\
|
||||
f"Please try updating Unsloth, transformers and timm via:\n"\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue