MCPcopy Create free account
hub / github.com/csuhan/OneLLM / __init__

Method __init__

util/misc.py:313–314  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

311 state_dict_key = "amp_scaler"
312
313 def __init__(self, args):
314 self._scaler = ShardedGradScaler(enabled=args.precision in ["fp16"])
315
316 def __call__(self, loss, optimizer, model, clip_grad=None, parameters=None, create_graph=False, update_grad=True):
317 if update_grad:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected