constants.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. '''Copyright The Microsoft DeepSpeed Team'''
  2. NCCL_BACKEND = 'nccl'
  3. MPI_BACKEND = 'mpi'
  4. GLOO_BACKEND = 'gloo'
  5. SCCL_BACKEND = 'sccl'
  6. DEFAULT_AML_MASTER_PORT = "54965"
  7. DEFAULT_AML_NCCL_SOCKET_IFNAME = "^docker0,lo"
  8. #########################################
  9. # Comms Logger
  10. #########################################
  11. # Comms Logger. By default, this feature is not enabled.
  12. # Users can configure in ds_config.json as below example:
  13. COMMS_LOGGER_FORMAT = '''
  14. The Comms Logger can be specified as:
  15. "comms_logger": {
  16. "enabled": true,
  17. "verbose": false,
  18. "prof_all": true,
  19. "debug": false,
  20. "prof_ops": ["all_reduce", "custom_all_reduce_name"]
  21. }
  22. '''
  23. COMMS_LOGGER = "comms_logger"
  24. # Comms logger enable signal
  25. COMMS_LOGGER_ENABLED = "enabled"
  26. COMMS_LOGGER_ENABLED_DEFAULT = False
  27. # Comms logger verbose signal
  28. COMMS_LOGGER_VERBOSE = "verbose"
  29. COMMS_LOGGER_VERBOSE_DEFAULT = False
  30. # comms logger profile all ops signal
  31. COMMS_LOGGER_PROF_ALL = "prof_all"
  32. COMMS_LOGGER_PROF_ALL_DEFAULT = True
  33. # comms logger show all ops signal
  34. COMMS_LOGGER_DEBUG = "debug"
  35. COMMS_LOGGER_DEBUG_DEFAULT = False
  36. # comms logger profile specific ops in list
  37. COMMS_LOGGER_PROF_OPS = "prof_ops"
  38. COMMS_LOGGER_PROF_OPS_DEFAULT = []