Update llama.py

This commit is contained in:
Daniel Han-Chen 2024-06-16 04:02:48 +10:00
commit a0232a7bac

View file

@ -1426,7 +1426,7 @@ class FastLlamaModel:
# Check if exactly the same and then pass through!
assert(hasattr(model, "peft_config"))
peft_config = model.peft_config
peft_config = model.peft_config["default"].to_dict()
check_parameters = [
"r", "target_modules", "lora_alpha", "lora_dropout",
"bias", "layers_to_transform", "layers_pattern",