nip.utils.hugging_face.is_model_peft#
- nip.utils.hugging_face.is_model_peft(model_name: str) bool [source]#
Check if a model is a PEFT model by looking for the PEFT config file.
- Parameters:
model_name (str) – The name of the model to check, typically a Hugging Face identifier.
- Returns:
is_peft (bool) – True if the model is a PEFT model (e.g., LoRA-adapted), False otherwise.