We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85f7ee1 commit e23275eCopy full SHA for e23275e
unsloth/models/vision.py
@@ -709,6 +709,9 @@ def from_pretrained(
709
model.config.update({"unsloth_version" : __version__})
710
pass
711
patch_saving_functions(model, vision = True)
712
+ if tokenizer is None:
713
+ del model
714
+ raise RuntimeError("Unsloth: The tokenizer is weirdly not loaded? Please check if there is one.")
715
patch_saving_functions(tokenizer, vision = True)
716
717
# Fix gradient accumulation
0 commit comments