Spaces:
Build error
Build error
Download external/engine/mmengine/_strategy/__init__.py from YeeThree/sapiens-pose: direct link, hf CLI and curl.
- Browser
- Download file 809 Bytes
-
https://huggingface.co/spaces/YeeThree/sapiens-pose/resolve/main/external/engine/mmengine/_strategy/__init__.py
- Command line
-
hf download hf://spaces/YeeThree/sapiens-pose/external/engine/mmengine/_strategy/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/YeeThree/sapiens-pose/resolve/main/external/engine/mmengine/_strategy/__init__.py
809 Bytes
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |
| # All rights reserved. | |
| # | |
| # This source code is licensed under the license found in the | |
| # LICENSE file in the root directory of this source tree. | |
| from mmengine.utils import digit_version | |
| from mmengine.utils.dl_utils import TORCH_VERSION | |
| from .base import BaseStrategy | |
| from .colossalai import ColossalAIStrategy | |
| from .deepspeed import DeepSpeedStrategy | |
| from .distributed import DDPStrategy | |
| from .single_device import SingleDeviceStrategy | |
| __all__ = [ | |
| 'BaseStrategy', 'DDPStrategy', 'SingleDeviceStrategy', 'DeepSpeedStrategy', | |
| 'ColossalAIStrategy' | |
| ] | |
| if digit_version(TORCH_VERSION) >= digit_version('2.0.0'): | |
| try: | |
| from .fsdp import FSDPStrategy # noqa:F401 | |
| __all__.append('FSDPStrategy') | |
| except: # noqa: E722 | |
| pass | |