Update loader.py
This commit is contained in:
parent
cc2764cddd
commit
c6ad5f97a3
1 changed files with 6 additions and 2 deletions
|
|
@ -118,9 +118,13 @@ class FastLanguageModel(FastLlamaModel):
|
|||
*args, **kwargs,
|
||||
)
|
||||
|
||||
# in case the model supports tagging, add the unsloth tag.
|
||||
# In case the model supports tagging, add the unsloth tag.
|
||||
if hasattr(model, "add_model_tags"):
|
||||
model.add_model_tags(["unsloth"])
|
||||
model.add_model_tags(["unsloth",])
|
||||
pass
|
||||
if hasattr(tokenizer, "add_model_tags"):
|
||||
tokenizer.add_model_tags(["unsloth",])
|
||||
pass
|
||||
|
||||
if load_in_4bit:
|
||||
# Fix up bitsandbytes config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue