
'''simple docstring'''







import inspect
import unittest


class 		__UpperCAmelCase (   unittest.TestCase		):


							def 					lowerCamelCase							(			self    ):





								"""simple docstring"""






								try:
									import diffusers  # noqa: F401
								except ImportError:
									assert False




							def 					lowerCamelCase							(			self    ):





								"""simple docstring"""






								import diffusers
								from diffusers.dependency_versions_table import deps

								_snake_case  		=						inspect.getmembers(snake_case__       ,  inspect.isclass    )

								for cls_name, cls_module in all_classes:
									if "dummy_" in cls_module.__module__:
										for backend in cls_module._backends:
											if backend == "k_diffusion":
												_snake_case  		=						'k-diffusion'
											elif backend == "invisible_watermark":
												_snake_case  		=						'invisible-watermark'
											assert backend in deps, F'{backend} is not in the deps table!'







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


UpperCamelCase__ :   Optional[int]						=							{
    '''configuration_bloom''': ['''BLOOM_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''BloomConfig''', '''BloomOnnxConfig'''],
}
try:
						if not is_tokenizers_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						UpperCamelCase__ :   Tuple						=							['''BloomTokenizerFast''']

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						UpperCamelCase__ :   Any						=							[
						    '''BLOOM_PRETRAINED_MODEL_ARCHIVE_LIST''',
						    '''BloomForCausalLM''',
						    '''BloomModel''',
						    '''BloomPreTrainedModel''',
						    '''BloomForSequenceClassification''',
						    '''BloomForTokenClassification''',
						    '''BloomForQuestionAnswering''',
						]

if TYPE_CHECKING:
						from .configuration_bloom import BLOOM_PRETRAINED_CONFIG_ARCHIVE_MAP, BloomConfig, BloomOnnxConfig

						try:
												if not is_tokenizers_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .tokenization_bloom_fast import BloomTokenizerFast

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_bloom import (
												    BLOOM_PRETRAINED_MODEL_ARCHIVE_LIST,
												    BloomForCausalLM,
												    BloomForQuestionAnswering,
												    BloomForSequenceClassification,
												    BloomForTokenClassification,
												    BloomModel,
												    BloomPreTrainedModel,
												)

else:
						import sys

						UpperCamelCase__ :   Tuple						=							_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)



