Download parrot/lib/python3.10/site-packages/deepspeed/constants.py from ZTWHHH/envs_2: direct link, hf CLI and curl.
- Browser
- Download file 788 Bytes
-
https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/parrot/lib/python3.10/site-packages/deepspeed/constants.py
- Command line
-
hf download hf://datasets/ZTWHHH/envs_2/parrot/lib/python3.10/site-packages/deepspeed/constants.py
-
curl -L -o constants.py https://huggingface.co/datasets/ZTWHHH/envs_2/resolve/main/parrot/lib/python3.10/site-packages/deepspeed/constants.py
788 Bytes
| # Copyright (c) Microsoft Corporation. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # DeepSpeed Team | |
| import os | |
| from datetime import timedelta | |
| ############################################# | |
| # Torch distributed constants | |
| ############################################# | |
| TORCH_DISTRIBUTED_DEFAULT_PORT = 29500 | |
| # Default process group wide timeout, if applicable. | |
| # This only applies to the gloo and nccl backends | |
| # (only if NCCL_BLOCKING_WAIT or NCCL_ASYNC_ERROR_HANDLING is set to 1). | |
| # To make an attempt at backwards compatibility with THD, we use an | |
| # extraordinarily high default timeout, given that THD did not have timeouts. | |
| default_pg_timeout = timedelta(minutes=int(os.getenv("DEEPSPEED_TIMEOUT", default=30))) | |
| INFERENCE_GENERIC_MODE = 'generic' | |
| INFERENCE_SPECIALIZED_MODE = 'specialized' | |