Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/huggingface/transformers
/ is_peft_available
Function
is_peft_available
src/transformers/utils/import_utils.py:866–867 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
864
865
@lru_cache
866
def
is_peft_available() -> bool:
867
return
_is_package_available(
"peft"
)[0]
868
869
870
@lru_cache
Callers
15
trainer_utils.py
File · 0.85
_is_peft_model
Function · 0.85
require_peft
Function · 0.85
trainer.py
File · 0.85
_save
Method · 0.85
_push_from_checkpoint
Method · 0.85
check_peft_version
Function · 0.85
pipeline
Function · 0.85
maybe_load_adapters
Function · 0.85
forward
Method · 0.85
forward
Method · 0.85
__init__
Method · 0.85
Calls
1
_is_package_available
Function · 0.85
Tested by
1
require_peft
Function · 0.68