PEFT documentation

Document Title

You are viewing v0.11.0 version. A newer version v0.13.0 is available.
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