Skip to content

Commit

Permalink
type hints for load peft
Browse files Browse the repository at this point in the history
  • Loading branch information
danbider committed Aug 11, 2023
1 parent ade0f2a commit 47d9811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/eval/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
from llmfoundry.utils.config_utils import process_init_device


def load_peft_model(model_cfg, tokenizer, num_retries):
def load_peft_model(model_cfg: DictConfig, tokenizer: PreTrainedTokenizerBase,
num_retries: int) -> Optional[ComposerModel]:
try:
from peft import PeftModel
except ImportError as e:
Expand Down

0 comments on commit 47d9811

Please sign in to comment.