





from argparse import ArgumentParser

from accelerate.commands.config import get_config_parser
from accelerate.commands.env import env_command_parser
from accelerate.commands.launch import launch_command_parser
from accelerate.commands.test import test_command_parser
from accelerate.commands.tpu import tpu_command_parser

def     snake_case							():




	'''simple docstring'''







	lowerCamelCase__										=			ArgumentParser("""Accelerate CLI tool"""			,    usage="""accelerate <command> [<args>]"""			,    allow_abbrev=_SCREAMING_SNAKE_CASE							)
	lowerCamelCase__										=			parser.add_subparsers(help="""accelerate command helpers"""							)

	# Register commands
	get_config_parser(subparsers=_SCREAMING_SNAKE_CASE							)
	env_command_parser(subparsers=_SCREAMING_SNAKE_CASE							)
	launch_command_parser(subparsers=_SCREAMING_SNAKE_CASE							)
	tpu_command_parser(subparsers=_SCREAMING_SNAKE_CASE							)
	test_command_parser(subparsers=_SCREAMING_SNAKE_CASE							)

	# Let's go
	lowerCamelCase__										=			parser.parse_args()

	if not hasattr(_SCREAMING_SNAKE_CASE			,    """func"""							):
		parser.print_help()
		exit(1							)

	# Run
	args.func(_SCREAMING_SNAKE_CASE							)


if __name__ == "__main__":
					main()







"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__A											=						{
    """configuration_x_clip""": [
        """XCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """XCLIPConfig""",
        """XCLIPTextConfig""",
        """XCLIPVisionConfig""",
    ],
    """processing_x_clip""": ["""XCLIPProcessor"""],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __A											=						[
      """XCLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """XCLIPModel""",
      """XCLIPPreTrainedModel""",
      """XCLIPTextModel""",
      """XCLIPVisionModel""",
  ]

if TYPE_CHECKING:
  from .configuration_x_clip import (
      XCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
      XCLIPConfig,
      XCLIPTextConfig,
      XCLIPVisionConfig,
  )
  from .processing_x_clip import XCLIPProcessor

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_x_clip import (
        XCLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
        XCLIPModel,
        XCLIPPreTrainedModel,
        XCLIPTextModel,
        XCLIPVisionModel,
    )

else:
  import sys

  __A											=						_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)
