MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS / _set_gradient_checkpointing

Method _set_gradient_checkpointing

models/modeling_moss.py:323–325  ·  view source on GitHub ↗
(self, module, value=False)

Source from the content-addressed store, hash-verified

321 module.weight.data.fill_(1.0)
322
323 def _set_gradient_checkpointing(self, module, value=False):
324 if isinstance(module, MossModel):
325 module.gradient_checkpointing = value
326
327
328MOSS_START_DOCSTRING = r"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected