Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouyu5 committed Nov 6, 2023
1 parent 68771fc commit 16be133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion e2eAIOK/deltatuner/deltatuner/deltatuner_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, model, peft_config: PeftConfig, adapter_name: str = "default"
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
self.logger = logging.getLogger('deltatuner')
if not isinstance(model, PeftModel):
if peft_config.peft_type in (DeltaTunerType.SSF):
self.base_model = DELTATUNNER_TO_MODEL_MAPPING[peft_config.peft_type](
self.base_model, self.peft_config, adapter_name
)
Expand Down
2 changes: 1 addition & 1 deletion e2eAIOK/deltatuner/deltatuner/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.5
1.1.6

0 comments on commit 16be133

Please sign in to comment.