PEFT documentation

Document Title

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v0.11.0).
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