






import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


lowerCamelCase : Optional[int]						   =       HUGGINGFACE_HUB_CACHE


lowerCamelCase : Tuple						   =       '''config.json'''
lowerCamelCase : List[Any]						   =       '''diffusion_pytorch_model.bin'''
lowerCamelCase : Union[str, Any]						   =       '''diffusion_flax_model.msgpack'''
lowerCamelCase : Union[str, Any]						   =       '''model.onnx'''
lowerCamelCase : List[Any]						   =       '''diffusion_pytorch_model.safetensors'''
lowerCamelCase : Union[str, Any]						   =       '''weights.pb'''
lowerCamelCase : Dict						   =       '''https://huggingface.co'''
lowerCamelCase : Dict						   =       default_cache_path
lowerCamelCase : Tuple						   =       '''diffusers_modules'''
lowerCamelCase : Any						   =       os.getenv('''HF_MODULES_CACHE''', os.path.join(hf_cache_home, '''modules'''))
lowerCamelCase : str						   =       ['''fp16''', '''non-ema''']
lowerCamelCase : Optional[int]						   =       '''.self_attn'''







from __future__ import annotations
def       snake_case_		(     lowerCAmelCase_       :						list[int]      ):
							if not nums:
														return 0
							__lowercase      :							Tuple				=     nums[0]
							__lowercase      :							Tuple				=     0
							for num in nums[1:]:
														__lowercase			,			__lowercase      :							List[str]				=     (
														    max_excluding + num,
														    max(lowerCAmelCase_       ,       lowerCAmelCase_      ),
														)
							return max(lowerCAmelCase_       ,       lowerCAmelCase_      )


if __name__ == "__main__":
	import doctest

	doctest.testmod()