Update llama.py

This commit is contained in:
Daniel Han 2024-07-30 10:29:54 -07:00
commit a722100b30

View file

@ -2012,7 +2012,8 @@ class FastLlamaModel:
model.peft_config[active_adapter].base_model_name_or_path = name
pass
# Add revision to enable future fast inference paths
model.peft_config[active_adapter].revision = f"unsloth"
# [TODO] Bugs out!see https://github.com/unslothai/unsloth/issues/492
# model.peft_config[active_adapter].revision = f"unsloth"
pass
from transformers.trainer import Trainer