peft.helpers.check_if_peft_model
< source > ( model_name_or_path: str ) → bool
Parameters
- model_name_or_path (
str
) —
Model id to check, can be local or on the Hugging Face Hub.
True if the model is a PEFT model, False otherwise.
Check if the model is a PEFT model.