MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / backwards_debug_hook

Function backwards_debug_hook

DeepSpeedExample/megatron/fp16/fp16util.py:105–106  ·  view source on GitHub ↗
(grad)

Source from the content-addressed store, hash-verified

103
104
105def backwards_debug_hook(grad):
106 raise RuntimeError("master_params recieved a gradient in the backward pass!")
107
108
109def prep_param_lists(model, flat_master=False):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected