PEFT documentation

Document Title

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Document Title

A collection of helper functions for PEFT.

Checking if a model is a PEFT model

peft.helpers.check_if_peft_model

< >

( 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.

Returns

bool

True if the model is a PEFT model, False otherwise.

Check if the model is a PEFT model.

< > Update on GitHub