MCPcopy
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
866def is_peft_available() -> bool:
867 return _is_package_available("peft")[0]
868
869
870@lru_cache

Callers 15

trainer_utils.pyFile · 0.85
_is_peft_modelFunction · 0.85
require_peftFunction · 0.85
trainer.pyFile · 0.85
_saveMethod · 0.85
_push_from_checkpointMethod · 0.85
check_peft_versionFunction · 0.85
pipelineFunction · 0.85
maybe_load_adaptersFunction · 0.85
forwardMethod · 0.85
forwardMethod · 0.85
__init__Method · 0.85

Calls 1

_is_package_availableFunction · 0.85

Tested by 1

require_peftFunction · 0.68