misc#
Miscellaneous Helpers.
Functions
Get free socket port to use as MASTER_PORT. |
|
Whether |
|
Whether Composer is running in a IPython/Jupyter Notebook. |
|
Force Python warnings to consolidate into one line. |
- composer.utils.misc.is_model_ddp(model)[source]#
Whether
model
is an instance of aDistributedDataParallel
.
- composer.utils.misc.is_model_deepspeed(model)[source]#
Whether
model
is an instance of aDeepSpeedEngine
.