MCPcopy
hub / github.com/deepspeedai/DeepSpeed / set_autotp_mode

Function set_autotp_mode

deepspeed/module_inject/layers.py:117–125  ·  view source on GitHub ↗

Set the DEEPSPEED_AUTOTP_MODE based on the training flag

(training=False)

Source from the content-addressed store, hash-verified

115
116
117def set_autotp_mode(training=False):
118 """
119 Set the DEEPSPEED_AUTOTP_MODE based on the training flag
120 """
121 global DEEPSPEED_AUTOTP_MODE
122 if training:
123 DEEPSPEED_AUTOTP_MODE = AUTOTP_MODE.TRAINING
124 else:
125 DEEPSPEED_AUTOTP_MODE = AUTOTP_MODE.INFERENCE
126
127
128def add_bias(input, bias):

Callers 3

initializeFunction · 0.85
tp_model_initFunction · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…