diff --git a/src/diffusers/utils/constants.py b/src/diffusers/utils/constants.py index 3023cb476fe0..a485498eb725 100644 --- a/src/diffusers/utils/constants.py +++ b/src/diffusers/utils/constants.py @@ -23,6 +23,7 @@ default_cache_path = HUGGINGFACE_HUB_CACHE MIN_PEFT_VERSION = "0.5.0" +MIN_TRANSFORMERS_VERSION = "4.33.3" CONFIG_NAME = "config.json" @@ -46,6 +47,6 @@ ) > version.parse(MIN_PEFT_VERSION) _required_transformers_version = is_transformers_available() and version.parse( version.parse(importlib.metadata.version("transformers")).base_version -) > version.parse("4.33") +) > version.parse(MIN_TRANSFORMERS_VERSION) USE_PEFT_BACKEND = _required_peft_version and _required_transformers_version